H3C的Vlan配置
查看vlan配置:
[SW1]dis vlan brief
新建vlan:
[SW1]vlan 10
[SW1]vlan 20
更改vlan名字:
[SW1-vlan10]name gongchengbu
把端口划分到对应vlan:
[SW1]int gi 1/0/1 进入对应端口
[SW1-GigabitEthernet1/0/1]port link-type access 更改端口的接入模式为access
[SW1-GigabitEthernet1/0/1]port access vlan 10 把端口接入划分到vlan 10
两交换机间相同vlan通信:
sw1与sw2相连的端口必须设置接口模式为trunk
[SW1-GigabitEthernet1/0/3]undo port access vlan 取消端口配置的vlan
[SW1-GigabitEthernet1/0/3]port link-type trunk 配置端口的接入模式为trunk
[SW1-GigabitEthernet1/0/3]port trunk permit vlan 10 20 把端口接入划分到vlan 10 和vlan 20
posted on 2018-12-17 13:42 fishlineasy 阅读(1092) 评论(0) 编辑 收藏 举报