You are not logged in.

#1 2013-06-17 14:22:50

eldubsports
Member
Registered: 2010-10-30
Posts: 11

iproute2 / dhcpcd / eth0 connection issue

I'm using an up to date, freshly installed version of Arch, running systemd and iproute2. I can use the traditional dhcpcd eth0 method of connecting to my home network, but am unable to do so at my office.

Output of ip addr on boot:

$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether d0:67:e5:4f:34:3b brd ff:ff:ff:ff:ff:ff
    inet6 fe80::d267:e5ff:fe4f:343b/64 scope link
       valid_lft forever preferred_lft forever
3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 24:77:03:71:ed:60 brd ff:ff:ff:ff:ff:ff

Output of dhcpcd:

sudo dhcpcd eth0
dhcpcd[799]: version 5.6.8 starting
dhcpcd[799]: eth0: sending IPv6 Router Solicitation
dhcpcd[799]: eth0: rebinding lease of 10.30.40.59
dhcpcd[799]: eth0: acknowledged 10.30.40.59 from 10.30.20.29
dhcpcd[799]: eth0: checking for 10.30.40.59
dhcpcd[799]: eth0: sending IPv6 Router Solicitation
dhcpcd[799]: eth0: leased 10.30.40.59 for 691200 seconds
dhcpcd[799]: forked to background, child pid 890

Output of ip addr after dhcpcd:

$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether d0:67:e5:4f:34:3b brd ff:ff:ff:ff:ff:ff
    inet 10.30.40.59/17 brd 10.30.127.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::d267:e5ff:fe4f:343b/64 scope link
       valid_lft forever preferred_lft forever
3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 24:77:03:71:ed:60 brd ff:ff:ff:ff:ff:ff

Ping of google.com:

$ ping -c 3 www.google.com
ping: unknown host www.google.com

The same behavior is found on boot via systemctl enable dhcpcd@eth0. I've verified that with a live cd and with other OS' (Ubuntu, Windows 7) that ethernet connectivity works just fine. Not sure why I'm having this problem only at work and only with Arch.

Any input would be much appreciated.

Offline

#2 2013-06-17 19:30:34

chris_l
Member
Registered: 2010-12-01
Posts: 390

Re: iproute2 / dhcpcd / eth0 connection issue

Try to disable ipv6: https://wiki.archlinux.org/index.php/IPv6#Disable_IPv6

Make sure the line with the option "noipv4ll" is disabled/not present in /etc/dhcpcd.conf


"open source is about choice"
No.
Open source is about opening the source code complying with this conditions, period. The ability to choose among several packages is just a nice side effect.

Offline

#3 2013-06-17 20:07:57

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: iproute2 / dhcpcd / eth0 connection issue

Is the IP you get in Arch 'sane', ie. identical/similar to what you get in Ubu/Win?

If so, it seems like a routing* issue rather than a connection issue. Check /etc/resolv.conf and do some route*-related troubleshooting (s/a traceroute).

* maybe wrong terminology, I'm no network guru.


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#4 2013-06-18 14:53:30

eldubsports
Member
Registered: 2010-10-30
Posts: 11

Re: iproute2 / dhcpcd / eth0 connection issue

Thanks for the feedback and suggestions. Disabling ipv6 didn't resolve the issue, and noipv4ll is disabled. It seems that alphaniner may be correct about this being a routing issue. The nameserver and domain for /etc/resolv.conf in Ubuntu and Arch were the same, but the routes are different...below are the outputs for ip route show and route in both Ubuntu and Arch, respectively:

Ubuntu Outputs wrote:

$ ip route show
default via 10.30.10.2 dev eth0  proto static
10.30.0.0/17 dev eth0  proto kernel  scope link  src 10.30.40.59  metric 1
169.254.0.0/16 dev eth0  scope link  metric 1000

$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         10.30.10.2      0.0.0.0         UG    0      0        0 eth0
10.30.0.0       *               255.255.128.0   U     1      0        0 eth0
link-local      *               255.255.0.0     U     1000   0        0 eth0

Arch Outputs wrote:

$ip route show
default via 10.30.10.2 dev eth0  metric 202
10.30.0.0/17 dev eth0  proto kernel  scope link  src 10.30.40.59  metric 202

$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         10.30.10.2      0.0.0.0         UG    202    0        0 eth0
10.30.0.0       *               255.255.128.0   U     202    0        0 eth0

Admittedly, I'm not much of a network expert, but from what I've read, Metrics > 16 usually means the connection is garbage. I imagine something is going on to cause this, but I have no idea what.

Last edited by eldubsports (2013-06-18 15:04:34)

Offline

#5 2013-06-18 17:45:33

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: iproute2 / dhcpcd / eth0 connection issue

Unfortunately I tapped the full depths of my networking-knowledge with the route suggestion.

If you're lucky fukwai2 will chime in, he'd have you sorted in a jiff.


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

Board footer

Powered by FluxBB