how to stop automatically bringing up a network interface at boot
Hi!
So far when I boot Slackware(-current) it brings up all my network devices. Can I configure it somehow to not bring up any network interface at boot, so I can manually enable them (be it wireless or wired)? |
This is controlled by /etc/rc.d/rc.inet1.conf.
|
Have a look at Alien Bob's wiki page for setting up your network.
|
chmod -x /etc/rc.d/rc.inet1
But then you would either need to chmod +x to start it manually, or use wicd for example. |
Quote:
|
Yes you are right. I typed in haste.
|
Can he just turn it off on rc.local, like adding /etc/rc.d/rc.inet1 eth0_stop? Same for dhcpd and IP? I think he'll need loopback (127.0.0.1) locally, but it's not mandatory. My newbiness keeps bugging me with direct messing with rc.inet1, as for most time I just edited rc.inet1.conf...
|
Quote:
Be sure to read README.SLACKWARE so you set it up properly. Once wicd is running, you can tell it to automatically connect, or not to do so. |
Quote:
|
Perhaps I'm missing something, but can't one just edit /etc/rc.d/rc.inet1.conf and set IPADDR, NETMASK and USE_DHCP to "" for each network interface?
I believe that will activate loopback and nothing else. Then one could use WICD or the like to manage the interfaces. My $0.02 |
Welcome to LQ!
You are exactly correct. |
no luck for me
Quote:
|
What doesn't work?
What happens and what did you want to happen? Edit /etc/rc.d/rc.inet1.conf is the right way because you still need the loopback device. |
Quote:
Note that you do not need IFNAME set for eth0 - just setup the IPADDR[0] stanza as the [0] implies eth0. Perhaps you mean the devices themselves being detected - this is not what's usually termed "coming up". This is a setting on the device when it is put into an active state via /sbin/ifconfig (or other means). This is indicated when you run /sbin/ifconfig -a by an "UP" flag against the device. Please - if you haven't already - check out Alien Bob's page on this subject and all will be revealed. |
more detailed description of problem
/etc/rc.d/rc.inet1.conf:
[...] IFNAME[4]="wlan0" IPADDR[4]="" NETMASK[4]="" USE_DHCP[4]="" DHCP_HOSTNAME[4]="" [...] Despite of this, on every boot, the wlan0 device will come up, which means: $ ifconfig wlan0 wlan0 Link encap:Ethernet UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) How can I stop this behavior, and keep the wlan interface down? (I'm not using wicd) |
All times are GMT -5. The time now is 08:31 AM. |