You are on page 1of 5

NET4020: NETWORK MANAGEMENT

Given on 2nd November 2010

Lecturer: Dr. G. Chege (gchege@usiu.ac.ke)

Configuring Cisco VLANs Lab


We ll perform the following tasks

Set the switches hostname


Configure the enable secret
Configure an interface on VLAN 1 for remote management
Configure two VLANs, one for normal data traffic and one for ISCSI traffic
Assign half the ports to each VLAN
Configure two ports as trunks for future switch expansion

Would you like to enter the initial configuration dialog? [yes/no]: no

Press RETURN to get started

Switch>
Notes:Enter enable mode
Switch>enable
Notes:Enter configuration mode
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Notes:Change the switch name
Switch(config)#hostname 2950
Notes:Change the enable password
2950(config)#enable secret <password>
Notes:Configure a management interface and assign it an IP.
2950(config)#int vlan 1
2950(config-if)#ip address <IP Address> <Subnet Mask>
2950(config-if)#no shutdown
2950(config-if)#exit
Notes:Create two VLANs and give them names
2950(config)#vlan 2
2950(config-vlan)#name Data
2950(config-vlan)#exit
2950(config)#vlan 3
2950(config-vlan)#name LabWork
2950(config-vlan)#exit
Notes:Select the first range of ports and add them to the Data VLAN
2950(config)#int range faste0/3 12
2950(config-if-range)#switchport mode access
2950(config-if-range)#switchport access vlan 2
2950(config-if-range)#no shutdown
2950(config-if-range)#exit
Notes:Select the second range of ports and add them to the ISCSI VLAN
2950(config)#int range faste0/13 24
2950(config-if-range)#switchport mode access
2950(config-if-range)#switchport access vlan 3
2950(config-if-range)#no shutdown
2950(config-if-range)#exit
2950(config)#exit
Notes:Select the two ports 1 and 2 and configure them as trunks. While its not necessary
limit the trunk to only pass VLAN 2 and 3 traffic over the trunk link
2950(config)#int range faste0/1 2
2950(config-if-range)#switchport mode trunk
2950(config-if-range)#switchport trunk allowed VLAN 2,3
2950(config-if-range)#no shutdown
2950(config-if-range)#exit
2950(config)#exit
Notes:Save the configuration
2950#write
Notes: Use the show vlan command to display the VLANs that are locally defined. The
output also displays which ports are assigned to which VLANs. Note that the two trunk
ports aren t assigned to either VLAN.
2950#show vlan

Now connect and configure hosts for VLAN 2 (access ports 3-12) and hosts for VLAN 3
(access ports 13-24);

Half Router Configuration (Router on a Stick)

Connect the truck port # 2 to the half-router s interface

router (config)#interface fastethernet0/1


router (config-if)#no ip address
router (config-if)#interface fastethernet0/1.1
router (config-subif))# encapsulation dot1Q 1 native
router (config-subif))#ip address 192.168.26.28 255.255.255.0

router (config)#no shutdown

1) Confirm each vlan is working by pinging hosts within the Vlan;


2) Test the trunk ports by pinging across the two Vlans;

VLAN LAB ASSIGNMENT

Use the following diagram (Fig 1 ) as a requirements guide to create the VLANs shown. Use
the IP addresses as indicated.

Test your network thoroughly and submit the following:

1) The network diagram


2) The CLI configurations for each switch and half-router
3) Sample ping tests across the different VLANs
This document was created with Win2PDF available at http://www.daneprairie.com.
The unregistered version of Win2PDF is for evaluation or non-commercial use only.

You might also like