From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ray Olszewski Subject: Re: starting and stopping networking Date: Sun, 04 Jan 2004 14:24:25 -0800 Sender: linux-newbie-owner@vger.kernel.org Message-ID: <5.1.0.14.1.20040104141940.01ed77d8@celine> References: <5.1.0.14.1.20040101154809.02021888@celine> Mime-Version: 1.0 Return-path: In-Reply-To: References: <5.1.0.14.1.20040101154809.02021888@celine> List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" Content-Transfer-Encoding: 7bit To: linux-newbie@vger.kernel.org At 03:41 PM 1/4/2004 -0600, James Miller wrote: >On Sun, 4 Jan 2004, James Miller wrote: > > > On Sun, 4 Jan 2004 caszonyi@rdslink.ro 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 majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs