
1-3
sFlow
Configuration
Example
Network
requirements
z
Host A and Server are connected to Switch through GigabitEthernet 1/0/1 and GigabitEthernet
1/0/2 respectively.
z
Host B works as an sFlow collector with IP address 3.3.3.2 and port number 6343, and is
connected to Switch through GigabitEthernet 1/0/3.
z
GigabitEthernet 1/0/3 belongs to VLAN 1, having an IP address of 3.3.3.1.
Run sFlow agent on Switch, and enable sFlow on GigabitEthernet 1/0/1 to monitor traffic on this
interface. Switch sends sFlow packets through GigabitEthernet 1/0/3 to Host B, which then analyzes
the sFlow packets and displays the results.
Network
diagram
Figure 1-1
Network diagram for sFlow configuration
Configuration procedure
# Configure an IP address for the sFlow agent.
<Switch> system-view
[Switch] sflow agent ip 3.3.3.1
# Specify the IP address and port number of the sFlow collector.
[Switch] sflow collector ip 3.3.3.2
# Set the sFlow interval to 30 seconds.
[Switch] sflow interval 30
# Enable sFlow in both the inbound and outbound directions on GigabitEthernet 1/0/1.
[Switch] interface GigabitEthernet 1/0/1
[Switch-GigabitEthernet1/0/1] sflow enable inbound
[Switch-GigabitEthernet1/0/1] sflow enable outbound
# Specify the traffic sampling rate.
[Switch-GigabitEthernet1/0/1] sflow sampling-rate 100000
# Display the sFlow configuration information.
[Switch-GigabitEthernet1/0/1] display sflow
sFlow Version: 5
sFlow Global Information:
Agent IP:3.3.3.1
Содержание S5120-EI Series
Страница 139: ...ii...
Страница 268: ...3 3 SwitchB system view SwitchB interface vlan interface 1 SwitchB Vlan interface1 ip address dhcp alloc...
Страница 328: ...i Table of Contents 1 Dual Stack Configuration 1 1 Dual Stack Overview 1 1 Configuring Dual Stack 1 1...
Страница 578: ...1 21 C...
Страница 739: ...1 12 Enable ARP detection based on 802 1X security entries SwitchB arp detection mode dot1x...
Страница 926: ...2 8...
Страница 942: ...ii Single Device Upgrade 3 4 IRF System Upgrade 3 5...
Страница 985: ...1 1...
Страница 1018: ...1 6...