s i s t e m a o p e r a c i o n a l m a g n u x l i n u x | ~/ · documentação · suporte · sobre |
9. Set up networkingIn this chapter we will set up TCP/IP networking on the integrated ethernet adapter 9.1. Support for the integrated ethernet adapterThe 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. 9.2. Configuration filesThe 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. 9.3. Set IP address and netmaskTo set the IP address and netmask, make a file
9.4. Set hostname and gatewayTo set the hostname and gateway, edit the file
9.5. Nameserver specificationTo specify a nameserver, edit the file
9.6. The hosts fileFinally, edit the the file
9.7. Restart the networkThis should be everything you need to get started. Now restart networking with the command
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:
|