取消
显示结果 
搜索替代 
您的意思是: 
cancel
455
查看次数
1
有帮助
3
回复

packet trace 模拟器中,为什么路由器和交换机中,snmp-server 后没有 enable traps 参数?

11983823
Level 1
Level 1

在 packet trace中联系配置 snmp ,但是输入 snmp-server ? 后,并没有提示 enable traps 的参数。直接执行 snmp-server enable traps 命令,也报错。这是怎么回事?

1 个已接受解答

已接受的解答

packet tracer的模拟器设备应该是不支持那么丰富的SNMP配置。可以看到只能配置community

Switch(config)#snmp-server community s ?
  ro  Read-only access with this community string
  rw  Read-write access with this community string
  <cr>

可以实施换一下模拟器,比如gns3,eve-ng等。如下是gns3的router,是可以支持的。

R1(config)#snmp-server enable traps ?
  atm            Enable SNMP atm traps
  bgp            Enable BGP traps
  bstun          Enable SNMP BSTUN traps
  bulkstat       Enable Data-Collection-MIB Collection notifications
  casa           Enable SNMP casa traps
  cnpd           Enable NBAR Protocol Discovery traps
  config         Enable SNMP config traps
  config-copy    Enable SNMP config-copy traps
  cpu            Allow cpu related traps
...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Rps-Cheers | If it solves your problem, please mark as answer. Thanks !

在原帖中查看解决方案

3 条回复3

packet tracer的模拟器设备应该是不支持那么丰富的SNMP配置。可以看到只能配置community

Switch(config)#snmp-server community s ?
  ro  Read-only access with this community string
  rw  Read-write access with this community string
  <cr>

可以实施换一下模拟器,比如gns3,eve-ng等。如下是gns3的router,是可以支持的。

R1(config)#snmp-server enable traps ?
  atm            Enable SNMP atm traps
  bgp            Enable BGP traps
  bstun          Enable SNMP BSTUN traps
  bulkstat       Enable Data-Collection-MIB Collection notifications
  casa           Enable SNMP casa traps
  cnpd           Enable NBAR Protocol Discovery traps
  config         Enable SNMP config traps
  config-copy    Enable SNMP config-copy traps
  cpu            Allow cpu related traps
...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Rps-Cheers | If it solves your problem, please mark as answer. Thanks !

11983823
Level 1
Level 1

thanks a lot

YilinChen
Spotlight
Spotlight

Packet Tracer毕竟只是模拟器,不是真实的IOS,所以要求不要太高

快捷链接