Quote:
Originally posted by rodm13
Thanks, that got it working great. After I got a working driver and messed around with my routing table and iwconfig/ifconfig, it works. One last thing, though, do you know how to make it automatically load during boot? (Like which rc. file I should put my commands in?) I have to type (as root) to get it working:
Code:
ifconfig wlan0 192.168.0.3
route add default wlan0
route add default gw 192.168.0.1
Thanks
Rod
|
Modify the file:
Code:
/etc/rc.d/rc.inet1.conf
with these lines. You may choose something else for the
VARIABLENAME[1]=.... that I use in the below example, like [0] or [2], whatever value is unused in the conf file:
Quote:
IFNAME[1]="wlan0"
IPADDR[1]="192.168.0.3"
NETMASK[1]="255.255.255.0"
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""
|
and further down in
/etc/rc.d/rc.inet1.conf make sure it says
Code:
# Default gateway IP address:
GATEWAY="192.168.0.1"
After doing this, you can either reboot to test, or run the following (and then there is no need for a reboot):
Code:
/etc/rc.d/rc.inet1 wlan0_restart
PS: if you need to set any wireless parameter for your card, you can add it to
/etc/rc.d/rc.inet1.conf as well, like this example to set the ESSID to "MY_AP":
Quote:
...otherstuff[1]=....
WLAN_ESSID[1]="MY_AP"
|
These are the same variables you use in
rc.wireless.conf but with the string
WLAN_ prepended to them. See the
/etc/rc.d/rc.inet1.conf file contents for more examples.
Cheers, Eric