SNMP实验一指南

更新时间:2024-01-22 22:59:02 阅读量: 教育文库 文档下载

说明:文章内容仅供预览,部分内容可能不全。下载后的文档,内容与下面显示的完全一致。下载之前请确认下面内容是否您想要的,是否完整无缺。

实验一:通过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值,这是网络设备与网络管理设备身份认证。如图:

本文来源:https://www.bwwdw.com/article/g07o.html

Top