1 Software installation of the PCs
1.1 Installing Fedora Core 5
- Mark the PC you're installing as either PC1, PC2, PC3 or PC4
(use a post-it, sheet of paper, etc.). To ensure that we don't end
up with odd numbers of PCs, please make the PCs in sets of four.
- Boot the PC from the installation CDs; insert CD1, then
either use F12 to activate the boot manager (if present), or
change the boot order in the BIOS;
- Select text installation type
Note: the FC5 installer may or may not recognize your USB
keyboard (especially if through the KVM). If you have problems,
insert a PS2 keyboard.
- Skip the media check;
- Type OK;
English as the language;
Choose a US keyboard;
Remove all partitions and create the default
layout and confirm that you're sure;
- Review and modify the partition layout:
- For the NICs deselect "Use DHCP" for both of them, then for
eth0 use "Activate on boot", for eth1 do not activate on boot. For
address use 10.0.1.1n for eth0 and 10.0.2.1n for eth1
where n is the number of the PC (e.g., PC2 has 10.0.1.12 for
eth0). Netmask is 255.255.255.0 for all interfaces, all PCs.
- Delete the default gateway (don't put anything for DNS either).
- Manually enter PCn as the Hostname.
- Choose America/New York as timezone
- Use rootme for root password.
- For package selection, choose all four options (including
"Customize software selection" and press OK.
- Select all packages except for:
- Java Development
- KDE Software Development
- Postgress SQL Database
- Press OK;
- Change the CDs as prompted, at the end press Enter and reboot.
1.2 Installation of additional packages
- Login as root and start X Windows:
- Add a terminal to the panel: go to Gnome Toolbar> Applications > Accessories > right click terminal and select "Add to panel".
- Plug into the Linksys box on eth0 (normally the 3com card that comes with the computer) and request an IP address:
- Test Internet connectivity:
ping www.yahoo.com. Debug if it doesn't work.
- Install additional packages:
yum install xinetd emacs ncftp ckermit ttcp tftp telnet-server tftp-server ethereal-gnome net-snmp net-snmp-utils
- Get the extra packages:
For your convenience, also
linked here if you read
this on the lab PCs.
- Extract the packages:
tar xzvf internetLabFiles.tgz
- Install the new packages:
Confirm that you want to proceed and do not reboot at the end.
- Install the configuration files:
Choose the correct PC number n and this time do
reboot at the end.
1.3 Additional Configuration
- Fix the eth0/eth1 problem: by default, when Linux boots, one of
the two Ethernet interfaces will become eth0 and one will become
eth1. Unfortunately, the choice is mostly random. The goal of this
step is to fix this problem. Begin by typing:
The MAC address of one of the two interfaces will be starting with
"00:0E:0C". This corresponds to the "Intel Pro" interface that is
installed as an external card on a PCI interface (says "Intel Pro"
on it). The goal is to configure this interface such that this ends
up being eth1.
To force the configuration you need to edit the following two files:
For eth0: /etc/sysconfig/network-scripts/ifcfg-eth0
For eth1: /etc/sysconfig/network-scripts/ifcfg-eth1
You will have to assign the hardware address and name in this file
like this: HWADRR = .
With this assigned the MAC address will always be tied to that
interface. Occasionally eth1 may be called dev####, this can easily
be fixed by editing the file "/etc/mactab" and assigning
eth0 and eth1 that appropriate mac addresses. This way
if nameif is called the interfaces will be named as desired.
- Fix the vsftpd configuration:
- To allow vsftpd to start do rm /etc/xinetd.d/vsftpd
- To allow root to use ftp, edit
remove the line saying "root".
- Start: system-config-securitylevel (or go to Gnome
Toolbar> System> Administration> Security Level and Firewall) and
disable both the firewall (on the first tab) and SELinux (secure Linux
on the second tab).
- Disable the Firewall: system-config-services or go to
Gnome Toolbar> System > Administration > Server Settings > Services
select vsftp, press the start button
check the checkbox next to vsftp
- Enable the FTP server:
- Check that eth1 comes up: ifconfig eth1 up. If it
After the pods are assembled all equipment must pass some basic tests:
2.1 PC Tests
- Reboot, login as root, start X Windows.
- Plug both interfaces of all PCs in the same hub. In a terminal
of PC1 type:
ping -b 10.0.1.255
There should be 4 replies (3
DUP!). Then ping -b 10.0.2.255. See if any are missing and debug.
- In a terminal type iptables. It should return no more
than two lines for each of the three chains, on the first line the
policy is "ACCEPT" for each chain.
- Telnet server: telnet from another PC (once connected to the hub):
and login as root.
- FTP server: ftp from another PC (once connected to the hub):
and login as root.
2.2 Hub Tests
Connect the four eth0 of the PCs in the first four slots of the
hub. On PC1 type:
ping -b 10.0.0.255.
You should get four replies for each request. If not, mark the
ports that do not work and make sure that at least four ports work on
2.3 Router Tests
Make sure that the router boots. Connect to it via kermit:
[/root]C-kermit> set line /dev/ttyS0 (or /dev/ttyS1)
[/root]C-kermit> set carrier-watch off
Type "Enter" once; once it boots it will ask you if you want to
go through the initial setup. Say no. Then check that the two Ethernet
Router# configure terminal
Router(config)# no ip routing
Router(config)# ip routing
Router(config)# interface Ethernet0
Router(config-if)# no shutdown
Router(config-if)# ip address 10.0.1.1n 255.255.255.0
Router(config-if)# interface Ethernet1
Router(config-if)# no shutdown
Router(config-if)# ip address 10.0.1.2n 255.255.255.0
where n is the router number. Connect the two
ethernet interfaces to a hub and try to ping them from the PC with a
proper ip address (i.e., 10.0.1.x). If it does not work, report.
Check that the IOS version is greater than 12.1. If I recall
exactly, like this:
Router(config)# show version