mk @msitstore c users anfal haider rizvi desktop huawei
TRANSCRIPT
-
port trunk allow-pass vlan
Function
The port trunk allow-pass vlan command adds a trunk interface to the specified VLANs.The undo port trunk allow-pass vlan command deletes a trunk interface from the specified VLANs.By default, a trunk interface is in VLAN 1.
Format
port trunk allow-pass vlan { { vlan-id1 [ to vlan-id2 ] }& | all }undo port trunk allow-pass vlan { { vlan-id1 [ to vlan-id2 ] }& | all }
Parameters
Views
GE interface view
Default Level
2: Configuration level
Usage Guidelines
Usage ScenarioA trunk interface can join multiple VLANs and connects to a network device. To allow all packets from one or multiple VLANs to pass through a trunk interface, the trunk interface must be added to the VLANs using the port trunk allow-pass vlan command.PrerequisitesThe link-type of the interface is configured to trunk.PrecautionsIf you run the port trunk allow-pass vlan command multiple times in the same interface view, the interface is added to all the specified VLANs.
Example
# Add GE0/0/1 to VLANs 10 to 30. system-view[Huawei] interface gigabitethernet 0/0/1[Huawei-GigabitEthernet0/0/1] port link-type trunk
Parameter Description Value
vlan-id1 [ to vlan-id2 ] Adds a trunk interface to specified VLANs. vlan-id1 specifies the start VLAN
ID. to vlan-id2 specifies the end
VLAN ID. The value of vlan-id2must be greater than or equal to the value of vlan-id1.
The value of vlan-id1 is an integer that ranges from 1 to 4094.The value of vlan-id2 is an integer that ranges from 1 to 4094.
all Adds a trunk interface to or deletes it from all VLANs.
-
Page 1 of 2port trunk allow-pass vlan
2/24/2015mk:@MSITStore:C:\Users\Anfal%20Haider%20Rizvi\Desktop\Huawei%20Wireless%20...
2/24/2015mk:@MSITStore:C:\Users\Anfal%20Haider%20Rizvi\Desktop\Huawei%20Wireless%20...
-
[Huawei-GigabitEthernet0/0/1] port trunk allow-pass vlan 10 to 30
Parent topic: VLAN Configuration Commands
Related Topicsdisplay vlanport trunk pvid vlan
Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.
Page 2 of 2port trunk allow-pass vlan
2/24/2015mk:@MSITStore:C:\Users\Anfal%20Haider%20Rizvi\Desktop\Huawei%20Wireless%20...
2/24/2015mk:@MSITStore:C:\Users\Anfal%20Haider%20Rizvi\Desktop\Huawei%20Wireless%20...