Operation Manual - Link Layer Protocol
H3C SecPath F1800-A Firewall
Chapter 1 VLAN Configuration
4-6
Do as follows in Ethernet interface view or GE interface view.
Table 1-5
Adding or deleting the current port
Action
Command
Add the current port to a VLAN.
port
default
vlan
vlan-id
Delete the current port from a VLAN.
undo port
default
vlan
vlan-id
1.2.5 Configuring a Trunk Port
When you configure a port with one or more allowed VLANs, the port will become a
Trunk port.
When you remove all allowed VLANs from a Trunk port, the port will not be a Trunk
port any more.
Do as follows in Ethernet interface view.
Table 1-6
Configuring a Trunk port
Action
Command
Configure a port as Trunk port and set the
allowed VLAN ID on the port.
port trunk allow-pass vlan
{ {
vlan-id
[
to
vlan-id
] } & <1-10> |
all
}
Configure a Trunk port to non-trunk port
and delete all the allowed VLAN IDs.
undo port trunk allow-pass vlan
{ {
vlan-id
[
to
vlan-id
] } & <1-10> |
all
}
1.2.6 Setting Sub-interface Encapsulation Type and Related VLAN ID
Do as follows in Ethernet sub-interface view.
Table 1-7
Setting sub-interface encapsulation type and related VLAN ID
Action
Command
Set sub-interface encapsulation type and
related VLAN ID.
vlan-type dot1q
vlan-id
]
1.3 Displaying and Debugging VLAN
You can use the
display
command in any view to view the running state and thus
verify the effect of VLAN.
You can use the
debugging
command in user view to debug VLAN.