You are not logged in.

#1 2006-04-10 01:57:22

weaner
Member
Registered: 2006-04-03
Posts: 11

DHCP fails at boot

Hi,
I'm new to Arch and I'm having problems with the dhcpcd deamon when the box boots.
It seems the to connect to router ok but I cannot access the internet, the only way around this is to rerun the dhcpcd deamon the everything works as it should.

iwconfig & ifconfig after boot:

[root@archlinux weaner]# iwconfig
lo        no wireless extensions.

sit0      no wireless extensions.

eth0      no wireless extensions.

wlan0     IEEE 802.11g  ESSID:"deansnet"
          Mode:Managed  Frequency:2.462 GHz  Access Point: 00:12:17:4A:D8:02
          Bit Rate:54 Mb/s   Tx-Power:14 dBm
          RTS thr:2347 B   Fragment thr:2346 B
          Encryption key:********************************   Security mode:open
          Power Management:off
          Link Quality:100/100  Signal level:-48 dBm  Noise level:-256 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

[root@archlinux weaner]# ifconfig
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:12 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:600 (600.0 b)  TX bytes:600 (600.0 b)

wlan0     Link encap:Ethernet  HWaddr 00:0F:66:C9:7E:EF
          inet addr:192.168.1.101  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::20f:66ff:fec9:7eef/64 Scope:Link
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1300 (1.2 Kb)  TX bytes:2074 (2.0 Kb)
          Interrupt:16 Memory:42000000-42002000

iwconfig & ifconfig 'dhcpcd wlan0':

[root@archlinux weaner]# iwconfig
lo        no wireless extensions.

sit0      no wireless extensions.

eth0      no wireless extensions.

wlan0     IEEE 802.11g  ESSID:"deansnet"
          Mode:Managed  Frequency:2.462 GHz  Access Point: 00:12:17:4A:D8:02
          Bit Rate:54 Mb/s   Tx-Power:14 dBm
          RTS thr:2347 B   Fragment thr:2346 B
          Encryption key:****************************   Security mode:open
          Power Management:off
          Link Quality:100/100  Signal level:-48 dBm  Noise level:-256 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

[root@archlinux weaner]# ifconfig
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:12 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:600 (600.0 b)  TX bytes:600 (600.0 b)

wlan0     Link encap:Ethernet  HWaddr 00:0F:66:C9:7E:EF
          inet addr:192.168.1.102  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::20f:66ff:fec9:7eef/64 Scope:Link
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:14 errors:0 dropped:0 overruns:0 frame:0
          TX packets:21 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3490 (3.4 Kb)  TX bytes:4030 (3.9 Kb)
          Interrupt:16 Memory:42000000-42002000

Also, here's the /etc/network-profiles/home settings that I'm using:

#
# Network Profile
#

DESCRIPTION="Default Network Profile"

# Network Settings
INTERFACE=wlan0
HOSTNAME=archlinux

# Interface Settings (use IFOPTS="dhcp" for DHCP)
IFOPTS="dhcp"
GATEWAY=192.168.0.1

# DNS Settings (optional)
DOMAIN=localdomain
DNS1=192.168.0.1
DNS2=

# Wireless Settings (optional)
ESSID=deansnet
KEY=************************************
IWOPTS="mode managed essid $ESSID channel 11 key open $KEY"

WIFI_INTERFACE=wlan0   # use this if you have a special wireless interface
                        # that is linked to the real $INTERFACE
#IFOPTS="dhcp"
#WIFI_WAIT=3            # seconds to wait for the wireless card to
                        # associate before bringing the interface up

#USEWPA="yes"           # start wpa_supplicant with the profile
#WPAOPTS=""             # use "" for normal operation or specify additional
                        # options (eg, "-D ipw")
                        # see /etc/wpa_supplicant.conf for configuration

Can anyone give me any pointers?
Thanks in advance,
~~Weaner

Offline

#2 2006-04-10 05:36:27

b4t3m4n
Member
From: -> Here <-
Registered: 2006-04-10
Posts: 27

Re: DHCP fails at boot

You DNS is incorrectly set.  Your net is 192.168.1.* and you have your DNS set to 192.168.0.*

Offline

#3 2006-04-10 16:17:11

weaner
Member
Registered: 2006-04-03
Posts: 11

Re: DHCP fails at boot

Thanks, worked a treat. I can't believe I missed that.

Cheers,

~~Weaner

Offline

Board footer

Powered by FluxBB