Quoting Hooton, Gerard (G.Hooton at ucc.ie):
> What must be done to make this work after a reboot?
Depends, in say debian, a fair place would be,
/etc/init.d/networking
at the end of the file put
echo 'starting custom networking'
ifconfig eth0 192.168.1.5 255.255.255.0
echo 'starting custom routing'
route add -net 0.0.0.0 gw 192.168.1.1
for example. Also the resolv.conf won't change,
if want dhcp on startup, just put
echo 'starting dhcp client'
dhclient
Mind you, there are generally better ways
to do this than what I described above,
but most are distro dependent, what's in this
email should work on any (mind you, won't come up in
their GUI config tools etc).
David.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!