huawei(config)#
interface vlanif 10
l
Configure the IP address of the NMS VLAN interface.
huawei(config-if-vlanif10)#
ip address 10.10.1.3 255.255.255.0
huawei(config-if-vlanif10)#
quit
2.
Add the route.
l
Configure the route destined to the NMS (Trap destination host).
huawei(config)#
ip route-static 2.2.2.0 255.255.255.0 10.10.1.1
preference 1
l
Configure the route destined to the time server.
huawei(config)#
ip route-static 4.4.4.0 255.255.255.0 10.10.1.1
preference 1
l
Configure the route destined to the log host.
huawei(config)#
ip route-static 3.3.3.0 255.255.255.0 10.10.1.1
preference 1
huawei(config)#
ip route-static 3.3.4.0 255.255.255.0 10.10.1.1
preference 1
3.
Add the ACL rule.
huawei(config)#
acl 3050
huawei(config-acl-adv-3050)#
rule permit ip source any destination any
huawei(config-acl-adv-3050)#
rule deny ip source any destination 10.10.1.2
0.0.0.0
huawei(config-acl-adv-3050)#
rule permit ip source 2.2.2.2 0.0.0.0
destination 10.10.1.2 0.0.0.0
huawei(config-acl-adv-3050)#
rule permit ip source 2.2.2.3 0.0.0.0
destination 10.10.1.2 0.0.0.0
huawei(config-acl-adv-3050)#
rule permit ip source 4.4.4.4 0.0.0.0
destination 10.10.1.2 0.0.0.0
huawei(config-acl-adv-3050)#
rule permit ip source 4.4.4.5 0.0.0.0
destination 10.10.1.2 0.0.0.0
huawei(config-acl-adv-3050)#
rule permit ip source 3.3.3.3 0.0.0.0
destination 10.10.1.2 0.0.0.0
huawei(config-acl-adv-3050)#
rule permit ip source 3.3.4.3 0.0.0.0
destination 10.10.1.2 0.0.0.0
huawei(config-acl-adv-3050)#
quit
huawei(config)#
packet-filter inbound ip-group 3050 port 0/19/0
huawei(config)#
packet-filter inbound ip-group 3050 port 0/19/1
4.
Configure SNMP.
l
Configure the community name and access authority.
huawei(config)#
snmp-agent community read public
huawei(config)#
snmp-agent community write private
l
Configure the contact information.
huawei(config)#
snmp-agent sys-info contact HW-075512345678
l
Configure the device local information.
huawei(config)#
snmp-agent sys-info location Shenzhen China
l
Configure the SNMP version.
NOTE
The SNMP version must be the same as that of NMS. In this example, the NMS version is set as SNMP
V2C.
huawei(config)#
snmp-agent sys-info version v2c
5.
Enable trap sending.
huawei(config)#
snmp-agent trap enable standard
6.
Set the trap destination address.
huawei(config)#
snmp-agent target-host trap-hostname huawei address 2.2.2.2
trap-paramsname abc
SmartAX MA5600T/MA5603T/MA5608T Multi-service
Access Module
Commissioning and Configuration Guide
5 Configuration Example of MSTP Subtending Network
Issue 01 (2014-04-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
456