As shown in Figure 1, an enterprise uses Huawei CampusInsight as the network management system (NMS) to perform intelligent video O&M on switches. There are reachable routes between the switches and CampusInsight. The enterprise also wants to monitor the running status of switches as well as audio and video traffic. As shown in the following figure, cameras and IP phones connect to the enterprise network through SwitchA.
<HUAWEI> system-view [HUAWEI] sysname SwitchA [SwitchA] vlan batch 10 [SwitchA] interface gigabitethernet 0/0/1 [SwitchA-GigabitEthernet0/0/1] port link-type trunk [SwitchA-GigabitEthernet0/0/1] port trunk allow-pass vlan 10 [SwitchA-GigabitEthernet0/0/1] quit [SwitchA] interface Vlanif10 [SwitchA-Vlanif10] ip address 192.168.10.1 24 [SwitchA-Vlanif10] quit
<HUAWEI> system-view [HUAWEI] sysname SwitchB [SwitchB] vlan batch 20 [SwitchB] interface gigabitethernet 0/0/1 [SwitchB-GigabitEthernet0/0/1] port link-type trunk [SwitchB-GigabitEthernet0/0/1] port trunk allow-pass vlan 20 [SwitchB-GigabitEthernet0/0/1] quit [SwitchB] interface Vlanif20 [SwitchB-Vlanif20] ip address 192.168.20.1 24 [SwitchB-Vlanif20] quit
[SwitchA] netconf
[SwitchA-netconf] source ip 192.168.10.1
[SwitchA-netconf] smi-server
[SwitchA-netconf-smi-server] server ip-address 192.168.30.1 port 27371 //This port number must be the same as the port number of CampusInsight.
[SwitchA-netconf-smi-server] quit
[SwitchA-netconf] quit
[SwitchB] netconf [SwitchB-netconf] source ip 192.168.20.1 [SwitchB-netconf] smi-server [SwitchB-netconf-smi-server] server ip-address 192.168.30.1 port 27371 [SwitchB-netconf-smi-server] quit [SwitchB-netconf] quit
[SwitchA] emdi [SwitchA-emdi] quit [SwitchA] sea [SwitchA-sea] rtp monitor-type audio video [SwitchA-sea] quit [SwitchA] netconf [SwitchA-netconf] smi-server [SwitchA-netconf-smi-server] collect-item media-quality enable
[SwitchB] netconf [SwitchB-netconf] smi-server [SwitchB-netconf-smi-server] collect-item device-data enable [SwitchB-netconf-smi-server] collect-item poe enable
# sysname SwitchA # vlan batch 10 # interface Vlanif10 ip address 192.168.10.1 255.255.255.0 # interface GigabitEthernet0/0/1 port link-type trunk port trunk allow-pass vlan 10 # emdi # netconf source ip 192.168.10.1 smi-server server ip-address 192.168.30.1 port 27371 collect-item media-quality enable # sea rtp-media monitor-type audio video # return
# sysname SwitchB # vlan batch 20 # interface Vlanif20 ip address 192.168.20.1 255.255.255.0 # interface GigabitEthernet0/0/1 port link-type trunk port trunk allow-pass vlan 20 # netconf source ip 192.168.20.1 smi-server server ip-address 192.168.30.1 port 27371 collect-item device-data enable collect-item poe enable # return