Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
wireless setup not reading correctly
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
swingkyd
Guru
Guru


Joined: 13 Jan 2005
Posts: 334

PostPosted: Tue Oct 23, 2007 6:20 pm    Post subject: wireless setup not reading correctly Reply with quote

So I'm having trouble configuring my wireless settings. the first time I set up the interface, I could use ifconfig eth1 (<-- wireless BCM4301 kernel modules bcm4xx), and connect to my AP using WEP without any problem.
So, this is good. I set up most of my gentoo box using this connection.
So, according to the documentation Using softlevel, I can disable net.eth1 and net.eth0 from the coldplug scripts, and then add net.eth0 to the default runlevel. this should disable the automatic loading of net.eth1. Great. So to the point, when I do want to use net.eth1, I seem to be having trouble with my configuration file.
I go:
Code:
# /etc/init.d/net.eth0 stop
# /etc/init.d/net.net.eth1 start

I get the following unhappy results:

  1. fails and shuts off the device
  2. complains that it found no configuration for eth1 and defaults to dhcp, picks up a nearby AP, overwrites my resolv.conf and generally just makes me very unhappy ;(

So, after reading the gentoo documentation about wireless setups here,
I have edited my /etc/conf.d/net file according to examples in both net.example and wireless.example (using wireless-tools). Unfortunately, it refuses to use my essid configuration. It complains it found not configuration for net.eth1, so default to dhcp.
Help would be greatly appreciated in getting this working!
Code:
# cat /etc/conf.d/net
# This blank configuration will automatically use DHCP for any net.*
# scripts in /etc/init.d.  To create a more complete configuration,
# please review /etc/conf.d/net.example and save your configuration
# in /etc/conf.d/net (this file :]!).
modules=( "ifconfig" )
config_eth0=( "192.168.1.115 netmask 255.255.255.0 broadcast 192.168.1.255" )
routes_eth0=( "default via 192.168.1.1" )
fallback_eth0="eth1"
# ******* Custom Wireless Configuration ********
essid_eth1="cnetwork"
essid_eth1="any"
preferred_aps_eth1=("cnetwork" "any")
#preferred_aps_eth1=("cnetwork")


# cnetwork ********************
key_cnetwork="$MYKEY enc open"
config_cnetwork=( "192.168.1.115 netmask 255.255.255.0 broadcast 192.168.1.255" )
routes_cnetwork=( "default via 192.168.1.1" )

dns_servers_cnetwork=("192.168.1.1")
dns_domain_cnetwork="192.168.1.1"
fallback_cnetwork=("eth0")

# any **************************
dhcpcd_any="-t 5 -R"
fallback_any="eth0"

Where $MYKEY is the actual key taken from my AP.
So is there something horribly wrong with me? ;)
Back to top
View user's profile Send private message
swingkyd
Guru
Guru


Joined: 13 Jan 2005
Posts: 334

PostPosted: Thu Oct 25, 2007 5:16 pm    Post subject: Reply with quote

I don't suppose anyone has any ideas? It looks like the problems are occuring because there is no line:
Code:
config_eth1( blah blah)

the script assumes it is not configured so it defaults to dhcpcd.
I even have stranger stuff now.
I'm able to manually set up the wireless card now pretty reliably. If I go:
Code:
/etc/init.d/net.eth0 stop

sshd and distccd get stopped as well.
When I go:
Code:
/etc/init.d/net/eth1 start

the dhcpcd process starts and I have to kill it, manually assign my ap, ifconfig and route tables and voila, internet again.
But then when I try to restart any of the sshd or distccd service, the script just hangs. I have no idea why.
Am I really the only person with this problem? Can someone post their working net file with wireless and wired configured correctly?
Does it matter that I'm using BCM4XX drivers to get my bcm4301 hardware working?
here is my dmesg when I connect to my neighbours dhcpc server, then I connect to my own router with WEP, finally turn off using init.d script:
Code:
SoftMAC: Open Authentication completed with <MAC_ADDY_HERE_NEIGHBOUR>
bcm43xx: set security called, .level = 0, .enabled = 0, .encrypt = 0
SoftMAC: Open Authentication completed with <MAC_ADDY_HERE_MINE>
bcm43xx: set security called, .active_key = 0, .level = 1, .enabled = 1, .encrypt = 1
bcm43xx: set security called, .level = 1, .enabled = 1, .encrypt = 1, .auth_mode = 0
bcm43xx: Radio turned off
bcm43xx: DMA-32 0x0200 (RX) max used slots: 1/64
bcm43xx: DMA-32 0x02A0 (TX) max used slots: 0/512
bcm43xx: DMA-32 0x0280 (TX) max used slots: 0/512
bcm43xx: DMA-32 0x0260 (TX) max used slots: 0/512
bcm43xx: DMA-32 0x0240 (TX) max used slots: 0/512
bcm43xx: DMA-32 0x0220 (TX) max used slots: 4/512
bcm43xx: DMA-32 0x0200 (TX) max used slots: 0/512

edit: made first sentence readable sorta...fixed code
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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