Cisco和华为等各种设备SNMP协议的典型配置实例_第1页
Cisco和华为等各种设备SNMP协议的典型配置实例_第2页
Cisco和华为等各种设备SNMP协议的典型配置实例_第3页
Cisco和华为等各种设备SNMP协议的典型配置实例_第4页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、cisco和华为等各种设备snmp协议的典型配置实例配置cisco ios设备在10s的enable状态下,敲入config terminal进入全局配置状态 cdp run 启用 cdpsnmp-server community gsunion ro snmp-server community gsunion rw snmp-server enable traps配置本路rt器的只读字串为gsunion 配置本路山器的读写字串为gsunion 允许路由器将所有类型snmp trap发送出去snmp-server host ip-address-server traps trapcomm指定路

2、由器snmp trap的接收者为10.238.18.17发送trap时釆用trapcomm作为字串snmp-server trap-source loopbacko 将 loopback 接口的 ip 地址作为 snmp trap 的发送源地址logging on 起动log机制logging ip-address-server 将 log 记录发送到 10.238.1 &17 (cw2k 安装机器的 ip 地址)匕的 syslog serverlogging facility local7将记录事件类型定义为loca!7logging trap warning将记录爭件严重级别定义为

3、从warningl开始,一直到最紧急级别的事件全部记录到前边指定的syslog server.logging source-interface loopbacko service timestamps log datetime指定记录事件的发送源地址为loopbacko的ip地址 发送记录事件的时候包含时间标记enable password *line vty 0 4passworda*login local 设置 enable 口 令和 telnet 口令show running显示并检查配置copy running start 或 write terminal保存配置配置pix设备logg

4、ing on 在pix上而启用口志记录snmp-server community gsunion 为 pix 设备配置共同体串 gsunion snmp-server enable traps 配置pix设备将snmp消息发送到网管服务器 snmp-server host server-ip 在pix设备上面配置snmp网管服务器 logging history warning 为 pix 设备 snmp 系统 li 志消息设置 warning 级别使用snmp管理及配置cisco交换机 配置详解管理员需要配置snmp代理使用管理工作站支持的snmp版本。一个snmp代 理可以和多个smmp管

5、理者同时通信;因此你可以配置cisco 10s软件与一个管 理工作站通过snmpvl通信,与第二个管理工作站通过snmpv2c通信,同时与第 三个管理工作站通过snmpv3通信。在i0s的enable状态下,敲入config terminal进入全局配置状态cdp run snmp-server snmp-server snmp-server启用cdpcommunity gsunion ro配置本路由器的只读字串为gsunion community gsunion rw配置木路由器的读写字串为gsunion enable traps允许路出器将所冇类型snmp tmp发送出去 snmp-ser

6、ver host ipaddressserver traps trapcomm 扌旨定路由器 snmp trap 的接收者为10. 238. 18. 17,发送trap时采用trapcomm作为字串 snmp-server trap-source loopbacko 将 loopback接口的 ip地址作为 snmp trap 的发送源地址show running显示并检查配置copy running start 或 write terminal 保存酉己置配置cisco设备的snmp代理配置cisco设备上的snmp代理的步骤如下:启用snmp:configure terminalsnmp-

7、server communi tyrw/ro (example: snmp-server communi typublic ro) endcopy running-configs tar tup-config启用陷阱:configure terminalsnmp-server enable traps snap authenticationendcopy running-configs tar tup-con fig配置snmpttconf tsnmp-server community cisco ro (只读);配置只读通信字符串#snmp-server community secret r

8、w (读写);配置读写通信字符串usnmpserver enable traps ;配置网关 snmp trap ttsnmp-server host 10. 254. 190. 1 rw ;配置网关工作站地址华为snmprou ter j snmp -agen t 使能 snmp 服务rou ter j snmp -agen t local-enginei d 800007db0300e0fc0f6256 全网唯一 设备引擎idroutersnmp-agent community read ispublic 设置读团体名:ispublic routersnmp-agent community

9、 write isprivate 设置写团体名:isprivate rou ter j snmp -agen t sys-info version all选择网管 snmpvl/v2/v3routersnmp-agent sys-info contactroutersnmp-agent target-host trap address 10. 0. 0. 10 port 69parameters vl securityname ispublic 设置 trap 接收主机 10. 0. 0. 10rou ter j snmp -agen t sys-info loca tion huawei t

10、ech. beijing, china 路由 器位置routersnmp-agent trap enable standard authentication coldstart linkdown linkup warms tart trap 的内容 s tandard authentication coldstart linkdown linkup warmstartro u t er j snmp -agen t trap enable sys tem rap 白勺内容 sys tem一般只需要设置snmp-agent 使能 snmp 服务snmp-agent community read public 设置一个 snmp community, 使用该 community连接交换机时,只可以读取其snmp信息。你可以把指令中的public 换成你想要的字符串s

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论