Vous êtes sur la page 1sur 12

Lab Manual

Setting up a LAN
(basic Switch and Router Configuration)
This manual was original created for IT 377. But it can serve as a tutorial for IT 373 if you havent done
this lab before. Please note: when going through this manual, you need chance IT377-pool to IT373pool.

1. Lab Overview
In this hands-on lab, we will practice how to apply what we have learned in class to set up a small but
typical LAN. The network diagram is shown in Figure 1. This network system includes one Layer 3 device
(i.e., R1), two Layer 2 devices (i.e., SW1 and SW2), and three end-hosts (i.e., PC1, PC2, and PC3).

Figure 1. Network Topology

More specifically, R1 is the Router and connects to two Switches, SW1 and SW2. SW1 connects to two
machines, PC1 and PC2. SW2 connects to PC3. The connectivity detail is listed below:

A regular link is set up between SW2 f1/15 and R1 f0/1; and a Trunk is set up between SW1
f1/15 and R1 f0/0
PC1 is connected to SW1 f1/0
PC2 is connected to SW1 f1/1
PC3 is connected to SW2 f1/0

2. Objectives

Gain hands-on experience on LAN configuration, including VLAN, Trunking, and basic switch
and router configuration.
Page 1 of 12

Enhance the understanding of switching and routing

3. Accessing the hands-on lab environment


(The general instruction is also available here:
http://www.itk.ilstu.edu/support/tutorials.php?p=Connecting%20to%20VDI)
You will do the hands-on lab via an emulation tool called GNS3, which is available on pre-configured VMs
through the schools Virtual Desktop Infrastructure (VDI).

Connecting to VDI
1.

Setup the VMware Horizon View Client


a.
Download the VMware Horizon View Client
(https://my.vmware.com/web/vmware/info?slug=desktop_end_user_computing/vmware_horizo
n_clients/3_0 )
b.
Install with default options and the View Connection Server is: itview51.ad.ilstu.edu
2.
Connect with Cisco VPN (only if off campus)
a.
Cisco AnyConnect Client
(http://helpdesk.illinoisstate.edu/downloads/1073/Cisco_AnyConnect/)
3.
Open VMware Horizon View Client
a.
Double click on itview51.ad.ilstu.edu
b.
Logon with your ISU ULID and password
c.
Double click on the IT377-Pool as shown below.

4. Create Network Topology


You need to create a network topology as shown in Figure 1. Please follow the steps below
carefully in order to accomplish this.
1. On your desktop, locate the shortcut to GNS3 App. Double click on this icon to
open
the application
2. The application will open and a Setup Wizard window pops up. When launching
GNS3
for the first time, it is very important to do this initial step. Later on, you only need to do this

Page 2 of 12

anytime you want to add/modify your GNS3 environment. Select Local and click Next

3. On the next screen, make sure the first check box is checked, and click Finish.
While setting up GNS3 for the first time, you need to import an image for the router. This only
need to be done once for every different router model.

4.

Select New Image button, and click Browse

5. Your IT 377 Pool will have network drive T: automatically mounted. Access the folder from the left
navigation, and open the Images folder. Select c3600-a3jk9s-mz.124-15.T14.image from the list of
files and click Open

Page 3 of 12

6. If asked to decompressing the image, select Yes. When asked whether you wish to copy the file to
the default images directory, choose Yes
7. Using the default settings by clicking Next, Next, Next, Next and Finish for the wizard windows
that follow. Do not change anything.
8. You will now see the new router you created. Click Apply and then OK

9. When prompted, give your current project a name and save it. By default, the project will be
created in D:\users\<<ulid>>\GNS3\Projects folder. (Replace <<ulid>> with your actual ulid)
10. Now the main application window appears. Click on the
icon (Circle with four arrows) in
the left vertical navigation. You will see the new router just created.
11. Drag and drop the router (c3600) from the routers tab to the blank middle section. Repeat this
step two more times. You should have three routes as shown in the figure below (we will convert
two routers to switches later):

Page 4 of 12

12. Now click on the


icon (Computer icon labelled as VPCS). Drag and drop 3 VPCS into the
middle area as shown in the figure below:

13. Right-click on R2, and select Change Symbol. Scroll to the top of the list of symbols and select
ethernet_switch and click OK

14. You can see that the symbol for R2 has changed. Now lets change the name from R2 to SW2.
Again, right-click on R2, select Change hostname, and type SW1 in the popup window and click OK

Page 5 of 12

15. Again, right-click on SW1, and select Configure. A new window SW1 Configuration pops up. Click
on Slots tab. Leave Slot0 as it is, and for Slot1 select NM-16ESW. Click Apply and then click OK

16. Repeat the above three steps (Steps 13, 14, and 15) for R2, i.e. change the symbol, change the
hostname as SW2, and modify slot1. Now you have successfully set up the router and two
switches.
17. Now that the devices are properly set up, the next step is to connect them together. Locate the
icon on the left vertical navigation. Click on it once and notice the icon change to
.
Make sure the red X symbol is shown before proceeding to the next step.
18. Click on R1 and select FastEthernet0/0. Without clicking anywhere else, move the cursor to SW1
and click on SW1. Select FastEthernet1/15 from the list of ports on SW1.

Page 6 of 12

19. Repeat the same process on SW2. Select FastEthernet0/1 on R1 and connect to FastEthernet1/15
on SW2.
20. In the same way, connect the hosts to the corresponding switches. The connection details are as
follows
Click on SW1, select FastEthernet1/0 and connect to PC1 (Host only has one port,
Ethernet0)
PC2 is connected to FastEthernet1/1 on SW1
PC3 is connected to FastEthernet1/0 on SW2
21. Click on Show/Hide Interface Labels icon
on the top horizontal navigation to view the
interface labels. Make sure they match the one in the network diagram provided.
22. Match your network topology to the one given below. Correct if you notice any changes. Make
sure the ports used are the same. The configuration commands will not work if they are different.

23. Locate the Add a note icon on the top navigation bar and click on it to add the various labels as
given in the figure below. You will need to add the IP addresses, VLANs, Trunks, and the gateway
Page 7 of 12

addresses for the various devices on the network. Once completed, again match your network
diagram to the one below.

24. Save the project by clicking on the Save Project


very important.

button on the top navigation bar. This is

25. Locate and click on the Start/Resume all devices icon


on the top navigation bar. You will
notice all the red dots turn green on your network. This means that all your devices are now
turned on and you are ready to configure them.

Page 8 of 12

5. Configuration Procedure
Now that you have set up your network, lets proceed to the next step of configuring each device.
Your mission is to successfully ping all the machines on the network. So make sure you follow the
commands carefully. Before starting, ensure that all dots on diagram are green in color.

5.1 Configure the Router


Double click on R1 and notice the console window open for R1. Type the below commands in
order.
a. Configure interface f0/0

R1#configure terminal
R1(config)#interface f0/0
R1(config-if)#no ip address
R1(config-if)#duplex auto
R1(config-if)#speed auto
R1(config-if)#no shutdown
b. Configure sub-interface f0/0.100

R1(config-if)#interface f0/0.100
R1(config-subif)#encapsulation dot1Q 100
R1(config-subif)#ip address 10.1.1.1 255.255.255.0
R1(config-subif)#no shutdown
c. Configure sub-interface f0/0.200

R1(config-subif)#interface f0/0.200
R1(config-subif)#encapsulation dot1Q 200
R1(config-subif)#ip address 192.168.1.1 255.255.255.0
R1(config-subif)#no shutdown
d. Configure interface f0/1

R1(config-subif)#interface f0/1
R1(config-if)#ip address 172.16.1.1 255.255.255.0
R1(config-if)#no shutdown

Page 9 of 12

e. Once configured, you may verify your configuration by using the following command

R1(config-if)#do show ip interface brief


f.

Save and build the configuration files by typing the following command

R1(config-if)#do write memory


5.2 Configure Switch SW1
Double click on SW1 and notice the console window open for SW1. Type the below commands in
order. Configuring Switch is the trickiest part of this assignment. So pay extra caution while
proceeding
a. Create the two VLANs

SW1#vlan database
SW1(vlan)#vlan 100
SW1(vlan)#vlan 200
SW1(vlan)#exit
b. Configure interface f0/0 (We are not using this interface on SW1)

SW1#configure terminal
SW1(config)#interface f0/0
SW1(config-if)#no ip address
SW1(config-if)#shutdown
SW1(config-if)#duplex auto
SW1(config-if)#speed auto
SW1(config-if)#exit
c. Configure interface f0/1 (We are not using this interface on SW1 as well)

SW1(config)#interface f0/1
SW1(config-if)#no ip address
SW1(config-if)#shutdown
SW1(config-if)#duplex auto
SW1(config-if)#speed auto

Page 10 of 12

d. Configure interface f1/0 this belongs to VLAN 100

SW1(config-if)#interface f1/0
SW1(config-if)#switchport access vlan 100
e. Similarly, configure interface f1/1 this belongs to VLAN 200

SW1(config-if)#interface f1/1
SW1(config-if)#switchport access vlan 200
f.

Configure interface f1/15 This is a trunk connection to the router R1

SW1(config-if)#interface f1/15
SW1(config-if)#switchport mode access
SW1(config-if)#interface f1/15
SW1(config-if)#switchport mode trunk
g. Once configured, you can view your VLAN setting by typing:

SW1(config-if)#do show vlan-switch


h. Save and build the configuration files by typing the following command

SW1(config-if)#do write memory


5.3 Configure Switch SW2
a. Configure interface f0/0 this interface is not used on SW2

SW2#configure terminal
SW2(config)#interface f0/0
SW2(config-if)#no ip address
SW2(config-if)#shutdown
SW2(config-if)#duplex auto
SW2(config-if)#speed auto

Page 11 of 12

b. Configure interface f0/1

SW2(config-if)# interface f0/1


SW2(config-if)#no ip address
SW2(config-if)#shutdown
SW2(config-if)#duplex auto
SW2(config-if)#speed auto
c. Save and build the configuration files by typing the following command

SW2(config-if)#do write memory


5.4 Configure the Host Machines
To configure each host machine, you will need the IP address of the host, the subnet mask, and
the Gateway IP address. Locate the information from the network topology diagram and repeat
the same process for all the hosts. Make sure the IP addresses and gateway addresses match the
corresponding machine.
To configure PC1:

PC1> ip 10.1.1.10 255.255.255.0 10.1.1.1


PC1> save
Repeat the same process on PC2 and PC3, but make sure to use the following IP addresses and
gateway addresses

PC2: ip 192.168.1.20 255.255.255.0 192.168.1.1


PC3: ip 172.16.1.30255.255.255.0 172.16.1.1
(Dont forget to save for each host.)

Ping Test
Now you have successfully configured all your devices. If all the devices are configured correctly,
try to ping PC1 to PC2 and PC3.

PC1> ping 192.168.1.20


PC1> ping 172.16.1.30
You should successfully receive packets for both these commands. If any one of them says Host
Unreachable, troubleshoot the problem and do the ping test again.

Page 12 of 12

Vous aimerez peut-être aussi