CSE3INW Internetworking - Lab 1
Bring a blank (or mostly empty) USB memory thing!
This first laboratory exercise is to familiarise you with the Cisco router's "command line interface". Each lab group will have one Cisco router and one Linux workstation to play with. The routers don't do anything sensible at the moment.
You will be using a "home made" terminal emulation program called microcom to communicate with the router through a 9600 baud serial line connected to the serial port, known as /dev/ttyS0.
microcom allows you to type commands to the router, to capture router output to a file and to load a text configuration file into the router.
- Log in to the Linux workstation as root. The password is internet. Do not get into any mischief!
- Create a directory called inw, if it doesn't already exist. Change into this directory.
- Create a directory for your group's work. Change into this directory.
- Start microcom. It should be in /usr/local/bin so just type microcom - complain if it does not work!
- Log in to the router (hit enter once or twice to get the current "prompt"). The password is inw (we hope ;-).
- Investigate microcom's file capture "feature". To access this, hold down the shift key and press the tilde key (~). You should see a menu. Select log to a file or something similar.
- Capture a copy of the router's running configuration. You will need to be in privileged mode to do this. Follow the map from the lecture notes!
- See what routes the router currently knows about. Do these routes make sense? Capture a copy of the current routing table.
- Run
show arpand inspect the contents of the ARP cache. The entires should correspond to other routers that it knows about. - See if you can change the IP address of the Ethernet 0/0 interface to
1.2.3.4with a subnet mask of255.0.0.0. Prove this by copying the running configuration again. - Add a static route to the network
10.1.1.0/24via the next hop router1.2.3.5. - Check the router's routing table again and ensure that your static route appears as expected.
- Issue the appropriate commands so that the current (running) configuration will be used next time the router is restarted (reloaded). You can restart the router to test that this has worked by giving the reload command.
- Investigate some of the other commands that are available within IOS - banging on the ? key should help :)
- Exit microcom (via same menu as before).
- Use the linux mtools to copy your captured files to a
floppy disk:
mcopy linux_file_name a:PC_file_name
Maybe, print a copy for later reference.
Alternatively, use the Unix/Linux cp command to copy your files to your USB "memory thing". Or you can use the graphical drag & drop thing.