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).

Notes for me:

cisco / cisco

 

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
management network from the above interface summary: vlan1
(Note that 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:


6. Add interfaces to the vlan

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.