[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Restarting network



On Tue, Jul 06, 2010 at 11:45:24PM -0000, Cameron Hutchison wrote:
> Johann Spies <jspies@sun.ac.za> writes:
> 
> 
> One way is to stop using the long-deprecated interface aliases and
> instead add secondary addresses to the single interface:
> 
> iface eth0 inet dhcp
> 	up   ip addr add W.X.Y.Z/N dev $IFACE
> 	down ip addr del W.X.Y.Z/N dev $IFACE

I have the following in my /etc/network/interfaces at the moment:

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
	address 146.232.129.30
	netmask 255.255.254.0
	gateway 146.232.128.16
	dns-domain sun.ac.za
	dns-nameservers 146.232.20.10 146.232.20.11 146.232.128.10
	metric 0
        up   ip addr add 146.232.129.151/32 dev $IFACE
        down ip addr del 146.232.129.151/32 dev $IFACE


And I cannot stop my network. The following does not work:

/etc/init.d/networking stop
service networking stop
/etc/init.d/ifplugd stop
service ifplugd stop

sudo ip addr del 146.232.129.151/32 dev eth0:0
sudo ip addr del 146.232.129.151/32 dev $IFACE

Only with the following command can I stop the network:

sudo ifconfig down

Previously everything was easy: just 
'/etc/init.d/networking stop/start/reload' 


Regards
Johann
-- 
Johann Spies          Telefoon: 021-808 4599
Informasietegnologie, Universiteit van Stellenbosch

     "Trust in the LORD with all thine heart; and lean not
      unto thine own understanding."
                                        Proverbs 3:5


Reply to: