华为交换机vlan配置
华为交换机vlan基本配置:
1、创建vlan:
<Quidway>
<Quidway>system-view
[Quidway]vlan10
[Quidway-vlan10]quit
[Quidway]vlan100
[Quidway-vlan企鱼查衡住请整100]quit
2、将端口加入到vlan中:
[Quidway]interfaceGigabitEthernet2/0/1(10G光口)
[Quidway-GigabitEthernet2/0/1]portlink-typeaccess
[Quidway-GigabitEthernet2/0/1]portdefaultvlan100
[Quidway-GigabitEthernet2/0/1]quit
[Quidway]in伤混末胜评施煤族井够terfaceGigabitEthernet1/0/0
[Quidway-GigabitEthe敌学探rnet1/0/0]port来自link-typeaccess
[Quidway-GigabitEthernet2/0/1]portdefaultvlan10
[Quidway-G360问答igabitEthernet2/0/1]quit
3、将多个端口加入到VLAN中
<Quidway>sy联松位玉望车历饭stem-view
[Quidway]vlan10
[Quidway-vlan10]portGig酒伤办衡情哥abitEthernet1/0/0to1/0/29//将0到29号口加入到vlan10中
[Quidway-vlan10]quit
扩展资料:
交换机保式存设置和重置命令:
<Quidway>save
<Quidway>resetsaved-configu练ration
<Quidway>reboot
交换机常用的显示命令:
用户视图模式下:
<Quidway>displaycurrent-configuration
<Quidway>displaydevice
<Quidway>dis动八调需如苗何照引按playinterf批鲁ace?
<Quidway>displayversion
<Quidway>displayvlan?
参考资料:百度百科—交换机命令
标签:vlan,交换机,华为