You are not logged in.
Pages: 1
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
What's the output of 'route' by itself?
You can try
router add default gw 'yourgateway'
Offline
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
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
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
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
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
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
yesssssss, I got it working. Thanks everyone.
Offline
Pages: 1