SNMP实验一指南

2019-08-29 22:41

实验一:通过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的一个亮点之一)。

上图就是MIB的窗口,网络管理软件中的MIB跟上图左下角的SNMP Tree差不多,OID就是MIB的信息节点精确路径,operations就是对MIB的操作然后通过SNMP传递到网络设备上。首先,选者Advanced,填入需要管理网络设备的IP地址,填入设备上community值,这是网络设备与网络管理设备身份认证。如图:


SNMP实验一指南.doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:论房地产企业人力资源管理存在的问题与对策

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: