Professional Documents
Culture Documents
Router Configuration Vlan
Router Configuration Vlan
VLAN Configuration
The network lab has two Catalyst 2950T24 switches, with
names Maryland and California, and one Catalyst 2950G
Switch with name Virginia.
- References:
http://www.cisco.com/en/US/products/hw/switches/ps4916/pro
ducts_configuration_guide_chapter09186a008017e532.html
− The two Catalyst 2950T24’s in the network lab, each
has 24 10/100 Base T ports, and two 10/100/1000 Base T
ports i.e., gi0/1 and gi0/2.
− For Catalyst 2950G (i.e, Virginia), the two
10/100/1000 Base T ports are currently not installed
− The 24 10/100 Base T ports are: fa0/1, fa0/1,fa0/2, …
fa0/24
− Two 10/100/1000 Base T ports are: gi0/1 and gi0/2
Jan. 26,2010 1
VLAN 2
Jan. 26,2010 2
VLAN 3
Configure
Privileged Mode
User Mode enable Mode Config t
Router(config)#
Router> Router#
end
disable
end
Ctrl-Z interface
Router(config-if)
router
Router(config-router)
Jan. 26,2010 3
VLAN 4
♦ What is a Trunk?
• A Trunk is a point-to-point link that transmit and receive
traffic between switches or switch and routers.
• Trunks carry the traffic of multiple VLANs and can
extend VLANs across an entire network
Jan. 26,2010 4
VLAN 5
III.Deleting a VLAN
step command purpose
1 Config t Enter global configuration mode
2 No vlan vlan-id Remove the VLAN by entering the
VLAN-ID
3 end Return to privileged mode
4 Sh vlan brief Verify the VLAN removed
5 copy running-config startu-config Save the configuration in the switch
or wr mem startup configuration file
Jan. 26,2010 5
VLAN 6
Jan. 26,2010 6
VLAN 7
California(config)#int fa0/3
California(config)#switchport mode access
California(config)#switchport access vlan 10
/* at this point, vlan 10 has 3 members i.e., fa0/1, fa0/2 and fa0/3 */
California(config)#vlan 20 name vlan20
California(config)#int fa0/5
California(config)#switchport mode access
California(config)#switchport access vlan 20
California(config)#int fa0/6
California(config)#switchport mode access
California(config)#switchport access vlan 20
California(config)#int fa0/7
California(config)#switchport mode access
California(config)#switchport access vlan 20
Jan. 26,2010 7
VLAN 8
California(config)#int fa0/8
California(config)#switchport mode access
California(config)#ctrl-Z
California# /*return to privileged mode */
/* At this poing vlan 20 has 4 members i.e.,
fa0/5, fa0/6, fa0/7 and fa0/8 */
California(config)#int gi0/2
California(config)# switchport mode trunk
/* this will put the port gi0/2 to be in permanent
trunking mode */
California(config)#switchport access vlan 40
/* put int gi0/2 into vlan 40 */
California(config)#switchport access vlan 20
California(config)#end or ctrl-Z
/* return to privileged mode */
California#wr mem or copy running-config strtup-config
Jan. 26,2010 8