思科和华为交换机常用命令对比
六、设置安全远程访问 思科设置 vty 安全访问:R1(config)# access-list 1 permit 192.168.2.5
R1(config)# line vty 0 4
R1(config)# access-class 1 in
华为设置 vty 安全访问:
acl number 2000
rule 1 permit source 172.29.181.150 0
rule 2 deny
user-interface vty 0 4
acl 2000 inbound
七、可网管配置
思科:
Switch(config)#snmp-server community sunion ro 配置本交换机的只读字串为sunion
Switch(config)#snmp-server community sunion rw 配置本交换机的读写字串为sunion
Switch(config)#snmp-server enable traps 允许交换机将所有类型 SNMP Trap发送出去
Switch(config)#snmp-server host 192.168.190.1 traps sunion 指定交换机SNMP Trap 的接收者为192.168.190.1,发送Trap时采用 sunion作为字串 华为:
snmp-agent community read datanms 配置本交换机的只读字串为datanms
snmp-agent community write datanms 配置本交换机的读写字串为datanms
snmp-agent sys-info location BeiJing China 设置交换机的位置信息
snmp-agent sys-info version all 设置交换机支持所有的 SNMP协议版本
snmp-agent target-host trap address udp-domain
192.168.190.121 params securityname datanms 指定交换机 SNMP Trap的接收者为192.168.190.121 ,发送Trap 时采用datanms 作为字串
页:
[1]