You are not logged in.

#1 2008-09-05 13:40:47

andrew123456
Member
Registered: 2008-08-31
Posts: 32

getting dhcp at boot

hey guys, so here's my problem;
some of you may remember my whole problem with ssh (now fixed) but my issue now is with dhcp. when i boot my machine, it connects to the wifi essid, but it won't get an IP unless i tell it to manually (dhclient ath0)

here's how i have it configured in my rc.conf:

eth0="eth0 192.168.0.12 netmask 255.255.255.0 broadcast 192.168.0.255"
ath0="dhcp"
wlan_ath0="ath0 essid numberthree key s:tyrannosaurus"
INTERFACES=(eth0 ath0)

# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#   - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)

i'm feeling pretty confident about how that's configured, but i just don't know why it won't get an IP automatically.

any ideas?

Offline

#2 2008-09-05 15:23:56

RobertoVanto
Member
From: Chiampo(VI) - Italy
Registered: 2008-09-04
Posts: 32
Website

Re: getting dhcp at boot

Add wlan0="dhcp"


Love, and do what thou wilt  - St. Augustine of Hippo

Offline

#3 2008-09-05 20:47:02

andrew123456
Member
Registered: 2008-08-31
Posts: 32

Re: getting dhcp at boot

oh i thought it was supposed to be ath0, based on the device, but i'll give wlan0 a try

Offline

#4 2008-09-08 02:57:22

andrew123456
Member
Registered: 2008-08-31
Posts: 32

Re: getting dhcp at boot

nope, that did not fix it.

Offline

#5 2008-09-08 03:01:07

asmodaous
Member
From: Austin, TX
Registered: 2008-07-29
Posts: 19

Re: getting dhcp at boot

eth0="eth0 192.168.0.12 netmask 255.255.255.0 broadcast 192.168.0.255"
ath0="dhcp"
wlan_ath0="ath0 essid numberthree key s:tyrannosaurus"
INTERFACES=(eth0 ath0)


Are you using network Manager? If so all you need is eth0="dhcp", wlan0="dhcp", ath0="dhcp". so it should look like this.
Also what does your daemons look like?

eth0="dhcp"
ath0="dhcp"
wlan0="dhcp"
wlan_ath0="ath0 essid numberthree key s:tyrannosaurus"
INTERFACES=(lo !eth0 !ath0 !wlan0)

Last edited by asmodaous (2008-09-08 03:04:42)

Offline

Board footer

Powered by FluxBB