On 12 April 2010 08:11, Walter Dnes <waltd...@waltdnes.org> wrote: > Here's /etc/conf.d/net on my Gentoo netbook system... > > config_eth0="192.168.123.249 broadcast 192.168.123.255 netmask > 255.255.255.248 mtu 1452" > routes_eth0=( > "default via 192.168.123.254 metric 2" > "192.168.123.248/29 via 192.168.123.254 metric 0" > ) > > The multiple routes allow eth0 to remain connected to my router and > talk to the other machine on the lan while running a dialup connection. > I want to try out my netbook wifi, and I find that it works too well!!! > Here's the output after starting up wlan0. The ESSID and MAC address > of my neighbours in the condo have been masked to protect the innocent... > > aa1 init.d # /etc/init.d/net.wlan0 restart > * Stopping wlan0 > * Bringing down wlan0 > * Stopping dhcpcd on wlan0 ... [ ok ] > * Shutting down wlan0 ... [ ok ] > * Starting wlan0 > * Configuring wireless network for wlan0 > * WEP key is not set for "KGB zone** keep OFF**" - not connecting > * wlan0 connected to ESSID "***************" at **:**:**:**:**:** > * in managed mode on channel 6 (WEP disabled) > * Configuration not set for wlan0 - assuming DHCP > * Bringing up wlan0 > * dhcp > * Running dhcpcd ... > wlan0: dhcpcd 4.0.15 starting > wlan0: broadcasting for a lease > wlan0: offered 192.168.0.103 from 192.168.0.1 > wlan0: ignoring offer of 192.168.0.103 from 192.168.0.1 > wlan0: acknowledged 192.168.0.103 from 192.168.0.1 > wlan0: checking 192.168.0.103 is available on attached networks > wlan0: leased 192.168.0.103 for 604800 seconds [ ok ] > * wlan0 received address 192.168.0.103/24 > > After picking my jaw off the floor, I downed wlan0. Just to be safe, > I ran "rmmod ath5k". I want to be able to scan available connections > and then select which one I want, e.g. I want to try it at the local > public library. I do not like the concept of the netbook automatically > connecting to the first available access point. What do I have to do to > *NOT* connect automatically?
You probably want to look at wpa_supplicant (in particular man wpa_gui), or any other network manager type of application would do (wicd, network manager, wifi-radar) which allows you to enable/disable access points for automatic connection to them. Alternatively, a less practical approach would be to set up config_wlan0=( "null" ) in your /etc/conf.d/net.wlan0, which will not allow your wireless card to obtain any address. Or, you can play with dhcpcd options like so: dhcp_eth0="release nogateway nosendhost" which means that it will not bind to any wireless router as a gateway. -- Regards, Mick