Setup Networking At this point, you just installed your os but it does nothing. You can't telnet to it or anything else. The problem is that you need to download some source code for the kernel and other things to make this a functional machine. Thus you need to get at least one of your network interfaces working. If you haven't already, move this machine into it's final resting spot. Plug in the ethernet cables for the internal and external network. In my many tests of this documentation, the nic in the lowest numbered slot turns out to be eth1 and the higher numbered slot is eth0. In my machines, the lowest numbered slot is the one closer to the power connector. |
Now your machine is in place, on, and you are logged in as root. Change into the /etc/sysconfig directory. cd /etc/sysconfig |
Alter /etc/sysconfig/network to look like: NETWORKING=yes FORWARD_IPV4=true HOSTNAME=gateway.yourdomain.com DOMAINNAME=yourdomain.com GATEWAY=24.3.100.1 GATEWAYDEV=eth0 |
Then cd into /etc/sysconfig/network-scripts and move the file ifcfg- to ifcfg-eth0. Like... cd /etc/sysconfig/network-scripts mv /etc/sysconfig/network-scripts/ifcfg- /etc/sysconfig/network-scripts/ifcfg-eth0 |
Alter /etc/sysconfig/network-scripts/ifcfg-eth0 to look like: DEVICE=eth0 IPADDR=24.3.100.100 NETMASK=255.255.255.0 NETWORK=24.3.100.0 BROADCAST=24.3.100.255 ONBOOT=yes |
Then copy the file ifcfg-eth0 to ifcfg-eth1. Like... cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth1 |
Alter /etc/sysconfig/network-scripts/ifcfg-eth1 to look like: DEVICE=eth1 IPADDR=192.168.1.1 NETMASK=255.255.255.0 NETWORK=192.168.1.0 BROADCAST=192.168.1.255 ONBOOT=yes |
Load The Kernel Module Now you need to load the kernel module for you network cards. Using my example of maxtech nx32-pci cards, I typed the following command. /sbin/modprobe ne2k-pci The kernel should respond with some information about the cards that it finds. Then type... ifup eth0 ifup eth1 And finally... /sbin/ifconfig to verify that both interfaces are configured. Then you should ping some machine on both networks just to make sure things work. If you reboot for some reason, you will have to repeat the "Load The Kernel Module" step. |
This page was last updated on 12/12/1999.
|