FIGURE 3-18The Switch Config ⇒ VLANs Window

Command-line Interface: Adding Ports Manually to a VLAN

The following example adds two ports to VLAN 3 (named R&D), forbids server blade port SNP13 from joining the VLAN dynamically (using GVRP), and finally displays the VLAN’s membership:

Console(config)#interface ethernet NETP1

 

 

Console(config-if)#switchport allowed vlan add 3

tagged

Console(config-if)#exit

 

 

 

Console(config)#interface ethernet NETP2

 

 

Console(config-if)#switchport allowed vlan add 3

untagged

Console(config-if)#exit

 

 

 

Console(config)#interface ethernet SNP13

 

 

Console(config-if)#switchport forbidden vlan add

3

Console(config-if)#end

 

 

 

Console#show vlan id 3

 

 

 

VLAN Type

Name

Status

Ports/Channel groups

----

------- ---------------- --------- -------------------------

3

Static R&D

Active

NETP1 NETP2

Console#

 

 

3-52Sun Fire B1600 Blade System Chassis Switch Administration Guide • June 2003

Page 90
Image 90
Sunfire B1600 manual Command-line Interface Adding Ports Manually to a Vlan, 18The Switch Config ⇒ VLANs Window