[j-nsp] sflow agent, source and collector via routing instance

Jason Lixfeld jason-jnsp at lixfeld.ca
Tue Jul 26 12:38:32 EDT 2016


Does anyone know if it’s possible to have sflow export to a collector via a routing instance?  My collector is inside a VRF-type routing-instance, and I have looked for routing-instance hooks similar to what what is listed in the docs for things like ntp, tacacs, etc.[1], but I haven’t found anything specifically for sflow.

Thanks in advance.

[1] https://www.juniper.net/techpubs/en_US/junos14.2/topics/reference/configuration-statement/source-address-edit-system-ntp-radius-syslog-tacacs.html

admin at lab01.juniper# show protocols sflow
agent-id 10.219.49.249;
source-ip 10.219.49.249;
collector 10.219.51.130 {
    udp-port 65533;
}
interfaces ge-0/1/0.0;
interfaces ge-0/1/1.0;
interfaces irb.1000;
interfaces lo0.1;

[edit]
admin at lab01.juniper# run show route 10.219.51.130

internet.inet.0: 2099 destinations, 2099 routes (2099 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

0.0.0.0/0          *[BGP/170] 4d 22:15:09, MED 0, localpref 100, from 72.15.48.4
                      AS path: I, validation-state: unverified
                    > to 10.15.51.80 via ge-0/1/1.0, Push 16243, Push 30(top)

management.inet.0: 376 destinations, 376 routes (376 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

10.219.51.128/27   *[BGP/170] 4d 22:15:08, MED 1, localpref 790, from 72.15.48.4
                      AS path: I, validation-state: unverified
                    > to 10.15.51.80 via ge-0/1/1.0, Push 335, Push 28(top)

[edit]
admin at lab01.juniper# run show route 10.219.49.249

internet.inet.0: 2099 destinations, 2099 routes (2099 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

0.0.0.0/0          *[BGP/170] 4d 22:15:32, MED 0, localpref 100, from 72.15.48.4
                      AS path: I, validation-state: unverified
                    > to 10.15.51.80 via ge-0/1/1.0, Push 16243, Push 30(top)

management.inet.0: 376 destinations, 376 routes (376 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

10.219.49.249/32   *[Direct/0] 5d 13:28:15
                    > via lo0.1

[edit]
admin at lab01.juniper#

Jul 26 12:31:48.147 2016  lab01.juniper sflowd[1999]: sflow datagram send failed, ret -1 errno 65 errstr No route to host


More information about the juniper-nsp mailing list