You are not logged in.
Pages: 1
hello, I have a problem setting an ethernet interface as dhcp.
In rc.conf, it says that writing eth1="dhcp", the interface is set to use dhcp, but, if i do that, the system won't start again.
I just set eth1="eth1 dhcp" and it works, but when it's starts, i have no connection and i have to do dhclient.
I'm using firestarter because i'm sharing internet to another pc through eth0.
#
# /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"
# 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="es_AR.utf8"
HARDWARECLOCK="localtime"
TIMEZONE="Buenos_Aires/America"
KEYMAP=es
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"
#
# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# Scan hardware and load required modules at bootup
MOD_AUTOLOAD="yes"
# Module Blacklist - modules in this list will never be loaded by udev
MOD_BLACKLIST=()
#
# Modules to load at boot-up (in this order)
# - prefix a module with a ! to blacklist it
#
MODULES=(8139cp 8139too mii slhc ac97_bus snd-mixer-oss snd-pcm-oss snd-page-all
oc snd-pcm snd-timer snd snd-ac97-codec snd-intel8x0 soundcore)
# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"
#
# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
HOSTNAME="dharma"
#
# 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
#
# Note: to use DHCP, set your interface to be "dhcp" (eth0="dhcp")
#
lo="lo 127.0.0.1"
eth0="eth0 192.168.0.1 netmask 255.255.255.0 broadcast 192.168.0.255"
eth1="eth1 dhcp"
INTERFACES=(lo eth0 eth1)
#
# 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-profiles
#
#NET_PROFILES=(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 alsa firestarter gdm)
# End of file
when arch starts up, i have to type:
dhclient && ifconfig eth0 192.168.0.1 && /etc/rc.d/firestarter restart
and then internet is up.
PD: I'm from argentina, so my english may be not good.
Offline
Change eth1="eth1 dhcp" to eth1="dhcp", like comments above says.
AFAIK Arch uses dhcpcd not dhclient as client for dhcp configured IPs. You can check this in /etc/rc.d/network script.
Offline
Yes, i know, maybe i didn't expressed correctly, if i change eth1="dhcp", magicaly my system won't start I don't know why.
Init just stops in "Starting network" and keeps [busy], but it won't do anything else. Maybe the order in which interfaces are written influences, but i don't know.
Offline
Yes, i know, maybe i didn't expressed correctly, if i change eth1="dhcp", magicaly my system won't start I don't know why.
Init just stops in "Starting network" and keeps [busy], but it won't do anything else. Maybe the order in which interfaces are written influences, but i don't know.
New version of dhcpcd solved my problem. Try upgrading.
Offline
you seem to be using eth0.. so actually it's eth0="dhcp" as opposed to eth1="eth1 dhcp"
Offline
no, my home network configuration is this:
eth1: dynamic ip, internet connection via usb.
eth0: static ip, ethernet cable to another pc. I'm sharing connection through this link, using firestarter.
That's because i'm using eth0 too.
Offline
I think that the problem here is caused by syntax.
Try this:
lo="127.0.0.1"
eth0="192.168.0.1 netmask 255.255.255.0 broadcast 192.168.0.255"
eth1="dhcp"
INTERFACES=(lo eth0 eth1)
if that causes any problems (which should not... matter of fact I would expect the duplication of interface ID , as you have now, should ) be assured it is not the syntax it is something else. What type of cards are you using?
Are they the same?
Post the result of "ifconfig" see if we can figure out what's wrong.
R
Offline
well, just upgrading, like alexmatos said, my problem was solved, thanks everyone.
Offline
Pages: 1