Académique Documents
Professionnel Documents
Culture Documents
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).
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
Connecting to VDI
1.
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.
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
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.
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.
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
Save and build the configuration files by typing the following command
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
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.
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:
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
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.
Page 12 of 12