On my system (debian slink), I had to make a startup script to make DHCP
use the router as a default route. My dhcpcd is:
]iota:~# dhcpcd -v
]dhcpcd 0.70-karn
My startup script is:
]#!/bin/sh
]
]# Delay to allow resolv.conf to finish
]sleep 1
]
]# Fix my hostname
]hostname -F /etc/hostname
]
]# Fill in the resolv.conf
]rm -f /etc/resolv.conf
]cp /etc/resolv.conf.correct /etc/resolv.conf
]grep nameserver /etc/dhcpc/resolv.conf >> /etc/resolv.conf
]
]# Correct my hosts file
]cp /etc/hosts.correct /etc/hosts
]echo $IPADDR iota.ml.org iota >> /etc/hosts
]
]# Setup my router
]route add default gw $ROUTER
The whole hostname mess you probably don't need. The last line is probably
what cocerns you. Incidently, if you know how to tell the DHCP server a
hostname so it doesn't change it, I'd love to know. (-h doesn't work)
My dhcpcd is invoked with:
]dhcpcd -c <above script> eth0
If you run debian you'll have to change your /etc/init.d/dhcpcd to do
this.
--- Primary e-mail:
, alternate: terpstra@unixg.ubc.ca Residence: 204 Cariboo, Place Vanier, UBC, Canada Company page: www.singularity.home.ml.org, personal: www.iota.ml.org