You are not logged in.

#1 2009-06-22 04:29:49

Moran
Member
Registered: 2009-01-15
Posts: 10

how can get dhcpcd run automatically?[SOLVED]

Hello!

I've installed Arch and the connection to Internet (wired) was ok. Then I installed Ubuntu in the second partition and in the auto-configuration I changed the hostname. Then the network in Arch started to fail. The output from a ping was "Network is unreachable", then I changed the hostname in both rc.conf and hosts. This doesn't fixed the problem. So I tried with a lot of options with the same result, till I tried running the

# dhcpcd eth0

command, then I tried the ping. The begginers manual said that if that worked , as it was, I must adjust my /etc/rc.conf as described for dynamic IP. I do it, but in the next reboot the problem was the same, and also dhcpcd was the solution... is there a way from getting dhcpcd command running automatically in each boot? 

Thank you for your help

Last edited by Moran (2009-06-26 04:20:49)

Offline

#2 2009-06-22 05:49:20

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: how can get dhcpcd run automatically?[SOLVED]

Post your rc.conf, using forum code tags.

Offline

#3 2009-06-22 06:41:41

Moran
Member
Registered: 2009-01-15
Posts: 10

Re: how can get dhcpcd run automatically?[SOLVED]

Here it is:

 #
# /etc/rc.conf - Main Configuration for Arch Linux
#

# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime"
# USEDIRECTISA: use direct I/O requests instead of /dev/rtc for hwclock
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="en_US.utf8"
HARDWARECLOCK="UTC"
USEDIRECTISA="no"
TIMEZONE="America/Mexico_City"
KEYMAP="es"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
# MOD_BLACKLIST: Prevent udev from loading these modules
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
#
# NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
#
MOD_AUTOLOAD="yes"
#MOD_BLACKLIST=() #deprecated
MODULES=(snd_intel8x0 snd-pcm-oss !snd_pcsp)

# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="Grayfox"

# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
#   - prefix an entry in INTERFACES with a ! to disable it
#   - no hyphens in your interface names - Bash doesn't like it
# 
# DHCP:     Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#
#eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
eth0="dhcp"
INTERFACES=(eth0)

# 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)
 
# Enable these network profiles at boot-up.  These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
#   - set to 'menu' to present a menu during boot-up (dialog package required)
#   - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This now requires the netcfg package
#
#NETWORKS=(main)

# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
#   - prefix a daemon with a ! to disable it
#   - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng network netfs crond)
DAEMONS=(hal)

Offline

#4 2009-06-22 09:23:18

Odysseus
Member
Registered: 2009-02-15
Posts: 141

Re: how can get dhcpcd run automatically?[SOLVED]

I think having hal on a separate line is "overwriting" the previous DAEMONS array declaration, which means the network daemon isn't starting.  Just add hal to the end of the first line like so:

DAEMONS=(syslog-ng network netfs crond hal)

I'm the type to fling myself headlong through the magical wardrobe, and then incinerate the ornate mahogany portal behind me with a Molotov cocktail.

Offline

#5 2009-06-26 04:20:10

Moran
Member
Registered: 2009-01-15
Posts: 10

Re: how can get dhcpcd run automatically?[SOLVED]

Thanks Odysseus! Integrating hal in one DAEMONS line alone fixed the problem big_smile

Offline

Board footer

Powered by FluxBB