华为交换机vlan配置
华为交换机vlan基本配置:
1、创建vlan:
<Quidway>
<Quidway>system-view
[Quidway] vlan 10
[Quidway-vlan10] quit
[Quidway] vlan 100
[Quidway-vlan100] quit
2、将端口加入到vlan中:
[Quidway] interface GigabitEthernet2/0/1 (10G光口)
[Quidway- GigabitEthernet2/0/1] port link-type access
[Quidway- GigabitEthernet2/0/1] port default vlan 100
[Quidway- GigabitEthernet2/0/1] quit
[Quidway] interface GigabitEthernet1/0/0
[Quidway- GigabitEthernet1/0/0] port link-type access
[Quidway- GigabitEthernet2/0/1] port default vlan 10
[Quidway- GigabitEthernet2/0/1] quit
3、将多个端口加入到VLAN中
<Quidway>system-view
[Quidway]vlan 10
[Quidway-vlan10]port GigabitEthernet 1/0/0 to 1/0/29 //将0到29号口加入到vlan10中
[Quidway-vlan10]quit
扩展资料:
交换机保存设置和重置命令:
<Quidway>save
<Quidway>reset saved-configuration
<Quidway>reboot
交换机常用的显示命令:
用户视图模式下:
<Quidway>display current-configuration
<Quidway>display device
<Quidway>display interface ?
<Quidway>display version
<Quidway>display vlan ?
参考资料:百度百科—交换机命令