You are not logged in.

#1 2007-05-26 03:19:17

slimdog360
Member
Registered: 2007-04-28
Posts: 16

network is unreachable

I've been at this for the third weekend in a row now and still can't get it. I've read all the previous posts, read the wiki, read everything but my network still isn't working. I can install arch easily enough (nice job with the new installer) but like I said, I can't get the network.
        I've got a four port modem/router and have a static ip. According to the wiki and the other posts I've read my rc.conf file is setup correctly (I think). Straight after an install of arch I try the following 'pacman -Sy'
then it comes back saying

current locale is invalid...
...
error:failed to synchronize current: Transient resolver failure

and basically continues on like this, saying failed to synchronize, for another 6-7 lines.

When I try 'ping 192.168.1.1' It comes back with

connect: Network is unreachable

The relevant bit from my rc.conf file

lo="lo 127.0.0.1"
eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
INTERFACES=(lo eth0)

gateway="default gw 192.168.0.1"
ROUTES=(!gateway)

Because I don't have the net working I can't 'pacman' and graphical interface yet so I'm still on the command line making it difficult to copy everything down here. Any help would be fantastic, thanks.

Last edited by slimdog360 (2007-05-26 03:20:44)

Offline

#2 2007-05-26 03:55:26

nikron
Member
Registered: 2007-05-15
Posts: 130

Re: network is unreachable

What's the output of 'route' by itself?

You can try

router add default gw 'yourgateway'

Offline

#3 2007-05-26 04:28:11

slimdog360
Member
Registered: 2007-04-28
Posts: 16

Re: network is unreachable

output of route

Destination    Gateway   Genmask          Flags  Metric  Ref   Use  Iface
192.168.0.0    *        255.255.255.0     U      0       0      0    eth0

Im not to sure what you meant with that whole "router add default gw 'yourgateway'" thing.

Last edited by slimdog360 (2007-05-26 04:30:55)

Offline

#4 2007-05-26 04:38:42

nikron
Member
Registered: 2007-05-15
Posts: 130

Re: network is unreachable

I meant you should add your gateway to the route.  I don't know what your setup is, in mine, my router had an IP address of 192.168.2.1, so to get the network
working a the first time I booted up into arch is to add the gateway using

route add default gw 192.168.2.1


By the way, you're problem is probably your /etc/resolv.conf

Offline

#5 2007-05-26 05:08:48

slimdog360
Member
Registered: 2007-04-28
Posts: 16

Re: network is unreachable

everything in my /etc/resolve.conf file is commented out, I tried changing it to look like

nameserver 192.168.1.1

but it didn't make any difference.

That route add default gw 192.168.1.1 didn't work either. It still just gives me the same output.

Offline

#6 2007-05-26 07:28:58

Negher
Member
From: Italy
Registered: 2005-03-03
Posts: 17
Website

Re: network is unreachable

Hi.

Maybe 192.168.1.1 don't work because your network is defined as 192.168.0.x.

Try with:

[root@yourmachine:~ ]# route add default gw 192.168.0.1

to see if it work.


Che cos'e' il genio ? E' fantasia, intuizione, colpo d'occhio e velocita' di esecuzione.

Offline

#7 2007-05-26 13:53:58

sjg
Member
From: UK
Registered: 2007-02-10
Posts: 63

Re: network is unreachable

You need to edit your rc.conf, and change it from:

lo="lo 127.0.0.1"
eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
INTERFACES=(lo eth0)

gateway="default gw 192.168.0.1"
ROUTES=(!gateway)

to

lo="lo 127.0.0.1"
eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
INTERFACES=(lo eth0)

gateway="default gw 192.168.0.1"
ROUTES=(gateway)

i.e. uncomment gateway on the last line.

Offline

#8 2007-05-26 20:27:20

hungsonbk
Member
Registered: 2007-05-26
Posts: 105
Website

Re: network is unreachable

To manage networking in your Linux box, you need to know at least two command as the following:
               1. If you want to set IP address for your PC as 192.168.0.2/24, use this command:
                    #ifconfig eth0 192.168.0.2 netmask 255.255.255.0
               2. If your gateway is 192.168.0.254:
                    #route add default gw 192.168.0.254

If you want to set up DNS server, so that you can access websites, for example:
open /etc/resolv.conf file and add the following entry:
                       nameserver  ip.address.of.dns.server

If there is a dhcp server in your network, the quickest way is:
                 #dhcpcd eth0

Use Ping to troubleshoot the network problem.

Offline

#9 2007-05-27 01:01:06

slimdog360
Member
Registered: 2007-04-28
Posts: 16

Re: network is unreachable

yesssssss, I got it working. Thanks everyone.

Offline

Board footer

Powered by FluxBB