Re: change IP and default route.
In message <2WV0i-4Rpemail@example.com>, Dr. David Kirkby
The file you need is /etc/network/interfaces. It's fairly
self-explanatory, or man interfaces for the whole story..
I installed a system on a company network with a fixed IP
(220.127.116.11), but recently bought a small router. The PC will now
have to use the router as the default route, and I will make the IP
The following commands do what I want
# ifconfig eth0 192.168.123.1 netname 255.255.255.0 # set my IP to
# route add default gw 192.168.123.254
But how do I set this to happen automatically? I changed the IP in
/etc/hosts, and had an attempt at changing /etc/gateways, but clearly
not successfully, as the routing does work after a reboot - I need to
type these commands again.