You are not logged in.

#1 2009-11-06 15:04:50

34Hyperion
Member
From: Germany, Regensburg
Registered: 2009-11-06
Posts: 17

network is unreachable

Hello Folks

Im trying now since 2 days to get a connection. And yes I also asked the board search, more than once.
Heres my problem

ping google.com
unknown host google.com

ping myrouter
Network is unreachable

ping 127.0.0.1
WORKS

I put in my gateway adress in the rc.conf already and set up the dhpc thing.


I think he just cant load my networkcard module and i dont know what i need.

btw hwdetect isnt working

*EDIT1*

# ifconfig eth0
gives
UP BROADCAST MULTICAST ...

shouldent there be RUNNING MULTICAST??

and

route -n

Destination Gateway Genmask Flags Metric Ref Use Iface

Last edited by 34Hyperion (2009-11-06 15:15:24)

Offline

#2 2009-11-06 15:22:03

otisranson
Member
Registered: 2008-01-31
Posts: 33

Re: network is unreachable

These lines are in your /etc/rc.conf?

eth0="dhcp"
INTERFACES=(eth0)

Also try

dhcpcd eth0

What is the FULL output of

ifconfig -a

Thanks!

Last edited by otisranson (2009-11-06 15:23:05)

Offline

#3 2009-11-06 15:24:31

grey
Member
From: Europe
Registered: 2007-08-23
Posts: 679

Re: network is unreachable

Could you post the whole output of ifconfig eth0?

For me it does say "UP BROADCAST RUNNING MULTICAST".


Good ideas do not need lots of lies told about them in order to gain public acceptance.

Offline

#4 2009-11-06 15:27:28

robertp
Member
From: Warszawa, Poland
Registered: 2007-09-11
Posts: 123

Re: network is unreachable

As I see you have no routes defined (amongs others I guess). Try setting DHCP as otisranson pointed. Don't forget to add network to DAEMONS list. Also check cabling.
If the problem remain, please post the /etc/rc.conf file and FULL output of command:
ifconfig -a

Last edited by robertp (2009-11-06 15:28:17)

Offline

#5 2009-11-06 15:32:34

34Hyperion
Member
From: Germany, Regensburg
Registered: 2009-11-06
Posts: 17

Re: network is unreachable

ifconfig eth0

Link encap:Ethernet HWaddr 00:17:31:37:CE:6A
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errsors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
colisions:0 txqueulen:1000
RX bytes:0 (0.0 b) TX bytes :0 (0.0 b)

thanx so far ... really fast

EDIT:

cablink is okay, checked t and it worked with SUSE only a few hours ago

Last edited by 34Hyperion (2009-11-06 15:36:51)

Offline

#6 2009-11-06 15:39:35

34Hyperion
Member
From: Germany, Regensburg
Registered: 2009-11-06
Posts: 17

Re: network is unreachable

Sorry for the question, whats an otisransion point

Offline

#7 2009-11-06 15:56:12

otisranson
Member
Registered: 2008-01-31
Posts: 33

Re: network is unreachable

34Hyperion wrote:

Sorry for the question, whats an otisransion point

He's talking about my previous post. big_smile

Try these steps:

$ /etc/rc.d/network start
$ dhcpcd eth0
$ ifconfig eth0

Now, check that you have this in your /etc/rc.conf file:

$ cat /etc/rc.conf

At the bottom your should see something like this:

DAEMONS=( ... network ... )

Make sure the network is defined in the daemons list.

Last edited by otisranson (2009-11-06 15:58:48)

Offline

#8 2009-11-06 16:05:53

34Hyperion
Member
From: Germany, Regensburg
Registered: 2009-11-06
Posts: 17

Re: network is unreachable

# nano /etc/rc.conf

LOCALE="de-DE:utf8
HARDWARECLOCK="localtime"
TIMEZONE="Europe/Berlin"
KEYMAP="de-LATIN1-nodeadkeys"
CONSOLEFONT="lat0_08"
CONSOLEMAP=
USECOLOR="yes"


#HARDWARE

MOD-AUTOLOAD="yes"
MODULES=()

USELVM="no"


#NETWORKING

HOSTNAME="archlinux

lo="lo 127.0.0.1"
eth1="dhcp"
eth0="dhcp"
INTERFACES=(lo eth0)



DAEMONS

DAEMONS=(@syslog-ng @netork !ntfs @crond)

Offline

#9 2009-11-06 16:07:29

34Hyperion
Member
From: Germany, Regensburg
Registered: 2009-11-06
Posts: 17

Re: network is unreachable

Oh Kay. big_smile

Its your name, sorry, didn't recognize it. i thought its an phrase:rolleyes:

Last edited by 34Hyperion (2009-11-06 16:10:26)

Offline

#10 2009-11-06 16:08:19

otisranson
Member
Registered: 2008-01-31
Posts: 33

Re: network is unreachable

Ha, yea.  Ok smile

.
.
.
.
#Static IP example
#eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
eth0="dhcp"
INTERFACES=(eth0)
 
.
.
.
.


# -----------------------------------------------------------------------
# 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 netfs crond hal network sshd )

You don't need "lo" in the INTERFACES line. Remove it.

Also remove the "@" from the daemons.  Then reboot.

Last edited by otisranson (2009-11-06 16:11:02)

Offline

#11 2009-11-06 16:10:59

34Hyperion
Member
From: Germany, Regensburg
Registered: 2009-11-06
Posts: 17

Re: network is unreachable

Starting network timedout sad

dhcpd eth0:
waiting for carrier...timedout

Last edited by 34Hyperion (2009-11-06 16:12:15)

Offline

#12 2009-11-06 16:16:37

sHyLoCk
Member
From: /dev/null
Registered: 2009-06-19
Posts: 1,197

Re: network is unreachable

34Hyperion

In your daemons array:
@netork

make it:
@network


~ Regards,
sHy
ArchBang: Yet another Distro for Allan to break.
Blog | GIT | Forum (。◕‿◕。)

Offline

#13 2009-11-06 16:20:35

34Hyperion
Member
From: Germany, Regensburg
Registered: 2009-11-06
Posts: 17

Re: network is unreachable

Its already network. It was only a typo.

Offline

#14 2009-11-06 16:22:15

sHyLoCk
Member
From: /dev/null
Registered: 2009-06-19
Posts: 1,197

Re: network is unreachable

What sort of connection is this? Do you need pppoe?


~ Regards,
sHy
ArchBang: Yet another Distro for Allan to break.
Blog | GIT | Forum (。◕‿◕。)

Offline

#15 2009-11-06 16:23:23

grey
Member
From: Europe
Registered: 2007-08-23
Posts: 679

Re: network is unreachable

dhcp doesn't work for you. Try (as root):

% dhcpcd --debug --debug eth0

and paste the output here.

Last edited by grey (2009-11-06 16:23:42)


Good ideas do not need lots of lies told about them in order to gain public acceptance.

Offline

#16 2009-11-06 16:29:35

ploub
Member
Registered: 2007-05-16
Posts: 132

Re: network is unreachable

I had to give up on dhcpcd - replaced it with dhclient which worked instantly hmm

Offline

#17 2009-11-06 16:34:09

34Hyperion
Member
From: Germany, Regensburg
Registered: 2009-11-06
Posts: 17

Re: network is unreachable

I connect to a router. But what is pppoe (i tried it ... timed out)

Offline

#18 2009-11-06 16:39:06

34Hyperion
Member
From: Germany, Regensburg
Registered: 2009-11-06
Posts: 17

Re: network is unreachable

# dhcpcd --debug -debug eth0

executing '/usr/lib/dhcpcd/dhcpcd-run-hooks', reason PREINIT
executing '/usr/lib/dhcpcd/dhcpcd-run-hooks', reason NOCARRIER
waiting for carrier
...
timed out

Offline

#19 2009-11-06 16:50:52

34Hyperion
Member
From: Germany, Regensburg
Registered: 2009-11-06
Posts: 17

Re: network is unreachable

I tried around a bit and i think the problem is my network card. Furthermore the module, I don't know which module i should use.

Offline

#20 2009-11-06 16:53:00

grey
Member
From: Europe
Registered: 2007-08-23
Posts: 679

Re: network is unreachable

That is the behavior I am getting when the ethernet cable is unplugged.

So your initial idea that the driver for your networkcard isn't loaded looks pretty good now. Are there any error messages under /var/log? Also, which network card do you have?


Good ideas do not need lots of lies told about them in order to gain public acceptance.

Offline

#21 2009-11-06 17:28:53

34Hyperion
Member
From: Germany, Regensburg
Registered: 2009-11-06
Posts: 17

Re: network is unreachable

No error messages so far.
I think i have a Realtek Card(, but I'm not sure.)

Offline

#22 2009-11-06 17:39:37

34Hyperion
Member
From: Germany, Regensburg
Registered: 2009-11-06
Posts: 17

Re: network is unreachable

# dhcpcd eth1

version 5.1.1 starting
broadcasting for a lease
offered 192.168.178.27 from 192.168.178.1
acknowledged the ones above
checked for 192.168.178.27
leased 192.168.178 for 864000 seconds


AND

# ifconfig eth1

...
UP BROADCAST RUNNING MULTICAST
RX packets:4  errors:0 ... (all 0)
TX packets:7
RX bytes 1300 (1.2Kb's) TX bytes 986 (986.0 b's)

Its working on eth1 now

I try a reboot now

Last edited by 34Hyperion (2009-11-06 17:51:47)

Offline

#23 2009-11-06 17:39:59

otisranson
Member
Registered: 2008-01-31
Posts: 33

Re: network is unreachable

34Hyperion wrote:

No error messages so far.
I think i have a Realtek Card(, but I'm not sure.)

# lspci | grep Ethernet
04:07.0 Ethernet controller: Broadcom Corporation BCM4401-B0 100Base-TX (rev 02)

That will tell you. 

You might want to look at this to help you. Arch Wiki

Offline

#24 2009-11-06 17:58:02

34Hyperion
Member
From: Germany, Regensburg
Registered: 2009-11-06
Posts: 17

Re: network is unreachable

After I had rebooted I lost the connection.

It was workng after I tried this:

otisranson wrote:

Ha, yea.  Ok



Code:
.
.
.
.
#Static IP example
#eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
eth0="dhcp"
INTERFACES=(eth0)

.
.
.
.


# -----------------------------------------------------------------------
# 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 netfs crond hal network sshd )
You don't need "lo" in the INTERFACES line. Remove it.

Also remove the "@" from the daemons.  Then reboot.

But now i have the same as before.

Offline

#25 2009-11-06 18:02:51

34Hyperion
Member
From: Germany, Regensburg
Registered: 2009-11-06
Posts: 17

Re: network is unreachable

Yehaaa, I got it now.
Thanks a lot guys.

Now I have only a little problem left.
If I want a Internet connection I have to type in dhcpcd eth0. What can I do to get it automatically?

You eally saved my day big_smile


P.S. should I write what exactly I had done. perhaps for people who have the same problem???

Last edited by 34Hyperion (2009-11-06 18:20:26)

Offline

Board footer

Powered by FluxBB