港湾交换机-交换机配置

1.1     配置TELNET SNMP

启动SNMP服务的配置步骤如下:

配置步骤

步骤1 service snmp enable 使能SNMP agent服务

步骤2 service snmp trap enable 使能SNMP trap服务

步骤3 config snmp community readonly <string> 设置SNMP只读权限认证密码

步骤4 config snmp community readwrite <string> 设置SNMP读写权限认证密码

步骤5 config snmpauthentrap [enable|disable] 使用enable设置当SNMP认证失败时发送trap

步骤6 show service 显示SNMP是否启动

步骤7 show snmp community-string 显示当前的权限认证密码

 

1.2    配置SNMP trap

交换机上的SNMP agent会产生很多种类的trap信息,如启动(start)、接口(interface)、RMON(远程监控)等。可以在交换机上配置SNMP trap来指定一台或多台trap接收站(trap receiver),并指定哪些种类的trap信息会发送到这些接收站。

配置步骤

步骤1 service snmp enable 使能SNMP agent服务

步骤2 service snmp trap enable 使能SNMP trap服务

步骤3 config snmp trap type [all|interface|bgp|ospf|vrrp|stp|rmon|start|auth|pppoe|isis] [on|off] 配置发送trap的类型

步骤4 config snmp trapreceiver add <A.B.C.D> version [v1|v2c] {community <string>}*1 添加一个trap接收站

步骤5 config snmp trapreceiver add <A.B.C.D> version [v1|v2c] {community <string>}*1 添加另一个trap接收站

步骤6 show snmp trap type 显示系统允许发送的trap种类

步骤7 Show snmp trapreceiver 显示已经添加的所有trap接收站

 

转载于:https://www.cnblogs.com/dyh004/p/9253116.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
mch_1(config)# hlink con Harbour(HLINK-ROOT)# config Config system's setting copy Copy system's information create Create setting delete Delete setting download Download file for H.Link configuration information erase Erase H.Link Configuration on Flash exit Exit current mode help Description of the interactive help system list Print command list save Save H.Link configuration show Show running system information synchronize Synchronize device configuration update Update remote systems upload Upload file for H.Link configuration information Harbour(HLINK-ROOT)#sh topo Format: (RcvPort) DevName #Uplink DevType -------------------------------------------------------- Server ├ (4) 00053b2d1277 #16 u1016v2 ├ (2) 00053b2d1254 #16 u1016v2 ├ (5) 00053b2d1275 #16 u1016v2 └ (3) 00053b2d125c #16 u1016v2 Harbour(HLINK-ROOT)#sh dev Device Name Device MAC User Name Device Type Recv Port ------------------------------------------------------------------------------- 00053b2d1277 00:05:3b:2d:12:77 user u1016v2 4 00053b2d1254 00:05:3b:2d:12:54 user u1016v2 2 00053b2d1275 00:05:3b:2d:12:75 user u1016v2 5 00053b2d125c 00:05:3b:2d:12:5c user u1016v2 3 mch_1(config)# sh run !HammerOS system config file----------------------------------- hostname mch_1 !Syslog config ! !port config config port 24 auto off config port 24 duplex full config port 24 speed 100 ! !vlan config config ipaddress 218.3.220.236 255.255.255.0 create vlan manage config vlan manage tag 2007 config vlan manage add port 24 tagged create vlan user config vlan user tag 2046 config vlan user console disable config vlan user add port 24 tagged config vlan user add port 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21 22,23 untagged config vlan user inputport 1 config vlan user inputport 2 config vlan user inputport 3 config vlan user inputport 4 config vlan user inputport 5 config vlan user inputport 6 config vlan user inputport 7 config vlan user inputport 8 config vlan user inputport 9 config vlan user inputport 10 config vlan user inputport 11 config vlan user inputport 12 config vlan user inputport 13 config vlan user inputport 14 config vlan user inputport 15 config vlan user inputport 16 config vlan user inputport 17 config vlan user inputport 18 config vlan user inputport 19 config vlan user inputport 20 config vlan user inputport 21 config vlan user inputport 22 config vlan user inputport 23 ! !address table entry config ! !spanning tree config ! !igmp snooping ! This implementation conforms to RFC2236 ! RFC1112 Compatibility !Igmp Snooping Process not enabled ! !Arp config ! !Mac limit ! !Traceroute config ! !Dot1x config ! !Port bind config ! !RADIUS client config ! !Sntp config ! !Timezone config ! !usermanage config user add admin login-password b58317da28dc92ba6c5509c317c633b8 user role admin ADMIN enable-password b58317da28dc92ba6c5509c317c633b8 ! !snmp config service snmp enable ! !web manage service config ! !iproute config ip route 0.0.0.0 0.0.0.0 218.3.220.1 ! !H.Link config hlink start ! !Network access-control service config ! !lldp config ! !end of config 工程兵配置模板 HOST GCB_1 creat vlan management tag 2020 config vlan management add port 24 tag config ip 218.3.238.167/24 config vcn up 24 tag ba 27(用户vlan第一个) con po 1-23 au off con po 1-23 sp 10 con po 1-23 du full ser snmp en ip rou 0.0.0.0 0.0.0.0 218.3.238.1 save con

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值