Quote:
Originally posted by kswitch
ok here it is. hope this helps
# Config information for ath0 (using dhcp):
IFNAME[1]="ath0"
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]="yes"
DHCP_HOSTNAME[1]="linksys"
.......
# Config information for eth1:
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""
.........
|
You see where this fails?The first set of lines are correct for configuring ath0 using DHCP to request an IP address.
But then comes the second set of lines with PARAMETERNAME[1]="...." and now USE_DHCP[1] gets re-defined to an empty value. The result is, that your ath0 will not be configured at all.
This would be enough already:
Code:
# /etc/rc.d/rc.inet1.conf
#
# This file contains the configuration settings for network interfaces.
# If USE_DHCP[interface] is set to "yes", this overrides any other settings.
# If you don't have an interface, leave the settings null ("").
# Config information for ath0 (using dhcp):
IFNAME[1]="ath0"
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]="yes"
DHCP_HOSTNAME[1]="linksys"
# Default gateway IP address:
GATEWAY=""
# Change this to "yes" for debugging output to stdout. Unfortunately,
# /sbin/hotplug seems to disable stdout so you'll only see debugging output
# when rc.inet1 is called directly.
DEBUG_ETH_UP="no"
It is not required to have all the other parameters with [0] [2] and [3] etc... you can leave them in, or out if they are empty == unused. But never use any of them
twice ...
Another remark: the use of the parameter
IFNAME[1]="ath0" is only introduced in Slackware 10.2. For Slackware 10.1 you would first have to download newer rc.inet1 and rc.wireless scripts at
http://www.slackware.com/~alien/rc_scripts/ for instance, I do not know if you did that.
Now, this part only covered the TCPIP part of setting up your interface. Are you sure that your wireless configuration is correct, too? Because the command
Code:
dhcpcd -d -t 30 ath0
should give you an IP address even if the configuration in the rc.inet1.conf file was completely wrong. The fact that you did not get an IP address would suggest that you need to do some more configuration, perhaps in rc.wireless.conf? Perhaps the ESSID and/or a WEP key?
Eric