Re: starting and stopping networking

James Miller
2004-01-04T21:41:04Z

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?

Thanks, James