Slackware and wired+wireless network mix
Hi
Have an slackware box. It has wireless adapter and wired ethernet controller. /etc/rc.d/rc.inet1.conf Code:
IP_ADDR[0]="192.168.8.2" 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="192.168.8.1" 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. |
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.
|
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. |
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. |
# route del -net 192.168.8.1 netmask 255.255.255.0 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. |
ChrisAbela, I know how to do it manually, and I am NOT interested to do it manually.
|
Are you using dhcpcd or dhclient?
Hint: Try both |
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.
|
/etc/rc.d/rc.inet1 is using dhcpcd. You may try replacing it with dhclient.
|
All times are GMT -5. The time now is 02:41 PM. |