当前位置:首页 > SNMP实验一指南
实验一:通过snmp协议修改路由器信息
IP规划:
路由器:fa0/0 192.168.1.1/24
交换机管理地址:VLAN 1 192.168.1.2/24 PC:192.168.1.10/24
网络设备配置
路由器:
hostname R1
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.0 no shut
snmp-server community xiaoro RO(开启SNMP,community是一中简单的身份认真,ro是只读文件,rw是可读可写文件)
snmp-server community xiaorw RW
交换机:
interface Vlan1
ip address 192.168.1.2 255.255.255.0
snmp-server community xiaoso RO snmp-server community xiaosw RW
命令步骤:
Continue with configuration dialog? [yes/no]: n
Press RETURN to get started!
Router>enable Router#conf
Configuring from terminal, memory, or network [terminal]? t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#interface f0/0
Router(config-if)#ip address 192.168.1.1 255.255.255.0 Router(config-if)#no shut
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up exit
Router(config)#hostname R1 R1(config)#exit R1# conf
Configuring from terminal, memory, or network [terminal]? t Enter configuration commands, one per line. End with CNTL/Z. R1(config)#cdp run
R1(config)#snmp-server community xiaoro ro
%SNMP-5-WARMSTART: SNMP agent on host R1 is undergoing a warm start
R1(config)#snmp-server community xiaorw rw R1(config)# 交换机:
Switch(config)#interface vlan1
Switch(config-if)#ip address 192.168.1.2 255.255.255.0 Switch(config-if)#exit
Switch(config)#snmp-server community xiaoso ro Switch(config)#snmp-server community xiaosw rw Switch(config)#
由于的PT的的功能有限,小T我就演示如何获取网络设备的系统信息和通过SNMP来修改网络设备的名字。操作如下:
首先,点进PC,选着Destop的中MIB(packetTracer 5.2的一个亮点之一)。
共分享92篇相关文档