You are not logged in.
Hi,
3 days i reading this forum and wiki, and i don't know what to do. It looks like my problem is unique!
I use dhcp, and i can't connect to network.
DHCP settings are standart:
eth0="dhcp"
INTERFACES=(eth0)
ROUTES=(!gateway)
At the boot, when network is starting i get a error:
dhcpcd: eth0: add_route: Invalid argument
I found my problem in spanish Archlinux forum, but i don't understand spanish.
http://archlinux-es.org/foros/viewtopic.php?f=11&t=2761
What could be wrong?
Offline
Judging by that spanish thread, that guy had a different problem than you anyway, he wanted to use a static IP and not DHCP, but my spanish is rusty.
Does 'dhcpcd eth0' work in bash after login? Can you show us the rest of your 'network' section of your rc.conf?
Offline
Big thanks for reply Ferrenrock! My rc.conf network section:
# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="pavasario-sniegas"
# 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="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
#
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)
Ant when i dhcpcd eth0 i get:
#dhcpcd: dhcpcd is already running on pid 1836 (/var/run/dhcpcd-eth.pid))
And then i:
# killall dhcpcd
# dhcpcd eth0
dhcpcd: version 5.0.6 starting
hdcpcd: eth0: rebindig lease of 88.222.181.200
hdcpcd: eth0: acknowledget 88.222.181.200 from 88.222.181.254
hdcpcd: eth0: checking for 88.222.181.200
hdcpcd: eth0: leased 88.222.181.200 for 43200 seconds
dhcpcd: eth0: add_route: Invalid argument
My NIC is integrated, and i don't have problems in ubuntu or windows XP.
Offline
I think you have to define a gateway before you can exclude it from ROUTES.
You could either comment out the 'ROUTES=(!gateway) line, or add the gateway information. In your case its ip address seems to be 88.222.181.254 (which is something I haven't seen before, usually they start with 192.168., but that doesn't mean that there is anything wrong with it). I guess this should do it:
gateway="default gw 88.222.181.254"
Good ideas do not need lots of lies told about them in order to gain public acceptance.
Offline
I dont know... My PC is probably crazy... i add the gateway information (gateway="default gw 88.222.181.254") before ROUTES and remuved "!"
And now when i restarting network im getting error:
#/etc/rc.d/network restart
:: Stoping Network
SIOCDELRT: No such process [FAIL]
:: Starting Network
dhcpcd: eth0: add_route: Invalid argument
SIOCDELRT: No such process [FAIL]
88.222.181.254 is my broadcast not IP.
Offline
Can you do the following and post the output? (Same as you did in comment #3, but adding "-d" to get debug output)
# killall dhcpcd
# dhcpcd -d eth0
Some things to look for:
- Is the gateway in the same subnet as the leased IP?
- Is the subnet mask correct?
(If the subnet mask is /32 or 255.255.255.255, you may get this problem.)
Offline
Give this a shot:
dhcpcd --release eth0
dhcpcd eth0
(try -d there as sdolim said if you want)
if dhcpcd works this way but not at boot place this on /etc/rc.local
dhcpcd -k eth0
dhcpcd -nd eth0
(source: http://wiki.archlinux.org/index.php/Network)
Also, do you have more than one router in your network?
Offline
Thanks sdolim and IR3uL for reply. When i "dhcpcd -d eth0" i get:
dhcpcd: version 5.0.6 starting
dhcpcd: eth0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason PREINIT
dhcpcd: eth0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason CARRIER
dhcpcd: eth0: rebinding lease of 88.222.181.200
dhcpcd: eth0: sending DHCP_REQUEST (xid 0x44171f5d), next in 3.49 seconds
dhcpcd: eth0: acknowledged 88.222.181.200 from 88.222.181.254
dhcpcd: eth0: checking for 88.222.181.200
dhcpcd: eth0: sending ARP probe (1 of 3), next in 1.76 seconds
dhcpcd: eth0: sending ARP probe (2 of 3), next in 1.41 seconds
dhcpcd: eth0: sending ARP probe (3 of 3), next in 2.00 seconds
dhcpcd: eth0: leased 88.222.181.200 for 43200 seconds
dhcpcd: eth0: adding IP address 88.222.181.200/23
dhcpcd: eth0: adding route to 88.222.180.0/23
dhcpcd: eth0: adding default route via 88.222.181.254
dhcpcd: eth0: add_route: Invalid argument
dhcpcd: eth0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason BOUND
dhcpcd: forking to background
My IP looks like gateway, except last 3 numbers. Mask is not 255.255.255.255 it is 255.255.254.0
IR3uL, i already tried
dhcpcd -k eth0
dhcpcd -nd eth0
It simply dont work. Maibe my hardware is bad?
Offline
i add the gateway information (gateway="default gw 88.222.181.254") before ROUTES and remuved "!"
That's not what I meant. My suggestion was to try two different settings in the rc.conf file. The first is to comment out the ROUTES directive:
#ROUTES=(!gateway)
The second is to define the gateway:
gateway="default gw 88.222.181.254"
ROUTES=(!gateway)
Good ideas do not need lots of lies told about them in order to gain public acceptance.
Offline
If you disable network in rc.conf can you bring up the interface manually using ifconfig and dhcpcd?
Offline