H3C交换机设备常用命令

以下为H3C交换机设备常用命令。

display ip interface brief 显示vlan-if信息
display interface brief 显示全部接口信息
interface Gigabitethernet 1/0/n 设置接口 n

ip address x.x.x.x n.n.n.n 设置ip
undo ip address x.x.x.x n.n.n.n 取消设置ip

display ip routing-table 显示路由表项
ip route-statics x.x.x.x n.n.n.n x.x.x.x 添加一条路由表项(先后顺序为IP+mask+nexthop)
undo ip route-statics x.x.x.x n.n.n.n x.x.x.x 删除一条路由表项

vlan number 设置vlan(umber为要设置的vlanID)
port Gigabitethernet 1/0/n (在某vlan内)添加接口
interface vlan-interface n 设置vlan-if n 接口

interface Bridge-Aggregation n 设置聚合接口 n
port link-Aggregation group n (在接口1/0/x内)将该接口添加到聚合口n中

port link-type access/trunk 设置接口类型access/trunk
port trunk permit vlan 100 to 110 将trunk接口批量添加到vlan 100 到 110 中

display this 显示具体内容
shutdown (在接口内)接口down
undo shutdown (在接口内)接口恢复
quit 退出
————————————————
版权声明:本文为CSDN博主「windyf2013」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/windyf2013/article/details/79929482