Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[HOWTO] Automatic Network selection for LAN and WLAN
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
seiichiro0185
Tux's lil' helper
Tux's lil' helper


Joined: 18 Dec 2005
Posts: 115
Location: Berlin, Germany

PostPosted: Sun Oct 28, 2007 11:09 am    Post subject: [HOWTO] Automatic Network selection for LAN and WLAN Reply with quote

Since I own a Laptop and use it in different wired and wireless networks I needed a configuration that can detect and configure automagically which network I'm in at the moment and configure the interfaces accordingly. After trying NetworkManager (problem: no static config possible) I found a setup using gentoos network-scripts that does exactly this for LAN and WLAN. Here are the features:

  • You can have static or dynamic (DHCP) config for LAN and WLAN in dependence of the network
  • Automatic detection of network-cable and start/stop of the interface
  • Define preference for interface if both are up and configured (e.g. Prefer LAN over WLAN because of speed)


This is mostly a combination of existing tipps and tricks, so most credit goes to the people who wrote these (sorry, but I forgot which pages exactly I used, cause there were to many ^^) and the gentoo devs who wrote gentoos network scripts! I only collected the Infos and combined them in one place.

Since I first posted this on my own HP (mainly as a reminder for myself) and I dont feel like writing it all over again here is a Link:

Gentoo Automatic Network Profiles

I hope someone finds this usefull.
seiichiro0185

PS.: If someone wants to write this into gentoo-wiki feel free to do so.. ^_^
PPS.: For any questions, comments or corrections feel free to ask me.
_________________
Desktop: AMD Athlon64 4850e@2,9GHz| 2GB RAM | 500GB HDD
Laptop: Dell Vostro 1310: C2D 2.1GHz | 4GB RAM | 250GB HDD
Server: Via C7D 1,5GHz | 512MB RAM | 1TB HDD


Last edited by seiichiro0185 on Sat Mar 01, 2008 8:34 pm; edited 1 time in total
Back to top
View user's profile Send private message
topper_harley
Guru
Guru


Joined: 05 Apr 2006
Posts: 363
Location: Treviso / Udine (Italy)

PostPosted: Tue Oct 30, 2007 10:46 pm    Post subject: Reply with quote

Looks like I cannot set up wpa_supplicant and "config_essid" in /etc/conf.d/net at the same time.

From http://gentoo-wiki.com/HOWTO_Wireless_Configuration_and_Startup
Code:
Note: You will need to comment out any config_ESSID settings, as they do not work in conjunction with wpa_supplicant. If not, you will receive the following hard-to-read error:
Nov 13 06:14:20 yourhost wpa_cli: interface ath0 CONNECTED
Nov 13 06:14:21 yourhost wpa_cli: executing '/etc/init.d/net.ath0 --quiet start' faileds that you cannot set up


How did you make it work?
_________________
http://topperh.ath.cx
Jabber: topper_harley@jabber.org
ICQ: 224179391
MSN: Topper_Harley80@gmail.com
Last FM


Last edited by topper_harley on Thu Nov 01, 2007 11:07 pm; edited 1 time in total
Back to top
View user's profile Send private message
seiichiro0185
Tux's lil' helper
Tux's lil' helper


Joined: 18 Dec 2005
Posts: 115
Location: Berlin, Germany

PostPosted: Thu Nov 01, 2007 5:36 pm    Post subject: Reply with quote

Well, I didn't do anything special, just set it up like I described in the howto, and it just works. Maybe you have a different baselayout-version? I have baselayout-1.12.9-r2

btw. The link points to an empty page in the wiki but without the ":" at the end it works ^_^
_________________
Desktop: AMD Athlon64 4850e@2,9GHz| 2GB RAM | 500GB HDD
Laptop: Dell Vostro 1310: C2D 2.1GHz | 4GB RAM | 250GB HDD
Server: Via C7D 1,5GHz | 512MB RAM | 1TB HDD
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum