Dear List,
I connect and disconnect to the internet using etc/init.d/networking start|stop. When I switch on my PC, DHCP automatically gets connected at startup. How can I avoid this?
I am using Debian Sarge.
Regards, Aparna
On 7/17/06, Aparna Appaiah aparna.appaiah@gmail.com wrote:
Dear List,
I connect and disconnect to the internet using etc/init.d/networking start|stop. When I switch on my PC, DHCP automatically gets connected at startup. How can I avoid this?
hope this helps http://www.faqs.org/docs/securing/chap9sec90.html
DEVICE=eth0 IPADDR=208.164.186.1 NETMASK=255.255.255.0 NETWORK=208.164.186.0 BROADCAST=208.164.186.255 ONBOOT=yes BOOTPROTO=none USERCTL=no
set ONBOOT=no
Regards Harsh
I am using Debian Sarge.
Regards, Aparna
-- Aparna Appaiah
On Mon, Jul 17, 2006 at 05:35:46PM +0530, Harsh Busa wrote:
hope this helps http://www.faqs.org/docs/securing/chap9sec90.html
Actually, I had to use the "pre-up" option in my /etc/network/interfaces file.
The entry in my interfaces file is:
auto eth0 iface eth0 inet dhcp pre-up [ -f /etc/network/local-network-ok ]
And, I use this script to get online:
#!/bin/sh touch /etc/network/local-network-ok /etc/init.d/networking start rm /etc/network/local-network-ok
This seems to work.
Regards, Aparna.
On Monday 17 July 2006 17:01, Aparna Appaiah wrote:
Dear List,
I connect and disconnect to the internet using etc/init.d/networking start|stop. When I switch on my PC, DHCP automatically gets connected at startup. How can I avoid this?
I am using Debian Sarge.
well, there are two things you can actually do. One is disable the initialization of the interface at startup ( see Harsh Busa's email ). The second is to disable networking completely. For this, use update-rc.d utility. See the man page for more info.
On Mon, Jul 17, 2006 at 11:14:44PM +0530, Dinesh Joshi wrote:
The second is to disable networking completely. For this, use update-rc.d utility. See the man page for more info.
Just curious to know, what do the ifup and ifdown commands do? Can they be used?
Regards,
Rony.
___________________________________________________________ The all-new Yahoo! Mail goes wherever you go - free your email address from your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html
On 7/19/06, Rony ronbillypop@yahoo.co.uk wrote:
Just curious to know, what do the ifup and ifdown commands do? Can they be used?
ifdown brings down the interface temporarily. The interface would still go up on next reboot or restart of the network services. ifup does the opposite..brings up an interface if its not already up at boot time.
Regards, NMK.
On Wednesday 19 July 2006 12:30 am, Nadeem M. Khan wrote:
On 7/19/06, Rony ronbillypop@yahoo.co.uk wrote:
Just curious to know, what do the ifup and ifdown commands do? Can they be used?
ifdown brings down the interface temporarily. The interface would still go up on next reboot or restart of the network services. ifup does the opposite..brings up an interface if its not already up at boot time.
In a debian distro they also execute all scripts in the /etc/network/if-up.d/ and /etc/network/if-down.d/ directories. so you could add scripts in there to automatically do things on ifup / down. Ther is also if-post-down.d / if-pre-up.d directories which do the same after the inerface is up / down. Similarly for ppp.