0% found this document useful (0 votes)
145 views

Net 4020 - Configuring VLANs Lab

This document provides instructions for configuring Cisco VLANs on a switch. The tasks include: 1) Setting the switch hostname and enabling secret. 2) Configuring VLAN 1 for remote management and assigning it an IP address. 3) Creating VLANs 2 and 3 for data and ISCSI traffic respectively. 4) Assigning ports to each VLAN and configuring two ports as trunks. 5) Configuring a half router with subinterfaces for each VLAN to allow communication between the VLANs.

Uploaded by

mnjau
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
145 views

Net 4020 - Configuring VLANs Lab

This document provides instructions for configuring Cisco VLANs on a switch. The tasks include: 1) Setting the switch hostname and enabling secret. 2) Configuring VLAN 1 for remote management and assigning it an IP address. 3) Creating VLANs 2 and 3 for data and ISCSI traffic respectively. 4) Assigning ports to each VLAN and configuring two ports as trunks. 5) Configuring a half router with subinterfaces for each VLAN to allow communication between the VLANs.

Uploaded by

mnjau
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy