3.华为交换机知识【trunk】

 任务:将trunk类型接口加入vlan

1.进入系统视图                          system-view

2.新建vlan 10 20                        vlan 10

                                                vlan 20

3.进入接口视图                          interface giga 0/0/1

4.将接口设为trunk类型               port link-type trunk

5.设为允许vlan 10 20通过           port trunk allow-pass vlan 10 20

6.退出并保存                             return

                                                save

 

在eNSP模拟器上的命令如下

<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info-center enable
Info: Information center is disabled.
[Huawei]vlan 10
[Huawei-vlan10]q
[Huawei]vlan 20
[Huawei-vlan20]q
[Huawei]interface giga 0/0/1
[Huawei-GigabitEthernet0/0/1]port link-type trunk
[Huawei-GigabitEthernet0/0/1]port trunk allow-pass vlan 10 20
[Huawei-GigabitEthernet0/0/1]q
[Huawei]q
<Huawei>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Now saving the current configuration to the slot 0.
Save the configuration successfully.

你可能感兴趣的:(知识,3,华为交换机)