2013年12月23日星期一

Configuring MA5600

Configure the IP address of the inband NMS interface.
Create the LS-S2318TP-EI-AC  NMS VLAN.
huawei(config)#vlan 10 standard
Add the upstream port.
huawei(config)#port vlan 10 0/7 0-2
Enter the NMS VLAN interface mode.
huawei(config)#interface vlanif 10
Configure the IP address of the NMS VLAN interface.
huawei(config-if-vlanif10)#ip address 10.10.1.2 255.255.255.0
Add the route.
Configure the route destined to the NMS (trap destination host).
huawei(config)#ip route-static 2.2.2.2 255.255.255.255 10.10.1.1
preference 1
huawei(config)#ip route-static 2.2.2.3 255.255.255.255 10.10.1.1
preference 1
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
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
Add the ACL rule to implement the traffic classification.
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/7/1
huawei(config)#packet-filter inbound ip-group 3050 port 0/7/2
Configure the SNMP parameters.
Configure the community name and the access rights.
huawei(config)#snmp-agent community read public
huawei(config)#snmp-agent community write private
Configure the administrator ID and contact information.
huawei(config)#snmp-agent sys-info contact HW-075528780808
Configure the device location information.
huawei(config)#snmp-agent sys-info location Shenzhen China
Configure the SNMP version.
huawei(config)#snmp-agent sys-info version v2c
 NOTE:
Here, the SNMP version must be the same as the SNMP version of the NMS. In this example, the NMS SNMP version is set to SNMP V2C.
Enable the trap sending.
huawei(config)#snmp-agent trap enable standard
Set the trap destination address.
huawei(config)#snmp-agent target-host trap-paramsname p1 v2c securityname public
huawei(config)#snmp-agent target-host trap-hostname aaa address 2.2.2.2 trap-paramsname p1
huawei(config)#snmp-agent target-host trap-paramsname p2 v2c securityname public
huawei(config)#snmp-agent target-host trap-hostname bbb address 2.2.2.3 trap-paramsname p2
Set the trap source address.

huawei(config S2326TP-EI )#snmp-agent trap source vlanif 10

没有评论:

发表评论