You are not logged in.

#1 2007-09-02 15:28:31

tntcoda
Member
Registered: 2007-07-24
Posts: 115

Internet Issues

Hi,

Im having some problems on a fresh install of arch with connecting to the internet, I connect to the interent through a router (192.168.1.1) and im pretty sure i have configured everything correctly.

Network section of /etc/rc.conf:

lo="lo 127.0.0.1"
eth0="eth0 192.168.1.20 netmask 255.255.255.0 broadcast 192.168.1.255"

INTERFACES=(lo eth0)

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

resolv.conf:

nameserver (ISP_DNS_IP_HERE_PRIMARY)
nameserver (ISP_DNS_IP_HERE_SECONDARY)
nameserver 192.168.1.1

With the above config i can ping machines on my LAN fine, but i cant connect to the internet,

]# ping google.com
connect: Network is unreachable

However, if i switch to using dhcp everything works fine, and dhcp configures resolv.conf the same as it is with my static ip settings.

Any ideas on how i can get it working using 192.168.1.20 as the IP instead of using dhcp?

Thanks,
Jack

Offline

#2 2007-09-02 15:34:14

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,019

Re: Internet Issues

Look at ROUTES. "!" denotes that gateway route is _disabled_.

Last edited by lucke (2007-09-02 15:34:35)

Offline

#3 2007-09-02 15:39:52

tntcoda
Member
Registered: 2007-07-24
Posts: 115

Re: Internet Issues

Thanks, that fixed it. Knew it was a silly mistake sad

Offline

Board footer

Powered by FluxBB