Need help configuring my network (PARTIALLY SOLVED)

Mark Phillips mark at phillipsmarketing.biz
Wed May 3 12:50:09 MST 2006


I can get the interface to work now, but I need some help to automate the 
process.

This is what I did.

1. In /var/log/syslog I noticed that ifplugd was bringing the interface up and 
then down and up and down and up and down....you get the picture. For those 
few brief moments when the interface was up, everything seemed to be 
configured correctly. Finally, wpa_supplicant exited and nothing worked. So I 
removed ifplugd.

Contents of syslog
May  3 11:08:02 localhost kernel: ath0: no IPv6 routers present
May  3 11:08:07 localhost ifplugd(ath0)[4054]: Executing 
'/etc/ifplugd/ifplugd.action ath0 down'.
May  3 11:08:07 localhost ifplugd(ath0)[4054]: Program executed successfully.
May  3 11:08:10 localhost ifplugd(ath0)[4054]: Link beat detected.
May  3 11:08:11 localhost ifplugd(ath0)[4054]: Executing 
'/etc/ifplugd/ifplugd.action ath0 up'.
May  3 11:08:11 localhost ifplugd(ath0)[4054]: Program executed successfully.
May  3 11:08:11 localhost ifplugd(ath0)[4054]: Link beat lost.
May  3 11:08:18 localhost kernel: ath0: no IPv6 routers present
May  3 11:08:22 localhost ifplugd(ath0)[4054]: Executing 
'/etc/ifplugd/ifplugd.action ath0 down'.
May  3 11:08:22 localhost ifplugd(ath0)[4054]: Program executed successfully.
May  3 11:08:25 localhost ifplugd(ath0)[4054]: Link beat detected.
May  3 11:08:27 localhost ifplugd(ath0)[4054]: Executing 
'/etc/ifplugd/ifplugd.action ath0 up'.
May  3 11:08:27 localhost ifplugd(ath0)[4054]: Program executed successfully.
May  3 11:08:27 localhost ifplugd(ath0)[4054]: Link beat lost.
May  3 11:08:33 localhost kernel: ath0: no IPv6 routers present
May  3 11:08:38 localhost ifplugd(ath0)[4054]: Executing 
'/etc/ifplugd/ifplugd.action ath0 down'.
May  3 11:08:38 localhost ifplugd(ath0)[4054]: Program executed successfully.

output from wpa_supplicant (I added the beeps)
WPA: clearing AP RSN IE
WPA: clearing own WPA/RSN IE
EAPOL: External notification - portControl=ForceAuthorized
Associated with 00:12:17:0a:57:85
WPA: Association event - clear replay counter
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
EAPOL: External notification - portEnabled=1
EAPOL: SUPP_PAE entering state S_FORCE_AUTH
EAPOL: SUPP_BE entering state IDLE
Cancelling authentication timeout
Removed BSSID 00:12:17:0a:57:85 from blacklist
State: ASSOCIATED -> COMPLETED
CTRL-EVENT-CONNECTED - Connection to 00:12:17:0a:57:85 completed (reauth)
RTM_NEWLINK, IFLA_IFNAME: Interface 'ath0' added
[beep]
Wireless event: cmd=0x8b1a len=12
Wireless event: cmd=0x8b15 len=20
Wireless event: new AP: 00:00:00:00:00:00
Setting scan request: 0 sec 100000 usec
Added BSSID 00:12:17:0a:57:85 into blacklist
State: COMPLETED -> DISCONNECTED
EAPOL: External notification - portEnabled=0
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: SUPP_BE entering state INITIALIZE
EAPOL: External notification - portValid=0
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
RTM_NEWLINK, IFLA_IFNAME: Interface 'ath0' added
Wireless event: cmd=0x8b1a len=12
State: DISCONNECTED -> SCANNING
Trying to associate with SSID 'PMI'
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: clearing AP WPA IE
WPA: clearing AP RSN IE
WPA: clearing own WPA/RSN IE
No keys have been configured - skip key clearing
wpa_driver_madwifi_set_drop_unencrypted: enabled=0
State: SCANNING -> ASSOCIATING
wpa_driver_madwifi_associate
Setting authentication timeout: 60 sec 0 usec
EAPOL: External notification - portControl=ForceAuthorized
Wireless event: cmd=0x8b1a len=16
[beep]

2. This is how I get it to work manually

a. Reboot

b. wpa_supplicant -w -i ath0 -D madwifi 
-c /etc/wpa_supplicant/wpa_supplicant.conf -B

c. ifconfig ath0 192.168.25.125 netmask 255.255.255.0 up

d. route add default gw 192.168.25.1

I thought if I just did /etc/init.d/network start I could avoid the last two 
steps, but only lo comes up.

So, any suggestions would be appreciated. I know I can put these steps in a 
startup script that I write, but that does not seem to be the correct 
solution. I must be missing a configuration step in Debian/Linux to get this 
working on boot up.

Also, any thoughts on why the ifplugd kept loosing the link and how to get 
ifplugd working agin would be great! I was hoping to use this combination on 
another computer.

Thanks!

Mark

On Wednesday 03 May 2006 08:58 am, Mark Phillips wrote:
> Jared,
> 
> Here is a transcript of what I did. I booted the machine (it had been off 
all 
> night). What is really strange, is that it looked as if the wireless card 
was 
> configured properly when I booted up (note it actually got the right mac 
> address for the ap) but I still could not ping a machine on my network. 
> 
> My comments are preceded by a '>':
> 
> stingray:/home/mark# ifconfig
> ath0      Link encap:Ethernet  HWaddr 00:13:46:E3:68:2B
>           inet6 addr: fe80::213:46ff:fee3:682b/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:13 errors:1 dropped:0 overruns:0 frame:1
>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:200
>           RX bytes:780 (780.0 b)  TX bytes:0 (0.0 b)
>           Interrupt:169 Memory:e08b1000-e08c1000
> 
> eth0      Link encap:Ethernet  HWaddr 00:08:74:CC:3C:17
>           inet addr:192.168.25.125  Bcast:192.168.25.255  Mask:255.255.255.0
>           inet6 addr: fe80::208:74ff:fecc:3c17/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:82 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:5248 (5.1 KiB)  TX bytes:398 (398.0 b)
>           Base address:0xdcc0 Memory:ff6c0000-ff6e0000
> 
> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Mask:255.0.0.0
>           inet6 addr: ::1/128 Scope:Host
>           UP LOOPBACK RUNNING  MTU:16436  Metric:1
>           RX packets:164 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:164 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:11326 (11.0 KiB)  TX bytes:11326 (11.0 KiB)
> 
> > eth0 is configured because I forgot that the cable was plugged in, 
> > so I took it down
> 
> stingray:/home/mark# ifdown eth0
> stingray:/home/mark# ifconfig
> ath0      Link encap:Ethernet  HWaddr 00:13:46:E3:68:2B
>           inet addr:192.168.25.125  Bcast:192.168.25.255  Mask:255.255.255.0
>           inet6 addr: fe80::213:46ff:fee3:682b/64 Scope:Link
>           UP BROADCAST MULTICAST  MTU:1500  Metric:1
>           RX packets:13 errors:1 dropped:0 overruns:0 frame:1
>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:200
>           RX bytes:780 (780.0 b)  TX bytes:0 (0.0 b)
>           Interrupt:169 Memory:e08b1000-e08c1000
> 
> eth0      Link encap:Ethernet  HWaddr 00:08:74:CC:3C:17
>           inet6 addr: fe80::208:74ff:fecc:3c17/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:82 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:5248 (5.1 KiB)  TX bytes:648 (648.0 b)
>           Base address:0xdcc0 Memory:ff6c0000-ff6e0000
> 
> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Mask:255.0.0.0
>           inet6 addr: ::1/128 Scope:Host
>           UP LOOPBACK RUNNING  MTU:16436  Metric:1
>           RX packets:164 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:164 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:11326 (11.0 KiB)  TX bytes:11326 (11.0 KiB)
> 
> > it looks as if ifplugd then brought ath0 up - cool
> 
> stingray:/home/mark# iwconfig
> lo        no wireless extensions.
> 
> ath0      IEEE 802.11g  ESSID:"PMI"
>           Mode:Managed  Frequency:2.437 GHz  Access Point: 00:12:17:0A:57:85
>           Bit Rate:36 Mb/s   Tx-Power:18 dBm   Sensitivity=0/3
>           Retry:off   RTS thr:off   Fragment thr:off
>           Encryption key:off
>           Power Management:off
>           Link Quality=27/94  Signal level=-68 dBm  Noise level=-95 dBm
>           Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
>           Tx excessive retries:0  Invalid misc:0   Missed beacon:0
> 
> eth0      no wireless extensions.
> 
> sit0      no wireless extensions.
> 
> > ath0 is connected to the ap, or this is what I interpret from the output. 
I 
> still have not run your suggested command... There is actually a link 
quality 
> of 27/94 - is this too low?
> 
> stingray:/home/mark# ifup ath0
> ifup: interface ath0 already configured
> stingray:/home/mark# iwconfig
> lo        no wireless extensions.
> 
> ath0      IEEE 802.11g  ESSID:"PMI"
>           Mode:Managed  Frequency:2.437 GHz  Access Point: 00:12:17:0A:57:85
>           Bit Rate:36 Mb/s   Tx-Power:18 dBm   Sensitivity=0/3
>           Retry:off   RTS thr:off   Fragment thr:off
>           Encryption key:off
>           Power Management:off
>           Link Quality=29/94  Signal level=-66 dBm  Noise level=-95 dBm
>           Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
>           Tx excessive retries:0  Invalid misc:0   Missed beacon:0
> 
> eth0      no wireless extensions.
> 
> sit0      no wireless extensions.
> 
> > still looking good - I haven't broken anything yet
> 
> stingray:/home/mark# ping gandalf
> PING gandalf (192.168.25.114) 56(84) bytes of data.
> ping: sendmsg: Network is unreachable
> ping: sendmsg: Network is unreachable
> ping: sendmsg: Network is unreachable
> 
> --- gandalf ping statistics ---
> 5 packets transmitted, 0 received, 100% packet loss, time 3998ms
> 
> > I am seeing a lot of these messages when I run dmesg:
> > ath0: no IPv6 routers present
> 
> stingray:/home/mark# route -n
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use 
Iface
> 192.168.25.0    0.0.0.0         255.255.255.0   U     0      0        0 ath0
> 0.0.0.0         192.168.25.1    0.0.0.0         UG    0      0        0 ath0
> 
> > Looks good as well....so let's try your suggestion:
> 
> stingray:/home/mark# iwconfig ath0 essid PMI nick stingray channel 6 mode 
> master rate auto
> stingray:/home/mark# iwconfig
> lo        no wireless extensions.
> 
> ath0      IEEE 802.11  ESSID:""  Nickname:"stingray"
>           Mode:Managed  Frequency:2.417 GHz  Access Point: 00:00:00:00:00:00
>           Bit Rate:1 Mb/s   Tx-Power:18 dBm   Sensitivity=0/3
>           Retry:off   RTS thr:off   Fragment thr:off
>           Encryption key:off
>           Power Management:off
>           Link Quality=0/94  Signal level=-95 dBm  Noise level=-95 dBm
>           Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
>           Tx excessive retries:0  Invalid misc:0   Missed beacon:0
> 
> eth0      no wireless extensions.
> 
> sit0      no wireless extensions.
> 
> > oops - the configuration is now broken; maybe quotes around PMI?
> 
> stingray:/home/mark# iwconfig ath0 essid "PMI" nick stingray channel 6 mode 
> master rate auto
> stingray:/home/mark# iwconfig
> lo        no wireless extensions.
> 
> ath0      IEEE 802.11b  ESSID:""  Nickname:"stingray"
>           Mode:Master  Frequency:2.437 GHz  Access Point: 00:00:00:00:00:00
>           Bit Rate:0 kb/s   Tx-Power:18 dBm   Sensitivity=0/3
>           Retry:off   RTS thr:off   Fragment thr:off
>           Encryption key:off
>           Power Management:off
>           Link Quality=0/94  Signal level=-95 dBm  Noise level=-95 dBm
>           Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
>           Tx excessive retries:0  Invalid misc:0   Missed beacon:0
> 
> eth0      no wireless extensions.
> 
> sit0      no wireless extensions.
> 
> stingray:/home/mark# iwconfig ath0 essid PMI nick stingray channel 6 mode 
> master rate auto
> stingray:/home/mark# iwconfig
> lo        no wireless extensions.
> 
> ath0      IEEE 802.11  ESSID:""  Nickname:"stingray"
>           Mode:Managed  Frequency:2.442 GHz  Access Point: 00:00:00:00:00:00
>           Bit Rate:1 Mb/s   Tx-Power:18 dBm   Sensitivity=0/3
>           Retry:off   RTS thr:off   Fragment thr:off
>           Encryption key:off
>           Power Management:off
>           Link Quality=0/94  Signal level=-95 dBm  Noise level=-95 dBm
>           Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
>           Tx excessive retries:0  Invalid misc:0   Missed beacon:0
> 
> eth0      no wireless extensions.
> 
> sit0      no wireless extensions.
> 
> stingray:/home/mark#
> 
> > Well, that didn't work as expected. What does the message 
> > ath0: no IPv6 routers present
> > mean?
> 
> Thanks!
> 
> Mark
> 
> On Tuesday 02 May 2006 05:59 pm, Jared Anderson wrote:
> > On Tuesday 02 May 2006 17:08, Mark Phillips wrote:
> > > On Tuesday 02 May 2006 05:01 pm, Jared Anderson wrote:
> > > > Link Quality=0/94
> > > >
> > > > Generally, not good enough. :)
> > > >
> > > > What is the output of the following command?
> > > >
> > > > iwlist ath0 scan
> > >
> > > stingray:/home/mark# iwlist ath0 scan
> > > ath0      Scan completed :
> > >           Cell 01 - Address: 00:12:17:0A:57:85
> > >                     ESSID:"PMI"
> > >                     Mode:Master
> > >                     Frequency:2.437 GHz (Channel 6)
> > >                     Quality=24/94  Signal level=-71 dBm  Noise level=-95
> > > dBm Encryption key:off
> > >                     Bit Rate:1 Mb/s
> > >                     Bit Rate:2 Mb/s
> > >                     Bit Rate:5 Mb/s
> > >                     Bit Rate:6 Mb/s
> > >                     Bit Rate:9 Mb/s
> > >                     Bit Rate:11 Mb/s
> > >                     Bit Rate:12 Mb/s
> > >                     Bit Rate:18 Mb/s
> > >                     Bit Rate:24 Mb/s
> > >                     Bit Rate:36 Mb/s
> > >                     Bit Rate:48 Mb/s
> > >                     Bit Rate:54 Mb/s
> > >                     Extra:bcn_int=100
> > >
> > 
> > try:
> > 
> > iwconfig ath0 essid PMI nick stingray channel 6 mode master rate auto 
> > 
> > and then post results of iwconfig.
> > 
> > Regards,
> > Jared
> > ---------------------------------------------------
> > PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
> > To subscribe, unsubscribe, or to change  you mail settings:
> > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
> > 
> 
> -- 
> Mark Phillips
> Phillips Marketing, Inc
> mark at phillipsmarketing.biz
> 602 524-0376
> 480 945-9197 fax
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change  you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
> 

-- 
Mark Phillips
Phillips Marketing, Inc
mark at phillipsmarketing.biz
602 524-0376
480 945-9197 fax


More information about the PLUG-discuss mailing list