- 论坛徽章:
- 0
|
如何对CISCO交换机进行SNMP管理
Assign a management VLAN, let's say VLAN 1
assign an IP address on interface VLAN1
!
interface VLAN 1
ip address 10.0.0.1 255.255.255.0
!
Assuming your SNMP server is in the same management VLAN, assign an IP address for your server, let's say 10.0.0.100/24
then on the switch, use the following commands to turn on SNMP (assuming the read-only and read/write community strings on both the switch and the server are ABC and DEF respectively):
!
snmp-server community ABC ro
snmp-server community DEF rw
snmp-server trap-source VLAN 1
snmp-server location yourlocation
snmp-server chassis-id routerhostname
snmp-server enable traps
snmp-server host 10.0.0.100 DEF snmp
!
I cannot type chinese, sorry about that. |
|