思科、华为、H3C主要命令对照表(二)交换部分

思科
华为
H3C
描述
交换部份:
 
 
 
enable password
set authentication password simple
set authentication password simple
配置明文密码
interface type/number       
port type/number       
port type/number       
进入接口
interface vlan 1               
interface vlan 1              
interface vlan 1               
进入vlan配置vlan管理地址
interface rang
interface ethID to ID
interface ethID to ID
定议多个端口的组
enabl esecret
super password
super password
设置特权口令
duplex (half|full|auto)
duplex (half|full|auto)
duplex (half|full|auto)
配置接口状态
speed (10/100/1000)
speed (10/100/1000)
speed (10/100/1000)
配置端口速率
switchport mode trunk
port link-type trunk
port link-type trunk
配置trunk
vlan ID  /no vlan ID
vlan ID  /undo vlan ID
vlan ID  /undo vlan ID
添加、删除vlan
switchport access vlan ID
port vlan ID
port vlan ID
将端口接入vlan
show interface
display interface
display interface
查看接口
show vlan ID
display vlan ID
display vlan ID
查看vlan
encapsulation
link-protocol
link-protocol
封装协议
channel-group 1 mode on
port link-aggregation group 1
port link-aggregation group 1
链路聚合
ip routing
默认开启
默认开启
开启三层交换的路由功能
no switchport
不支持
不支持
开启接口三层功能
vtp domain
GVRP
GVRP
对跨以太网交换机的VLAN进行动态注册和删除
spanning-tree vlan ID root primary
 
 
stp 配置根网桥
spanning-tree vlan ID priority
 
 
配置网桥优先级
show spanning-tree
 
 
查看STP配置

你可能感兴趣的:(职场,华为,h3c,休闲,思科,命令对照表)