You are not logged in.

#1 2012-03-04 19:13:47

permnoob
Member
Registered: 2012-03-04
Posts: 7

LAN issue, network is unreachable

just did a fresh install of arch linux, walking away from ubuntu as they have started making some odd decisions on what is not customizable anymore.  Anyways right out of the box i am having an issue with my LAN, there is no wireless on the laptop i am installing on, an old toshiba satellite.  I plan to use a static IP, but right now for simplicity i am sticking with DHCP.  I am plugged directly into my modem, which works on another machine fine, solid orange and green lights

/etc/rc.conf (all uncommented networking lines)

HOSTNAME="lazarus"
interface=eth0
address=
netmask=
broadcast=
gateway=

NETWORK_PERSIST="no"

/etc/hosts

127.0.0.1 localhost.localdomain localhost lazarus
::1 localhost.localdomain localhost

the error I get is
connect: network is unreachable

my other laptop i am on right now is happily connected on the exact same cable i was trying with, ip is 10.42.43.1
any help would be appreciated, and yes the LAN worked under ubuntu

Offline

#2 2012-03-04 20:08:25

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: LAN issue, network is unreachable

Was eth0 assigned an IP address?

ip addr show dev eth0

If so, do you have any dns servers in /etc/resolv.conf


Website - Blog - arch-home
Arch User since March 2005

Offline

#3 2012-03-04 21:14:50

permnoob
Member
Registered: 2012-03-04
Posts: 7

Re: LAN issue, network is unreachable

output from ip addr show dev eth0

2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000 link/ether 00:10:a4:96:d6:96 brd ff:ff:ff:ff:ff:ff

so i guess no?  no difference if the cable is plugged in or not

Offline

#4 2012-03-04 21:17:25

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,823

Re: LAN issue, network is unreachable

As a sanity check, what happens if you run dhcpcd eth0 as root ?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#5 2012-03-04 22:44:45

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: LAN issue, network is unreachable

Do as ewaller stated. If it doesn't say timed out. Verify connectivity, if connectivity fails, rerun the ip addr show dev eth0 command.


Website - Blog - arch-home
Arch User since March 2005

Offline

#6 2012-03-05 05:08:58

permnoob
Member
Registered: 2012-03-04
Posts: 7

Re: LAN issue, network is unreachable

well that seems to have fixed everything.  now to go figure out what on earth I just did.  trying to really get a better handle on this linux thing.   6 years of ubuntu does not a capable user make

Offline

#7 2012-03-05 05:22:41

permnoob
Member
Registered: 2012-03-04
Posts: 7

Re: LAN issue, network is unreachable

a quick psuedo output of what happens, since reading up on this is telling me I am manually doing what the machine should be doing automagically based on my rc.conf

dhcpcd[617]: version 5.2.12 starting
dhcpcd[617]: broadcasting for a lease
dhcpcd[617]: offered 192.168.15.169 from 192.168.15.1
dhcpcd[617]: acknowledged 192.168.15.169 from 192.168.15.1
dhcpcd[617]: checking for 192.168.15.169
dhcpcd[617]: leased 192.168.15.169 for 84600 seconds
/usr/lib/dhcpcd/dhcpcd-hooks/30-hostname: line 9: hostname: command not found
/usr/lib/dhcpcd/dhcpcd-hooks/30-hostname: line 24: hostname: command not found
dhcpcd[617]: forked to background, child pid 639

is this because inetutils does not seem to be installed? hostname afaik is a function from inetutils, which i don't seem to have, as I can't set my hostname using the command line.  stabbing in the dark here, is that package on my install CD? pacman is new to me, only ever used apt

Offline

#8 2012-03-05 05:37:17

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,546

Re: LAN issue, network is unreachable

Offline

#9 2012-03-05 05:56:13

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,823

Re: LAN issue, network is unreachable

Yeah, the command I gave you is a pretty sure fire way to quickly see if everything is working.  What you are no doubt missing is in the /etc/rc.conf file, in the DAEMONS array, you will want to add network.

See https://wiki.archlinux.org/index.php/Daemons

If, however, you want to use wicd or Networkmanager instead of network, those will want to be in the DAEMONS array instead.

https://wiki.archlinux.org/index.php/Wicd
https://wiki.archlinux.org/index.php/NetworkManager

Edit: Oh, and: https://wiki.archlinux.org/index.php/Co … ng_Network

Last edited by ewaller (2012-03-05 05:58:04)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB