M a r k   C r o s b i e

You are in: Linux network configuration  Home  Resume  Linux  LEGO  Electronics  Movies  Mac OS X 


Details
Basic Install Kernel Network Power Management Dual Booting X Configuration Dock/Undock
Contact Mark at mark@mastincrosbie.com

Linux network configuration

The built-in Ethernet card is not supported in the 2.2.15 kernel, however support is present in the 2.2.17 and onwards kernels. A driver is available. Refer to Fred Maciel's page for more details.

The Mandrake 8.0 installation kernel 2.4.3 has support for the 3c59x network card by default.

Supporting multiple IP addresses

The whole point of a laptop is to be portable. But most computers have only one network address assigned to them, so how can they move around and plug into different networks? While it is true that at any one time a computer can only have one IP address, that address can change at any point!

My home network configuration is configured using a DHCP server from my Linksys firewall. I use two simple shell scripts to jump between the home configuration and my work configuration. The first script sets the configuration for in work:
#!/bin/csh
# Switch to a config for docked at HP
#

/etc/init.d/postfix stop
/etc/init.d/network stop

cp /etc/X11/XF86Config.docked /etc/X11/XF86Config
cp /etc/sysconfig/network.hp /etc/sysconfig/network
cp /etc/sysconfig/network-scripts/hp /etc/sysconfig/network-scripts/ifcfg-eth0
cp /etc/resolv.conf.hp /etc/resolv.conf
cp /etc/postfix/main.cf.hp /etc/postfix/main.cf

/etc/init.d/network start
/etc/init.d/postfix start
and this script sets the configuration for home:
#!/bin/csh
# Switch to a config for Home
#

/etc/init.d/postfix stop
/etc/init.d/network stop

cp /etc/X11/XF86Config.laptop /etc/X11/XF86Config
cp /etc/sysconfig/network.athome /etc/sysconfig/network
cp /etc/sysconfig/network-scripts/athome /etc/sysconfig/network-scripts/ifcfg-eth0
cp /etc/resolv.conf.athome /etc/resolv.conf
cp /etc/postfix/main.cf.athome /etc/postfix/main.cf

/etc/init.d/network start
/etc/init.d/postfix start



© 2002-2004 Mark Crosbie   shareright © 2002 Phlash