Assigning Ports to VLANs


1900 Series Switch

1900Switch#config t

 

1900Switch(config)#int e0/2

Moves to interface mode

1900Switch(config-if)#vlan static 2

Assigns this port to VLAN 2

1900Switch(config-if)#int e0/3

Moves to interface mode

1900Switch(config-if)#vlan static 3

Assigns this port to VLAN 3

1900Switch(config-if)#exit

Exits interface mode

1900Switch(config)#

 


2900/2950 Series Switch

2900Switch#config t

 

2900Switch(config)#int fa0/2

Moves to interface mode

2900Switch(config-if)#switchport mode access

Sets switchport mode to access

2900Switch(config-if)#switchport access vlan 2

Assigns this port to VLAN 2

2900Switch(config-if)#int fa0/3

Moves to interface mode

2900Switch(config-if)#switchport mode access

Sets switchport mode to access

2900Switch(config-if)#switchport access vlan 3

Assigns this port to VLAN 3

2900Switch(config-if)#exit

Exits interface mode

2900Switch(config)#

 





CCNA Self-Study(c) CCNA Portable Command Guide
CCNA Portable Command Guide
ISBN: 1587201585
EAN: 2147483647
Year: 2006
Pages: 261
Authors: Scott Empson

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net