[ale] How do you restart the network on Ubuntu

Damon L. Chesser damon at damtek.com
Tue Aug 30 15:36:41 EDT 2011


On Tue, 2011-08-30 at 10:58 -0400, Andrew Sledge wrote:
> The Ubuntu package sysvinit-utils provides the service command to
> control services.
> 
> $ sudo service network-interface restart INTERFACE=eth0

How are we to know the mapping from /etc/init.d/networking -> service
network-interface restart INTERFACE=eth0?

is there a "use this command for that command" doc lying around
somewhere?

I have from time to time tried "service networking restart" to only have
"no such command found" returned.


> 
> * ale-request at ale.org <ale-request at ale.org>:
> > Date: Tue, 30 Aug 2011 09:15:06 -0400
> > From: David Lemcoe <forum at lemcoe.com>
> > Subject: Re: [ale] How do you restart the network on Ubuntu
> > To: Atlanta Linux Enthusiasts <ale at ale.org>
> > Message-ID:
> > 	<CAHGYUtizXH81vMi7_xDFugW7HL6wC9ckD5mvS6zRU=VpgDUgRA at mail.gmail.com>
> > Content-Type: text/plain; charset="iso-8859-1"
> > 
> > If you're looking to restart an interface, I know "ifdown <interface>"
> > followed by "ifup <interface>" will do that.
> > 
> > However I think it's "sudo /etc/init.d/networking restart" to restart the
> > whole thing.
> > 
> > Hope this helps,
> > 
> > David
> > 
> 
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo

-- 
Damon
damon at damtek.com



More information about the Ale mailing list