Uploaded on

 

More in: Technology , Business
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
229
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
11
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. VLAN 1 VLAN ConfigurationThe network lab has two Catalyst 2950T24 switches, withnames Maryland and California, and one Catalyst 2950GSwitch with name Virginia.- References:http://www.cisco.com/en/US/products/hw/switches/ps4916/products_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/2Jan. 26,2010 1
  • 2. VLAN 2♦ 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 accessJan. 26,2010 2
  • 3. VLAN 3 Configure Privileged ModeUser 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
  • 4. 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 networkI.Define VLAN namestep command purpose1 Config t Enter global configuration mode2 Vlan vlan-id Enter a VLAN ID3 Name vlan-name Enter a name for the VLAN4 end Return to privileged mode5 Show vlan {name | id vlan-id } Verify your entries6 copy running-cnofig startup- Save the configuration in the switch config or wr mem configuration fileJan. 26,2010 4
  • 5. VLAN 5II.Insert interface ports to VLANStep Command Purpose1 Config terminal Enter global configuration mode2 Inter interface-id Enter the interface to be added to the VLAN3 Switchport mode access Define the VLAN membership mode for the port4 Switchport access vlan Assign the port to a VLAN Vlan-id5 end Return to privileged EXEC mode6 Show config or running-config Verify the VLAN membership mode of interf interface-id the interface7 Sh interf interface-id switchport Verify your entries in the Administrative mode and the access mode VLAN field8 Copy running-config startup- Save your entires in the configuration config file Or wr memIII.Deleting a VLANstep command purpose1 Config t Enter global configuration mode2 No vlan vlan-id Remove the VLAN by entering the VLAN-ID3 end Return to privileged mode4 Sh vlan brief Verify the VLAN removed5 copy running-config startu-config Save the configuration in the switch or wr mem startup configuration fileJan. 26,2010 5
  • 6. VLAN 6 ♦ 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 modeJan. 26,2010 6
  • 7. VLAN 7Examples of VLAN configurationCalifornia#sh vtp status /* show the vtp status */California#sh vlan /*to show all the vlans configured */California#config t /* this command cause the switch to enter configuration mode, whenall configuration is completed, enter either Ctrl^z or end to return to privileged EXEC mode */California(config)#vlan 10 name vlan10 /* defines name of vlan 10 as vlan10California(config)#int fa0/1California(config)#switchport mode accessCalifornia(config)#switchport access vlan 10 /* set port fa0/1 into vlan 10 */California(config)#int fa0/2California(config)#switchport mode accessCalifornia(config)#switchport access vlan 10California(config)#int fa0/3California(config)#switchport mode accessCalifornia(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 vlan20California(config)#int fa0/5California(config)#switchport mode accessCalifornia(config)#switchport access vlan 20California(config)#int fa0/6California(config)#switchport mode accessCalifornia(config)#switchport access vlan 20California(config)#int fa0/7California(config)#switchport mode accessCalifornia(config)#switchport access vlan 20Jan. 26,2010 7
  • 8. VLAN 8California(config)#int fa0/8California(config)#switchport mode accessCalifornia(config)#ctrl-ZCalifornia# /*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/2California(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 20California(config)#end or ctrl-Z /* return to privileged mode */California#wr mem or copy running-config strtup-configJan. 26,2010 8