我们在上一篇文章中提到了一些配置命令,这篇文章中,我们学习一些进阶的命令,建议小伙伴们转发收藏。多多学习!
配置明文密码:
CISCO:enable password
H3C:set authentication password simple
HUAWEI:set authentication password simple
进入端口:
CISCO:interface type/number
H3C:interface type/number
HUAWEI:interface type/number
进入vlan配置vlan管理地址:
CISCO:interface vlan 1
H3C:interface vlan 1
HUAWEI:interface vlan 1
定义多个端口的组:
CISCO:interface rang
H3C:interface ethID to ID
HUAWEI:interface ethID to ID
设置特权口令:
CISCO:enabl esecret
H3C:super password
HUAWEI:super password
配置接口状态:
CISCO:duplex(half|full|auto)
H3C: duplex(half|full|auto)
HUAWEI:duplex(half|full|auto)
配置端口速率:
CISCO:speed(10/100/1000)
H3C:speed(10/100/1000)
HUAWEI:speed(10/100/1000)
配置trunk:
CISCO:switchport mode trunk
H3C:port link-type trunk
HUAWEI:port link-type trunk
添加、删除vlan:
CISCO:vlan ID/no vlan ID
H3C:vlan batch ID/undo vlan batch ID
HUAWEI:vlan batch ID/undo vlan batch ID
将端口接入vlan:
CISCO:switchport access vlan
H3C:port default vlan ID
HUAWEI:port default vlan ID
查看端口:
CISCO:show interface
H3C:display interface
HUAWEI:display interface
查看vlan:
CISCO:show vlan ID
H3C:display vlan ID
HUAWEI:display vlan ID
封装协议
CISCO:encapsulation
H3C:link-protocol
HUAWEI:link-protocol
链路聚合
CISCO:channel-group 1 mode on
H3C:port link-aggregation group 1
HUAWEI:port link-aggregation group 1
开启三层交换的路由功能
CISCO:ip routing
H3C:默认开启
HUAWEI:默认开启
开启接口三层功能
CISCO:no switchport
H3C:不支持
HUAWEI:不支持
对跨以太网的VLAN进行动态注册和删除
CISCO:vtp domain
H3C:GVRP
HUAWEI:GVRP
Stp配置根网桥
CISCO:spanning-tree vlan ID root primary
H3C: stp instance id root primary
HUAWEI:stp instance id root primary
配置网桥优先级
CISCO:spanning-tree vlan ID priority
H3C:stp primary vlaue
HUAWEI:stp primary vlaue
查看STP配置
CISCO:show spanning-tree
H3C:dis stp brief
HUAWEI:dis stp bried