Im trying to setup sFlow on one of our OS6850 (6.3.1.894.R01) but I can't seem to get any agent IP.
Under Ip->Interfaces i have only one interface (besides the Loopback 127.0.0.1). It's of type Vlan and is connected to vlan id 1.
On this interface, vlan_1, I have the primary IP used for management (192.168.100.70/24). On that same subnet I have a machine (192.168.100.5) running nTop with the sFlow plugin.
I have set up a reciever for this machine and configured a sampler but I still can't seem to get any traffic data. I suspect this might be becuse the agent reports 0.0.0.0 as it's IP.
Reading the build in help file it says:
The sFlow agent needs to send a fixed IP address in the datagram. Therefor, you must create a loopback0 IP address as the fixed primary address for the switch, since the primary IP address can change if the IP interface goes up or down.
I then continue to read in the AOS release 6 network config guide:
For example, to configure the loopback0 address as a primary IP address, enter:
-> ip interface loopback0 address 198.206.181.100
Note. The loopback address should be an IP interface configured on the switch.
If i try to run
-> ip interface loopback0 address 192.168.100.70
i get
ERROR: Ip Address must not conflict with interface vlan_1
Must I use an IP from another, new, subnet for my internal loopback address? I've tried to create a loopback0 of type Loopback but that is not allowed. Keeping it as unbound i can set a different address to it. That address is however not used in the Agent.
What is the correct procedure for setting up the sFlow agent? Is it possible for it to use 192.168.100.70?
Thanks!
Configure sFlow
-
devnull
Re: Configure sFlow
I used to setup using
http://www.inmon.com/support/faq.php#co ... lowAlcatel
I guess you can give it any loopback address/agent adress so try e.g 10.10.10.10 as long as this is unique in your network.
I am not sure whether you can setup a loopback in a network you are using on the switch (obviviously you can't)
sflow receiver 1 name TrafficSentinel address 192.168.100.5 udp-port 6343
sflow sampler 1 1/1-23 receiver 1 rate 512
sflow poller 1 1/1-23 receiver 1 interval 30
http://www.inmon.com/support/faq.php#co ... lowAlcatel
I guess you can give it any loopback address/agent adress so try e.g 10.10.10.10 as long as this is unique in your network.
I am not sure whether you can setup a loopback in a network you are using on the switch (obviviously you can't)
sflow receiver 1 name TrafficSentinel address 192.168.100.5 udp-port 6343
sflow sampler 1 1/1-23 receiver 1 rate 512
sflow poller 1 1/1-23 receiver 1 interval 30
-
one6f
Re: Configure sFlow
Hi,
But in your case it isn't necessarily have a Loopback0.
It should work also with vlan_1 ip interface.
192.168.100.5 must be reachable.
Test it with
You should see such as:
Sample:
Configured ports of course need to provide some traffic.
Loopback0 can't be the same as interface ip, take another like 192.168.100.1.-> ip interface loopback0 address 192.168.100.70
i get
ERROR: Ip Address must not conflict with interface vlan_1
But in your case it isn't necessarily have a Loopback0.
It should work also with vlan_1 ip interface.
192.168.100.5 must be reachable.
Test it with
Code: Select all
debug ip packet ip-address 192.168.100.5 protocol udp udp port 6343 startCode: Select all
1 S 1/24 00e0b1a26994->000a4e325a31 IP 192.168.100.70->192.168.100.5 UDP 1027,6343Consult thisWhat is the correct procedure for setting up the sFlow agent?
Sample:
Code: Select all
-> show configuration snapshot pmm
! Port mirroring :
sflow receiver 1 name Sentinel address 192.168.100.5 udp-port 6343 packet-size 1400 version 5 timeout 0
sflow sampler 1 1/1 receiver 1 rate 100 sample-hdr-size 128
sflow sampler 1 1/2 receiver 1 rate 100 sample-hdr-size 128
sflow sampler 1 1/10 receiver 1 rate 100 sample-hdr-size 128
sflow poller 1 1/1 receiver 1 interval 20
sflow poller 1 1/2 receiver 1 interval 20
sflow poller 1 1/10 receiver 1 interval 20-
innovatum
Re: Configure sFlow
Thank you all! I've read about setting up reciever, poller and sampler, but I got stuck on the IP issue. I thought a valid agent IP (from loopback0) was a requirement.I'll do some more testing and see if I can get it to work.
