#三层交换机互联互通 交换机配置 命令
#进入系统视图
<Huawei>system-view
#关闭系统提示信息
[Huawei]undo info-center enable
#创建三个Vlan10
[Huawei]vlan 10
[Huawei-vlan10]quit
[Huawei]vlan 20
[Huawei-vlan20]quit
[Huawei]vlan 30
[Huawei-vlan30]quit
#接口加入vlan10 vlan20 vlan30
[Huawei]int g0/0/1
[Huawei-GigabitEthernet0/0/1]port link-type access
[Huawei-GigabitEthernet0/0/1]port default vlan 10
[Huawei-GigabitEthernet0/0/1]quit
[Huawei]int g0/0/2
[Huawei-GigabitEthernet0/0/2]port link-type access
[Huawei-GigabitEthernet0/0/2]port default vlan 20
[Huawei-GigabitEthernet0/0/2]quit
[Huawei]int g0/0/3
[Huawei-GigabitEthernet0/0/3]port link-type access
[Huawei-GigabitEthernet0/0/3]port default vlan 30
[Huawei-GigabitEthernet0/0/3]quit
#配置vlan的IP地址
[Huawei]int vlan 10
[Huawei-Vlanif10]ip address 192.168.10.1 24
[Huawei-Vlanif10]quit
[Huawei]int vlan 20
[Huawei-Vlanif20]ip address 192.168.20.1 24
[Huawei-Vlanif20]quit
[Huawei]int vlan 30
[Huawei-Vlanif30]ip address 192.168.30.1 24
[Huawei-Vlanif30]quit
#退出system view 保存以上配置
[Huawei]quit
<Huawei>save