最近做了一个国产化替换的项目,把思科NXOS系列交换机的配置翻译分享一点出来。
NXOS | 备注 | CE |
功能 | ||
feature bash-shell | ||
feature tacacs+ | ||
cfs eth distribute | ||
feature ospf | ||
feature bgp | ||
feature interface-vlan | ||
feature hsrp | ||
feature lacp | ||
feature vpc | ||
feature vtp | 对应华为GVRP | |
时区 | ||
clock timezone BJT 8 0 | clock timezone BJ add 08:00:00 | |
其他配置 | ||
no ip domain-lookup | undo dns resolve | |
ip domain-name network.spdb | dns domain network.spdb | |
command-privilege level rearrange | ||
errdisable recovery cause link-flap | 处于Error-Down状态的接口状态自动恢复为Up的功能:-端口频繁updown | error-down auto-recovery cause link-flap interval 300 |
errdisable recovery cause bpduguard | 处于Error-Down状态的接口状态自动恢复为Up的功能:bpdu | error-down auto-recovery cause bpdu-protection interval 300 |
errdisable recovery cause loopback | 处于Error-Down状态的接口状态自动恢复为Up的功能:-环路 | error-down auto-recovery cause loopback-detect interval 300 |
errdisable recovery cause psecure-violation | 接口安全,mac变化导致的down,华为不支持 | |
acl | ||
ip access-list 10 | acl number 2010 | |
10 permit ip 1.1.1.1/32 any | rule 10 permit source 1.1.1.1 0 | |
20 permit 2.2.2.2/32 any | rule 20 permit source 2.2.2.2 0 | |
SNMP | ||
snmp-server source-interface traps mgmt0 | snmp-agent snmp-agent trap source MEth0/0/0 |
|
snmp-server user admin network-admin auth md5 0x22643f18a9d378628e8c53532482078b priv 0x22643f18a9d378628e8c53532482078b localizedkey | snmp-agent sys-info location admin snmp-agent sys-info version v2c snmp-agent community complexity-check disable |
|
snmp-server host 3.3.3.3 traps version 2c read | snmp-agent target-host trap address udp-domain 3.3.3.3 vpn-instance MGT params securityname cipher adminnms2 v2c | |
添加网管对某些节点访问权限 | snmp-agent mib-view included nt iso | |
snmp-agent mib-view included rd iso | ||
snmp-agent mib-view included wt iso | ||
snmp-agent mib-view included iso-view iso | ||
rmon event 1 description FATAL(1) owner PMON@FATAL | rmon event 1 description FATAL(1) log owner PMON@FATAL | |
rmon event 2 description CRITICAL(2) owner PMON@CRITICAL | rmon event 2 description CRITICAL(2) log owner PMON@CRITICAL | |
rmon event 3 description ERROR(3) owner PMON@ERROR | rmon event 3 description ERROR(3) log owner PMON@ERROR | |
rmon event 4 description WARNING(4) owner PMON@WARNING | rmon event 4 description WARNING(4) log owner PMON@WARNING | |
rmon event 5 description INFORMATION(5) owner PMON@INFO | rmon event 5 description INFORMATION(5) log owner PMON@INFO | |
snmp-server enable traps callhome event-notify | 华为侧只需配置一条命令 | snm |