In this chapter we will set up TCP/IP networking on the integrated ethernet adapter
The 7248-133 is equipped with an internal AMD PCnet 32 PCI ethernet adapter. There is support for this adapter in the Linux kernel source, and if you installed from my bootimage, you should have support for it in your kernel already. Otherwise, you can compile a new kernel. The bootimage described in Section 5 has support for the adapter too.
The configuration files to set up TCP/IP-networking over ethernet on this box is the same manual configuration as on any other RedHat-like Linux box elsewhere, but here, we do it manually, without any tools other than your favourite text editor. This only covers basic installation, and NO EXTRA SECURITY AT ALL. There are plenty of other, and much better sources about this topic than I can put up here. The files to edit are found in the /etc directory and its subdirectories. To edit the files, you should be logged in as root.
To set the IP address and netmask, make a file
/etc/sysconfig/network-scripts/ifcfg-eth0 |
DEVICE="eth0" ONBOOT="yes" IPADDR="111.122.133.144" NETMASK="255.255.255.0" |
To set the hostname and gateway, edit the file
/etc/sysconfig/network |
NETWORKING=yes FORWARD_IPV4="yes" HOSTNAME=myhost.mydomain GATEWAY="122.133.144.155" |
To specify a nameserver, edit the file
/etc/resolv.conf |
search mydomain nameserver 133.144.155.166 |
Finally, edit the the file
/etc/hosts |
127.0.0.1 localhost localhost.localdomain 111.122.133.144 myhost.mydomain myhost loghost |
This should be everything you need to get started. Now restart networking with the command
/etc/rc.d/init.d/network restart |
And you should be all up. Note that there is a bug somewhere that makes the netcard freeze the whole system when shutting down eth0. According to Martin Espenschied, this is a known issue, and can be fixed. When I know how, I'll put the information here. Till then, remember to sync your system before shutting down, and you should not miss any information. Remember my disclaimer in Section 1.2 though.
An ugly hack to resolve this might just be to NOT to shut down eth0 at shutdown/reboot. This can be done by editing the file /etc/rc.d/init.d/network, and in the stop) case, just comment away the ifdown command, and add a phoney command, like this:
action "Shutting down interface $i" echo does_nothing # ./ifdown $i boot |