[plug] default gateway on dhcp client

John Breen locutus at borg.apana.org.au
Mon Mar 4 10:24:38 WST 2002


i have a dhcp server and a dhcp client on my network.  the client gets
its address and all fine, but i find i have to manually add a default
gateway after it's done that.  anyone know how to make the dhcp client
add a default gateway?

the dhcp server config has somewhere in it

option routers 192.168.0.1

and the client adds this route ok.  what it doesn't do is add a gateway,
so i have to enter

route add default gw 192.168.0.1

after startup.  this is annoying, but atm the only thing i can see to
try is to put the command in the /etc/init.d/networking script. (i'm
running debian, so that's where it is)

anyone got any other ideas?

cheers,

john breen






More information about the plug mailing list