Configuration procedure – H3C Technologies H3C SR8800 User Manual
Page 161
149
Figure 54 Network diagram
Configuration procedure
# Configure network management interface M-Ethernet 6/0/0.
<RouterA> system-view
[RouterA] interface M-Ethernet6/0/0
[RouterA-M-Ethernet6/0/0] ip address 4.1.1.2 255.255.0.0
[RouterA-M-Ethernet6/0/0] quit
# Configure a QoS policy to mirror traffic entering GigabitEthernet 3/1/1 to NetStream interface
2/0/1.
[RouterA] acl number 2005
[RouterA-acl-basic-2005] rule 1 permit source any
[RouterA-acl-basic-2005] quit
[RouterA] traffic classifier ns_ipv4
[RouterA-classifier-ns_ipv4] if-match acl 2005
[RouterA-classifier-ns_ipv4] quit
[RouterA] traffic behavior ns_ipv4
[RouterA-behavior-ns_ipv4] mirror-to interface Net-Stream 2/0/1
[RouterA-behavior-ns_ipv4] quit
[RouterA] qos policy ns_ipv4
[RouterA-qospolicy-ns_ipv4] classifier ns_ipv4 behavior ns_ipv4
[RouterA-qospolicy-ns_ipv4] quit
# Apply the QoS policy to GigabitEthernet 3/1/1.
[RouterA] interface GigabitEthernet 3/1/1
[RouterA-GigabitEthernet3/1/1] qos apply policy ns_ipv4 inbound
[RouterA-GigabitEthernet3/1/1] quit
# Enable NetStream on Router A.
[RouterA] ip netstream
# Configure to export NetStream data in version 5 format and specify the data to include the source AS
and destination AS.
[RouterA] ip netstream export version 5 origin-as
# In system view, configure the destination address for the NetStream traditional data export with the IP
address 4.1.1.1 and port 5000.
[RouterA] ip netstream export host 4.1.1.1 5000
[RouterA] ip netstream export source interface M-Ethernet6/0/0