Configuring VLANs 57

Configuring Port-Based VLANs

Adding Ethernet Ports to a VLAN

Use the following command to add Ethernet ports to a VLAN.

Perform the following configuration in VLAN view.

Table 52 Adding Ethernet Ports to a VLAN

OperationCommand

Add Ethernet ports to a VLAN port { interface_type interface_num interface_name [ to interface_type interface_num interface_name ] }& < 1-10 >

Remove Ethernet ports from a undo port { interface_type interface_num

VLANinterface_name [ to interface_type interface_num interface_name ] }& < 1-10 >

For the meanings of the parameters related to the Ethernet ports and the specific numbering rules of the ports, see “Port Configuration” on page 35.

The port number preceding the key word to must be smaller than the number following to. All ports within the specified range must be of the same type.

The &<1-10>of the command specifies the repetition times of the parameter, ranging from 1 to 10. In addition, you cannot specify any trunk ports.

By default, the system adds all ports to VLAN1.

Configuring Table 53 describes how incoming packets are treated when they pass through Protocol-Based VLANs ports that are members of both tagged and protocol-based VLANs.

Table 53 Incoming Packets in Tagged and Protocol-Based VLANs

 

Receiving Port on the VLAN

 

Incoming Packet

Tagged

Untagged

Default VLAN PVID

 

 

 

 

Tagged

Perform VLAN check

 

 

 

(802.1q)

 

 

Tagged

Perform VLAN check

Untagged

Perform protocol-VLAN

 

match if a

 

protocol-VLAN is

 

configured

Add to PVID if no match or no protocol-VLAN is configured

Untagged

Perform protocol-

 

VLAN match if a

 

protocol-VLAN is

 

configured

Add to PVID if no match or no protocol-VLAN is configured

Configuring protocol-based VLANs includes tasks described in the following sections:

Creating and Deleting a VLAN Protocol Type

Creating and Deleting the Association Between a Port and a Protocol-Based

VLAN

Protocol-based VLANs are supported only in the 48-port 10/100BASE-T Auto-sensing FE, 24-port 100BASE-FX MMF FE, 8-port 1000BASE-X GE, and 8-port 10/100/1000BASE-T GE I/O modules.

Page 57
Image 57
3Com 10014298 manual Adding Ethernet Ports to a Vlan, By default, the system adds all ports to VLAN1