eth0/wlan0?
Just installed Slack 14.2 on a 10 year old laptop, I figured why not, I wanted a beater I could bring to work and not worry about.
I've got it configured how I want it and have most of the software I want installed. It's working well, well for what it is any way. While booting I noticed it hangs for a while waiting for eth0 to obtain a DHCP address. About 99% of the time I use wireless, so to get rid of the boot lag, I decided to set a static address, in /etc/rc.d/rc.inet1.conf for eth0. Now all ethernet traffic is sent to eth0 even though wlan0 shows as being connected, I can't even ping my access point. Is there a way to push everything to wlan0? Or... A) Disable eth0 completely. B) Live with the boot lag as eth0 waits for no DHCP address. Thanks in advance. |
eth0/wlan0?
Bypass all that and use networkmanager. it's installed by default
|
Quote:
Can you supply some details please? |
Choose something from below:
1. Make sure you not overlap network settings between eth0 and wlan0. 2. If wlan0 is static set GATEWAY to wlan0 gateway. 3. You can set DHCP_TIMEOUT[some_number] for eth0 interface to low number. 4. You can blacklist eth0 kernel module. 5. If you don't want eth0 just don't configure it. Set IFNAME[0] to wlan0. |
Quote:
Quote:
Quote:
Quote:
Thank you for the suggestions :-) |
I've always turned off my NIC in BIOS on my laptops, and never experienced what you're speaking of. maybe it is not so old as to not have a means to turn off your NIC via Bios, no detect , no look?
that's what I figure mine must be doing...(?) |
Quote:
|
If that's happening with the ethernet cable disconnected from the laptop while using wifi, that's bloody silly, isn't it.
How about, blacklist your kernel module for the ethernet NIC, and unblacklist it when you want to use it? There should be no boot delay then :-) |
If your computer is trying to get an address from the dhcp server during boot, it is likely because it is requested via /etc/rc.d/rc.inet1.conf.
If you go in there and change USE_DHCP[0]="yes" under eth0 to USE_DHCP[0]="", it won't hunt for an IP on boot anymore. |
Quote:
Quote:
Quote:
I tried your suggestion, it seems to work well enough, and will be easy enough to change later if needed. Thanks all |
Do you even need these /etc/rc.d/inet* thingies if you use NetworkManager anyway?
Did you opt for NetworkManager when you configured the network during install? That's what I do nowadays, and I no longer experience any of the issues that you describe. |
I replaced rc.inet1 with this:
Code:
#!/bin/sh |
Quote:
Step 1. Code:
# chmod -x /etc/rc.d/rc.netdevice Edit the eth0 section of /etc/rc.d/rc.inet1.conf so that it looks like this: Code:
# Config information for eth0: |
Quote:
|
Quote:
Quote:
Quote:
B) It would still be usable at home if I needed it. |
No, just giving an IP address is not aq good idea. Please just take a little time to read about IP.
|
Member Response
Hi,
When you are using networkmanager then the '/etc/rc.d/rc.inet1.conf' should be in the default state (original install state). Plus be sure to change '/etc/rc.d/rc.networkmanager' to executable state. For /etc/rc.d/rc.inet1.conf' option 'USE_DHCP[0]=""' instead of USE_DHCP[0]="no" the null will not set anything for the device[0]; Quote:
If you want to interchange Ethernet use then you can look at; Quote:
Have fun & enjoy Slackware! :hattip: |
Quote:
One of my Windows laptops has a static ethernet address and a dynamic wireless address, it works fine. This is the second laptop I've installed Slackware on, the first one had 13.37 and I don't recall having this issue, but that was several years ago. |
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
Thank you and thank all who pitched in. |
All times are GMT -5. The time now is 09:03 AM. |