Configuration Example for enabling sFlow forwarding on a port in a LAG

You can enable sFlow forwarding on an individual port within a LAG using the sflow-forwarding command within the LAG configuration as shown in the following example.


device(config)# lag blue static id 1
device(config-lag-blue)# ports ethernet 1/3/1 to 1/3/4
device(config-lag-blue)# sflow forwarding ethernet 1/3/1

Use the ethernet option with the appropriate stack/slot/port variable to specify a Ethernet port within the LAG that you want to enable sFlow forwarding for.

Use the port-name option with the appropriate name variable to specify a named port within the LAG that you want to enable sFlow forwarding for.

For a keep-alive LAG, sFlow can be enabled only at the interface level and not at a lag context. To configure sFLow for an interface belonging to the keep-alive lag, configure directly under the interface.


device(config-lag-test)# interface ethernet 1/7/8
device(config-if-e1000-1/7/8)# sflow forwarding
device(config-if-e1000-1/7/8)#