Operation Manual - Link Layer Protocol
H3C SecPath F1800-A Firewall
Chapter 1 VLAN Configuration
4-7
Table 1-8
Displaying and debugging VLAN
Action
Command
View the status of a VLAN and
the ports it contains.
display
vlan
vlan-id
View the untagged ports of all or
a specified VLAN.
display
vlan port-default
[
vid
vlan-id
]
View the tagged port of all or a
specified VLAN.
display
vlan port-trunk
[
vid
vlan-id
]
Debug VLAN packets.
debugging vlan packet
[
interface
interface-type interface-number
] [
vid
vlan-id
]
Disable VLAN packet debugging.
undo debugging vlan packet
[
interface
interface-name
] [
vid
vlan-id
]
Note:
If you do not specify any optional parameter for the
debugging vlan packet
command, you will debug all the packets of all the VLAN sub-interfaces.
1.4 Typical Example for Configuring VLAN
I. Networking Requirements
The following is a configuration example of layer 3 forwarding mode (sub-interface).
As shown in
, Switch 1 and Switch 2 specify the VLAN attributes of ports.
Thus, the workstations A, B, C and D connected to these Switches belong to VLAN 10
or VLAN 20.
It is required:
z
The addresses of the SecPath F1800-A sub-interfaces Ethernet 3/0/0.1,
Ethernet 3/0/0.2, Ethernet 4/0/0.1, and Ethernet 4/0/0.2 are 1.0.0.1, 2.0.0.1,
3.0.0.1, and 4.0.0.1 respectively.
z
Communication can be carried out between workstation A and B as well as
between C and D. Namely, through the same switch, workstations in different
VLANs can communicate with each other.
z
Communication can be carried out between workstation A and C, as well as
between B and D. Namely, through different switches, workstations in the same
VLAN can communicate with each other.
z
Communications can be carried out between workstations A and D, and between
B and C. Namely, different switches and different VLANs can communicate with
each other.