On Sun, 4 Jan 2004, James Miller wrote:
> On Sun, 4 Jan 2004 [EMAIL PROTECTED] wrote: > > > my slack 9.0 has the following lines in /etc/rc.d/rc.inet1 for > > bringing up dhcp > > > > if [ ! "$DHCP_HOSTNAME" = "" ]; then > > DHCP_HOSTNAME="-h $DHCP_HOSTNAME" > > fi > > /sbin/dhcpcd -t 10 ${DHCP_HOSTNAME} -d eth0 > > > > where DHCP_HOSTNAME is the host name of the DHCP server > > > > Hope it helps a bit :-) > > > Well, not a whole lot. If I were using Slack, I would just do > /etc/rc.d/rc.inet1 stop and /etc/rc.d/rc.inet1 start. I guess I'm trying > to find out what is the equivalent on Debian. I'll root through the /etc > directory some more and see if I can figure out anything. > Ok. Taking Jacob's suggestion, I rooted arund in /etc/init.d and found a file caled "networking." Looking over its contents, I decided the relevant commands for stopping/starting networking on this Debian host are "ifdown -a" and "ifup -a", respectively. Just tried it and it seems to work. Have I stumbled onto the defnitive solution to my short term problem?
One that will serve, at least. Even simpler would be to run (as root, of course)
/etc/init.d/networking stop /etc/init.d/networking start
BTW, if you take networking down and later restart it, getting the same DHCP lease would not be all that amazing ... especially if the DHCP server assigns long lease lives (the lease itself may still be good, and both your host and the dhcp server would remember that).
- To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs