-   Slackware (
-   -   Slackware and wired+wireless network mix (

FeyFre 04-18-2012 11:14 AM

Slackware and wired+wireless network mix

Have an slackware box. It has wireless adapter and wired ethernet controller.


# All other entries are empty

# And entry for wireless
WLAN_RATE[4]="54M auto"

Both wired and wire connections are work. But there is one but.
Wireless and wired are in different networks. When wired network is present all works perfectly since GATEWAY is set correctly. But when wired is absent and wireless is present - network is broken! Because routeing tables are hardcoded by GATEWAY="" even when wireless AP provided its own gateway.
(Actually it is general case: two wired connections, one static setup, other DHCP, and absence of static connection make network unusable).
So question: how teach slackware to respect DHCP retrieved settings in such cases?
I cannot modify /etc/rc.d/rc.inet1.conf every other time or modify routing table manually.

prpcl 04-18-2012 11:48 AM

Wicd maybe it's a solution, I had same problem and it works for me. The package is in "extra" folder of your Disc Installer.

FeyFre 04-18-2012 11:56 AM

Sorry, I should to mention it explicitly: I will never use wicd, networkmanager and other software which does not respects Slackware.
However I have explicitly stated "how teach slackware to respect" and not "how teach my linxu box to respect". So I expecting slackware specific advices.

Richard Cranium 04-19-2012 06:08 AM

The Slackware specific advice is to use wicd.

/etc/rc.d/rc.inet1.conf should be seen as a way to configure connections that will always be there. If you have connections that come and go, you need something else to handle that.

ChrisAbela 04-19-2012 09:38 AM

# route del -net netmask dev eth0
# route add default gw <new_GW_IP> wlan0

I use wicd. We have a steady love-hate relationship but I think that it is better than network manager.

FeyFre 04-19-2012 10:06 AM

ChrisAbela, I know how to do it manually, and I am NOT interested to do it manually.

ChrisAbela 04-19-2012 10:37 AM

Are you using dhcpcd or dhclient?
Hint: Try both

jovanoti 04-19-2012 10:47 AM

If you want this to be done automatically you need some kind of daemon application which monitors connection states and executes proper actions. There is no such app in Slackware, except wicd and NetworkManager. Therefore you should execute this action manually after the state of wired connections changes - you should change the default GW. You can also create bash script which constantly checks the state of connections and changes the gateways, or create CRON job which runs on every 1-2 minutes doing the same as the bash script.

ChrisAbela 04-19-2012 11:07 AM

/etc/rc.d/rc.inet1 is using dhcpcd. You may try replacing it with dhclient.

All times are GMT -5. The time now is 09:40 AM.