2013年12月23日星期一

Commission the outband network management on the device

Configure the IP address of the maintenance Ethernet port. The IP address of the local maintenance Ethernet port (outband network management port) of the MA5600T/MA5603T/MA5608T is 10.50.1.10/24.
 NOTE:
By default, the IP address of the maintenance Ethernet port (ETH port on the control board) is 10.11.104.2, and the subnet mask is 255.255.255.0.
huawei(config)#interface meth 0
huawei(config-if-meth0)#ip address 10.50.1.10 255.255.255.0
huawei(config-if-meth0)#quit
Add a route for the outband network management. Use the static route. The destination IP address is 10.10.1.0/24 (the network segment to which the U2000 belongs), and the gateway IP address is 10.50.1.1/24 (the IP address of the gateway of the MA5600T/MA5603T/MA5608T).
huawei(config)#ip route-static 10.10.1.0 24 10.50.1.1
Set the SNMP parameters.
Configure the SNMP user, group, and view.
The user name is user1, the group name is group1, the user authentication mode is SHA, the authentication password is authkey123, the user encryption mode is des56, the encryption password is prikey123, the read and write view names are hardy, and the view includes the internet subtree.

huawei(config)#snmp-agent usm-user v3 user1 group1
authentication-mode sha authkey123 privacy-mode des56 prikey123
huawei(config)#snmp-agent group v3 group1 privacy read-view hardy
write-view hardy
huawei(config)#snmp-agent mib-view hardy include internet
(Optional) Set the ID and contact means of the administrator.
The contact means of the administrator is HW-075528780808.

huawei(config)#snmp-agent sys-info contact HW-075528780808
(Optional) Set the location of the device.
The location of the device is Shenzhen_China.

huawei(config)#snmp-agent sys-info location Shenzhen_China

(Optional) Configure the engine ID of the SNMP entity.
The engine ID of the SNMP entity is set to 0123456789.
 NOTE:
The context engine ID of the SNMP must be the same as that on the U2000.
huawei(config)#snmp-agent local-engineid 0123456789
Set the SNMP version.
The SNMP version is SNMP V3.

 NOTE:
The SNMP version must be the same as the SNMP version set on the U2000.
huawei(config)#snmp-agent sys-info version v3
Enable the function of sending traps. On the MA5600T/MA5603T/MA5608T, enable the function of sending traps to the U2000.
huawei(config)#snmp-agent trap enable standard
Configure the IP address of the destination host for the traps. The host name is huawei, the IP address of the host is 10.10.1.10/24 (IP address of the U2000), the trap parameter name is ABC, the SNMP version is V3, the parameter security name is user1 (when the SNMP V3 is used, the parameter security name is the USM user name), and the traps are authenticated and encrypted.
huawei(config)#snmp-agent target-host trap-hostname huawei
address 10.10.1.10 trap-paramsname ABC
huawei(config)#snmp-agent target-host trap-paramsname
ABC v3 securityname user1 privacy
Set the IP address of the maintenance Ethernet port as the source IP address for sending traps. Set the SNMP packets to be forwarded from the maintenance Ethernet port of the MA5600T/MA5603T/HG8240 GPON . That is, the source address of the traps is meth 0.
huawei(config)#snmp-agent trap source meth 0
Save the data.

huawei(config)#save

没有评论:

发表评论