- 论坛徽章:
- 0
|
如何对CISCO交换机进行SNMP管理
Assign a management VLAN, let\'s say VLAN 1\r\n\r\nassign an IP address on interface VLAN1\r\n\r\n!\r\ninterface VLAN 1\r\n ip address 10.0.0.1 255.255.255.0\r\n!\r\n\r\nAssuming your SNMP server is in the same management VLAN, assign an IP address for your server, let\'s say 10.0.0.100/24\r\n\r\nthen 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):\r\n\r\n!\r\nsnmp-server community ABC ro\r\nsnmp-server community DEF rw\r\nsnmp-server trap-source VLAN 1\r\nsnmp-server location yourlocation\r\nsnmp-server chassis-id routerhostname\r\nsnmp-server enable traps\r\nsnmp-server host 10.0.0.100 DEF snmp\r\n!\r\n\r\n\r\nI cannot type chinese, sorry about that. |
|