56CHAPTER 3: VLAN CONFIGURATION

status of one or more Ethernet ports is UP, the status of the VLAN interface is UP also, so the VLAN interface is enabled.

Displaying and Debugging a VLAN

After the configuring a VLAN, execute the display command in any view to display the VLAN configuration, and to verify the effect of the configuration.

Table 51 Displaying and Debugging a VLAN

Operation

Command

 

 

Display the information about a VLAN

display interface vlan-interface

interface

[ vlan_id ]

Display the information about a VLAN

display vlan [ vlan_id all

 

static dynamic ]

Display the protocol information and protocol

display protocol-vlan vlan_list

index configured on the specified VLAN

 

Display the protocol information and protocol

display protocol-vlan interface

index configured on the specified port

interface_list

 

 

Example: VLAN Configuration

Create VLAN2 and VLAN3. Add Ethernet 1/0/1 and Ethernet 2/0/1 to VLAN2 and add Ethernet 1/0/2 and Ethernet 2/0/2 to VLAN3.

Figure 15 VLAN Configuration Example

Switch

E1/0/1

E2/0/1

E1/0/2

E2/0/2

VLAN2

VLAN3

 

1Create VLAN 2 and enter its view.

[SW7750]vlan 2

2Add Ethernet 1/0/1 and Ethernet 2/0/1 to VLAN2.

[SW7750-vlan2]port Ethernet 1/0/1 Ethernet 2/0/1

3Create VLAN 3 and enters its view.

[SW7750-vlan2]vlan 3

4Add Ethernet 1/0/2 and Ethernet 2/0/2 to VLAN3.

[SW7750-vlan3]port Ethernet 1/0/2 Ethernet 2/0/2

Page 56
Image 56
3Com 10014298 manual Displaying and Debugging a Vlan, Example Vlan Configuration