LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 04-18-2012, 10:14 AM   #1
FeyFre
Member
 
Registered: Jun 2010
Location: Ukraine, Vinnitsa
Distribution: Slackware
Posts: 308

Rep: Reputation: 22
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"
NETMASK[0]="255.255.255.0"
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=0

# All other entries are empty
GATEWAY="192.168.8.1"

# And entry for wireless
IFNAME[4]="wlan0"
USE_DHCP[4]="yes"
WLAN_MODE[4]="Managed"
WLAN_RATE[4]="54M auto"
WLAN_CHANNEL="auto"
WLAN_WPA="wpa_supplicant"
WLAN_WPADRIVER[4]="wext";
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="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.
 
Old 04-18-2012, 10:48 AM   #2
prpcl
LQ Newbie
 
Registered: Apr 2012
Location: Chile
Distribution: Slackware
Posts: 3

Rep: Reputation: Disabled
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.
 
Old 04-18-2012, 10:56 AM   #3
FeyFre
Member
 
Registered: Jun 2010
Location: Ukraine, Vinnitsa
Distribution: Slackware
Posts: 308

Original Poster
Rep: Reputation: 22
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.
 
Old 04-19-2012, 05:08 AM   #4
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.1
Posts: 1,494

Rep: Reputation: 437Reputation: 437Reputation: 437Reputation: 437Reputation: 437
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.
 
Old 04-19-2012, 08:38 AM   #5
ChrisAbela
Member
 
Registered: Mar 2008
Location: Malta
Distribution: Slackware 14.1
Posts: 467

Rep: Reputation: 89
# 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.

Last edited by ChrisAbela; 04-19-2012 at 08:40 AM.
 
Old 04-19-2012, 09:06 AM   #6
FeyFre
Member
 
Registered: Jun 2010
Location: Ukraine, Vinnitsa
Distribution: Slackware
Posts: 308

Original Poster
Rep: Reputation: 22
ChrisAbela, I know how to do it manually, and I am NOT interested to do it manually.
 
Old 04-19-2012, 09:37 AM   #7
ChrisAbela
Member
 
Registered: Mar 2008
Location: Malta
Distribution: Slackware 14.1
Posts: 467

Rep: Reputation: 89
Are you using dhcpcd or dhclient?
Hint: Try both
 
Old 04-19-2012, 09:47 AM   #8
jovanoti
LQ Newbie
 
Registered: Mar 2010
Distribution: Slackware
Posts: 25

Rep: Reputation: 2
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.
 
Old 04-19-2012, 10:07 AM   #9
ChrisAbela
Member
 
Registered: Mar 2008
Location: Malta
Distribution: Slackware 14.1
Posts: 467

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
bridging a wireless and wired network causes wired to stop working royce2020 Linux - Networking 0 04-21-2009 04:48 PM
wireless network or wired rich345 Linux - Laptop and Netbook 1 12-07-2008 08:59 AM
Bridging a wired network to a (managed by network manager) wireless one jemenake Linux - Wireless Networking 2 09-09-2008 09:18 PM
Network Manager issue : Does not distinguish between wired and wireless network rohanak Linux - Laptop and Netbook 1 09-04-2008 04:49 PM
Linking a wired network to a wireless network gothgeek84 Linux - Wireless Networking 3 08-08-2005 02:38 PM


All times are GMT -5. The time now is 05:28 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration