输出一份思科、华为、新华三、锐捷交换机的命令大全
时间: 2023-09-15 14:21:43 浏览: 181
以下是思科、华为、新华三、锐捷交换机的命令大全:
思科交换机命令:
1. 配置主机名:hostname <name>
2. 配置接口VLAN:interface <interface type><interface number>,switchport mode access,switchport access vlan <vlan ID>
3. 配置Trunk口:interface <interface type><interface number>,switchport mode trunk,switchport trunk allowed vlan <vlan ID>
4. 配置默认网关:ip default-gateway <ip address>
5. 配置静态路由:ip route <destination network> <subnet mask> <next hop address>
6. 配置Telnet:line vty <line number>,password <password>,login
7. 配置SSH:ip ssh version <version>,crypto key generate rsa
8. 配置ACL:access-list <number> permit/deny <protocol> <source address> <wildcard mask> [<destination address> <wildcard mask> <operator> <port>]
9. 配置STP:spanning-tree mode <mode>,spanning-tree vlan <vlan ID> root primary/secondary,spanning-tree portfast
华为交换机命令:
1. 配置主机名:sysname <name>
2. 配置接口VLAN:interface <interface type><interface number>,port link-type access,port default vlan <vlan ID>
3. 配置Trunk口:interface <interface type><interface number>,port link-type trunk,port trunk allow-pass vlan <vlan ID>
4. 配置默认网关:ip route-static 0.0.0.0 0.0.0.0 <next hop address>
5. 配置静态路由:ip route-static <destination network> <subnet mask> <next hop address>
6. 配置Telnet:user-interface vty <line number>,authentication-mode password,set authentication password cipher <password>
7. 配置SSH:ssh server enable,user-interface vty <line number>,authentication-mode aaa,protocol inbound ssh,user privilege level 3
8. 配置ACL:acl number <number>,rule <rule number> permit/deny <protocol> source <source address> <wildcard mask> destination <destination address> <wildcard mask> [destination-port <port>]
9. 配置STP:stp mode <mode>,stp priority <priority>,stp enable
新华三交换机命令:
1. 配置主机名:sysname <name>
2. 配置接口VLAN:interface <interface type><interface number>,port link-type access,port default vlan <vlan ID>
3. 配置Trunk口:interface <interface type><interface number>,port link-type trunk,port trunk allow-pass vlan <vlan ID>
4. 配置默认网关:ip route-static 0.0.0.0 0.0.0.0 <next hop address>
5. 配置静态路由:ip route-static <destination network> <subnet mask> <next hop address>
6. 配置Telnet:user-interface vty <line number>,authentication-mode password,set authentication password cipher <password>
7. 配置SSH:ssh server enable,user-interface vty <line number>,authentication-mode aaa,protocol inbound ssh,user privilege level 3
8. 配置ACL:acl number <number>,rule <rule number> permit/deny <protocol> source <source address> <wildcard mask> destination <destination address> <wildcard mask> [destination-port <port>]
9. 配置STP:stp mode <mode>,stp priority <priority>,stp enable
锐捷交换机命令:
1. 配置主机名:system name <name>
2. 配置接口VLAN:interface <interface type><interface number>,port link-type access,port default vlan <vlan ID>
3. 配置Trunk口:interface <interface type><interface number>,port link-type trunk,port trunk allow-pass vlan <vlan ID>
4. 配置默认网关:ip route-static 0.0.0.0 0.0.0.0 <next hop address>
5. 配置静态路由:ip route <destination network> <subnet mask> <next hop address>
6. 配置Telnet:user-interface vty <line number>,authentication-mode password,set authentication password cipher <password>
7. 配置SSH:ssh server enable,user-interface vty <line number>,authentication-mode aaa,protocol inbound ssh,user privilege level 3
8. 配置ACL:acl number <number>,rule <rule number> permit/deny <protocol> source <source address> <wildcard mask> destination <destination address> <wildcard mask> [destination-port <port>]
9. 配置STP:stp enable,stp force-version <version>,stp priority <priority>
阅读全文