3 Configuring the Switch

CLI – The following example adds tagged and untagged ports to VLAN 2.

Console(config)#interface ethernet 1/1

4-125

Console(config-if)#switchport allowed vlan add 2 tagged

4-174

Console(config-if)#exit Console(config)#interface ethernet 1/2 Console(config-if)#switchport allowed vlan add 2 untagged Console(config-if)#exit

Console(config)#interface ethernet 1/13 Console(config-if)#switchport allowed vlan add 2 tagged Console(config-if)#

Adding Static Members to VLANs (Port Index)

Use the VLAN Static Membership by Port menu to assign VLAN groups to the selected interface as a tagged member.

Command Attributes

Interface – Port (1-8) or trunk identifier.Member – VLANs for which the selected interface is a tagged member.Non-Member – VLANs for which the selected interface is not a tagged member.

Web – Open VLAN, 802.1Q VLAN, Static Membership by Port. Select an interface from the scroll-down box (Port or Trunk). Click Query to display membership information for the interface. Select a VLAN ID, and then click Add to add the interface as a tagged member, or click Remove to remove the interface. After configuring VLAN membership for each interface, click Apply.

Figure 3-79 VLAN Static Membership by Port

CLI – This example adds Port 3 to VLAN 1 as a tagged port, and removes Port 3 from VLAN 2.

Console(config)#interface ethernet 1/3

4-125

Console(config-if)#switchport allowed vlan add 1 tagged

4-174

Console(config-if)#switchport allowed vlan remove 2

 

Console(config-if)#

 

 

 

3-140