Purpose:
In this lab, we'll learn how to configure a Cisco Catalyst router to do layer-2 vlan switching between multiple Ethernet interfaces.
Procedure:
You will work together in groups of 3.
0. Boot your 3 machines into Linux. Note *carefully* which ethernet interfaces on the machines are up and running. (!!!) After you note this for yourself, unplug 2 of the machines from all networks.
1. Get a Cisco Catalyst router and light blue serial cable from your benevolent professor. Connect the router to a USB port on the one machine still connected to the green network. Do not plug the router in yet.
2. Download and install putty
on the same machine. (Use apt-get
. If you don't remember how to do this, look back at a previous lab to see how.)
*** Q1: What is the command to get putty
onto your computer? ***
3. Configure putty to be able to communicate with the router over the USB port (/dev/ttyUSB0
).
sudo putty
Serial
for the Connection Type:/dev/ttyUSB0
Session
. Click on Default Settings.
Click Save
.Open
.Notes for me:
cisco / cisco
show system mode
shows switch or router. Can be set with set system mode
show spanning-tree
shows the status of STP.show interfaces status
to see interfaces.show mac address-table
to see layer 2 forwarding table.
4. Now, plug the router in. Wait a while. You will see the router boot (slowly). You'll see the file system being tested, the OS loading, and the hardware components being tested. Eventually, it will ask you these questions. (Your answer are in bold
below.)
Would you like to enter the initial configuration dialog? [yes/no]
yes
Would you like to enter basic management setup? [yes/no] yes
Enter host name [Switch]: <any hostname here is fine. I used is333-1.>
Enter enable secret: bluestone
Enter enable password: hi
Enter virtual terminal password: bluestone
Configure SNMP Network Mangement? [no] no
<Press space when you see --More--.>
Enter interface name used to connect to the
(Note that
management network from the above interface summary: vlan1
vlan1
is in the list, but scrolled off the top.)
Configure IP on this interface [yes]: yes
IP address for this interface: 10.0.0.1
Subnet mask for this interface [255.0.0.0]: <enter>
Would you like to enable as a cluster command switch? [yes/no]: no
<Menu about saving your configuration>
Enter your selection [2]
: 2
<Enter>
is333-1>
(You will see your switch name here, if you didn't use is333-1
like I did.)
At this point, we have configured the basic passwords on the router, and created a VLAN (vlan1
) with an IP address, for use in managing the router. We are now in "non-enabled" mode, which means we can see some basic stuff, but cannot make changes.
*** Q2: Use show version
to see the version of software running on the router. Record it in your lab report. ***
5. Creating a (2nd) vlan for switching traffic
vlan1
was created for managing the router. Now, we need to create a second vlan for use in switching traffic between hosts.
All commands for changing the configuration of the router require you to be in "enable" mode. To enter this mode, type
is333-1> enable
Password: bluestone
is333-1#
Type ?
to see the options for commands. You can use ? within a command also to see available parameters to a command.
NOTE: most of the following does not work.
To add interfaces to a vlan we have to create the vlan first:
is333-1# conf t
(set the router to receive configuration commands from the terminal)is333-1(config)# vlan ?
<You see about 3 ways to complete the vlan
command. The first one creates a vlan.>is333-1(config)# vlan database
(we are creating a vlan with number 10)is333-1(config-vlan)# name <
put a name here. I chose red
.>
end
(to get out of configuring the vlan mode)show vlan
*** Q3:
Record the line(s) you see regarding the vlan you just created. ***
6. Add interfaces to the vlan
fa<tab>
. is333-1(config-if)# interface fastEthernet 0/1
is333-1(config-if)# switchport access vlan 10
(this makes FastEthernet port 0/1 a part of vlan 10 switching.)is333-1(config-if)# end
(commit the changes)is333-1# show vlan
***
Q5: What does this command show now? ***Now, using ethernet cables connect your other 2 machines to the ports that you added to vlan 10. Then, create IP addresses on those interfaces (e.g., 15.0.0.1/24 and 15.0.0.2/24), and see if you can ping between the hosts. (You might find it very useful to refer here to see how to turn off the NetworkManager and how to set IP addresses.)
HERE, perhaps, repeat with web interface.
7. Extra credit.
Set up two other hosts to use the same switch, but be on a different VLAN.
*** Q6: List the steps to do that. ***
8. Another Extra Credit
Now, set up the switch to do routing between the two VLANs.
*** Q7: List the steps to do it. ***
9. Clean up and submit your answers via moodle.