cisco设备配置方式(cisco snmp配置)

发布时间:2024-03-19
本文为大家介绍cisco设备配置方式(cisco snmp配置),下面和小编一起看看详细内容吧。
思科设备配置snmp
1.设置ios设备(路由器)
config终端进入全局配置状态
cdp 运行启用cdp
snmp-server community gsunion ro 配置本路由器的只读字符串为gsunion
snmp-server community gsunion rw 配置本路由器的读写字符串为gsunion
snmp-server enable traps 允许路由器发出所有类型的snmp trap
www.ttep.cn
snmp-server host ip-address-server traps trapcomm 指定路由器snmp trap的接收者为10.238.18.17,发送trap时使用trapcomm作为字符串
snmp-server trap-source loopback0 使用loopback接口的ip地址作为snmp trap的源地址
登录启动日志机制
logging ip-address-server 发送日志记录到10.238.18.17(cw2k安装机ip地址)的syslog服务器
日志记录工具local7 将日志记录事件类型定义为local7
logging trap warning 定义了日志事件的严重级别,从warningl开始,直到最紧急级别的所有事件都被记录到之前指定的syslog服务器。
www.ttep.cn
logging source-interface loopback0 指定日志事件的发送源地址为loopback0的ip地址
service timestamps log datetime 发送日志事件时包含时间戳
启用密码******
copy running start 或write terminal 保存配置
1.启用snmp:
配置终端
snmp-server community rw/ro (example: snmp-server community public ro)
2.启用陷阱:
配置终端
snmp 服务器启用陷阱snmp 身份验证
3.配置snmp
#conf t
#snmp-server community cisco ro(只读);配置只读通信字符串
#snmp-server community secret rw(读写);配置读写通信字符串
#snmp-server 启用陷阱;配置网关snmp trap
#snmp 服务器主机10.254.190.1 rw ;配置网关工作站地址
2.设置catos设备(交换机)
在catos 的启用状态下,键入
set interface sc0 vlan id ip address 配置交换机本地管理接口的vlan id、ip地址和子网掩码
设置cdp 启用所有启用cdp
set snmp community read-only gsunion 配置这个开关的只读字符串为public
set snmp community read-write-all gsunion 配置本开关的读写字符串为private
设置snmp 陷阱服务器-ip gsunion
指定交换机snmp trap的接收者为网管服务器,发送trap时使用gsunion作为字符串
set snmp trap enable all 发送所有类型的snmp trap
set snmp rmon enable 激活交换机的snmp rmon功能
set logging server ip-address-server 将日志记录发送到网管服务器ip上的syslog服务器(安装cw2k的机器的ip地址)
set logging level 6 将记录事件的严重级别定义为从信息级别开始,所有直到最紧急级别的事件都记录到先前指定的syslog 服务器
set logging server facility local7 将日志记录事件类型定义为local7
设置日志时间戳发送日志事件时包括时间戳
设置日志记录启用启动日志机制
写终端显示并检查配置
保存配置
好了,cisco设备配置方式(cisco snmp配置)的介绍到这里就结束了,想知道更多相关资料可以收藏我们的网站。
上一个:口红花的繁栽要点
下一个:刑法管制是什么意思 与缓刑的区别是什么

win10专业版怎么优化最流畅(w10系统专业版怎么优化)
红花继木的病害防治
小米12和小米12pro发布时间(小米12和12.5)
e230,中文资料,数据手册
影响电缆性能因素及在布线中的放置
工程结算审核程序、内容及常见问题解析
mt8176处理器怎么样,帮我看看这个CPU怎么样
声波测井仪的高精度数据采集系统的设计
新手申请域名需要注意什么?有哪些细节需要注意?
电脑大型网游推荐(大型网络pc游戏排行榜)