Professional Documents
Culture Documents
Vlan
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 2950T24s 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
VLAN
All the Cisco switches has two operational modes User Exec Mode : When a user first establishes the connection with the switch, and enter the password, the switch is in User EXEC Mode, and the prompt is >. Privileged Mode: when user enter the command enable and supply the password, it enters the privileged mode, and the prompt is # Only in privileged mode, a user can enter configuration mode; to enter configuration mode, user must enter the command config t Configuration commands The following configuration commands explains how to define a vlan name, assigning a static-access ports to a VLAN, or deleting a VLAN. A VLAN port can be either in permanent trunk mode, or in non-trunking mode as access
Jan. 26,2010
VLAN
enable
Config t
disable
end
router Router(config-router)
Jan. 26,2010
VLAN
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 I.Define VLAN name step command
1 2 3 4 5 6 Config t Vlan vlan-id Name vlan-name end Show vlan {name | id vlan-id } copy running-cnofig startupconfig or wr mem
purpose
Enter global configuration mode Enter a VLAN ID Enter a name for the VLAN Return to privileged mode Verify your entries Save the configuration in the switch configuration file
Jan. 26,2010
VLAN
III.Deleting a VLAN
step 1 2 3 4 5 command Config t No vlan vlan-id end Sh vlan brief copy running-config startu-config or wr mem purpose Enter global configuration mode Remove the VLAN by entering the VLAN-ID Return to privileged mode Verify the VLAN removed Save the configuration in the switch startup configuration file
Jan. 26,2010
VLAN
The 26 interface ports of Catalyst 2950 T24 are: Interface fa0/i, where i= 1. 24 are the 24 10/100 Base T ports Interface gi0/1 or 0/2 are the two 10/100/1000 Base T ports The 24 ports of Catalyst 2950G Switch are: Interface fa0/i, where i= 1. 24 Switchport mode access interface is put into permanent nontrunking mode Switchport mode trunk - interface into permanent trunking mode
Jan. 26,2010
VLAN
*/
Jan. 26,2010
VLAN
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