[Computer Network] ensp VLAN

[Huawei] vlan batch 10 20 30 40 50 \\ 10,20,30,40,50 create the VLAN
[the Huawei]-Port Interface Group Create Group \\. 1. 1
[the Huawei. 1-Port-Group-] Group Member-E0 / Add 0/1 to e0 / 0/7 \\ interface configured to interface to the same group
[Huawei-port-group-1 ] port link-type access \\ interface to configure the interface group access mode
[Huawei-port -group-1] port default vlan 10 \\ interface PVID setting the interface 10 group is the VLAN

[the Huawei] int G0 / 0 / \\ enter interface. 1
[Huawei-GigabitEthernet0 / 0/1 ] port link-type trunk \ \ Trunk interface configuration mode
[Huawei-GigabitEthernet0 / 0/1 ] port trunk pvid vlan 50 \\ PVID set to the interface 50, the local port receive untagged traffic will be marked with a tag VLAN 50, VLAN 50 is not sending traffic tagging
[Huawei-GigabitEthernet0 / 0/1 ] port trunk allow-pass vlan 10 20 30 40 50 \\ configure the VLAN interface allows communication 10,20,30,40,50
Note: when setting the port to allow communication VLAN list , if the VLAN ID is continuous, can be used to, for example, 3 to 5 expressed VLAN 3,4,5.

[Huawei] int g0 / 0/ 1 \\ Enter interface
[Huawei-GigabitEthernet0 / 0/1 ] port link-type hybrid \\ Trunk interface configuration mode
[Huawei-GigabitEthernet0 / 0/1 ] port hybrid pvid vlan 50 \\ PVID to set the interface 50, the local port receive untagged traffic will be marked with a tag VLAN 50
[Huawei-GigabitEthernet0 / 0/2 ] port hybrid untagged vlan 50 \\ when an interface is provided to allow flow communication VLAN 50, and the transmission , labels removed
[Huawei-GigabitEthernet0 / 0/2 ] port hybrid tagged vlan 10 20 30 40 \\ setting interface allows communication traffic 10,20,30,40 VLAN, VLAN flow rate of the transmission through the interface with the label

NOTE: when the communication port is set tagging, if the VLAN ID is continuous, can be used to, for example, 3 to 5 expressed VLAN 3,4,5.


Guess you like

Origin www.cnblogs.com/Skybiubiu/p/12507996.html
Recommended