Mapping interface on boot
I'm trying to make a network script to let autoconfigure my wireless card.
I'm using "mapping ra0 script /usr/local/sbin/map-scheme" with 2 logical interface, one for each Access Point I know.
map-scheme is working fine and it find the right Access Point using ESSID.
If I try "ifup ra0" everything is ok... dhclient starts and find the right IP Address and I can successfully connect to internet.
The problem is that this script doesn't work at boot...
map-scheme seems to starts correctly, dhclient goes well... But when my boot sequence ends I can't connect to any address (I can't even connect to my Access Point using ping) and with iwconfig I see that my settings haven't been applied. I have to repeat "ifdown ra0 ifup ra0" to make internet working.
The very strange thing is that dhclient works well at boot!!! That's odd because I'm using a WEP key on the Access Point and dhclient shouldn't find answer without the right WEP key set.
|