You are not logged in.

#1 2008-05-07 19:23:42

radoscak
Member
Registered: 2008-05-07
Posts: 20

Internet connection work only after manual: route add default gw???

Internet connection work only after manual: route add default gw, how to change it to permanent?

here are screens of my settings, ip: 192.168.76.99, subnet mask: 255.255.255.0, default gateway: 192.168.76.1, DNS 192.168.76.1
http://img387.imageshack.us/img387/1410/dsc05584ot3.jpg
http://img413.imageshack.us/img413/305/dsc05586xd3.jpg
http://img501.imageshack.us/img501/8536/77609853ea5.jpg

the internet connection work only after route add 192.168.76.1 dev eth0, and the internet connection work but i cant use pacman -Suy(it writes some errors)
After restart I must again add default gateway mannualy
How to make it permanent?

Offline

#2 2008-05-07 20:17:22

arlite
Member
From: .de
Registered: 2008-05-02
Posts: 31

Re: Internet connection work only after manual: route add default gw???

My /etc/rc.conf contains these two lines to set the router as a gateway:

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

You should have similiar lines in your rc.conf. Default setting disables gateway with an exclamation mark  -- ROUTES=(!gateway) -- remove it.

Regards

Offline

#3 2008-05-08 09:46:01

radoscak
Member
Registered: 2008-05-07
Posts: 20

Re: Internet connection work only after manual: route add default gw???

this is my /etc/rc.conf

LOCALE="en_US.utf8"
HARDWARECLOCK="localtime"
USEDIRECTISA="yes"
TIMEZONE="Canada/Pacific"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"


MOD_AUTOLOAD="yes"

MODULES=(slhc tg3 ipw2200 snd-mixer-oss snd-pcm-oss snd-hwdep snd-page-alloc snd-pcm snd-timer snd snd-hda-intel soundcore)

USELVM="no"

HOSTNAME="r-c-laptop"

eth0="eth0 192.168.76.99 netmask 255.255.255.0 broadcast 192.168.76.255"
INTERFACES=(eth0)

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

DAEMONS=(syslog-ng network netfs crond)

Offline

#4 2008-05-08 09:49:22

Gruntz
Member
From: Haskovo, Bulgaria
Registered: 2007-08-31
Posts: 291

Re: Internet connection work only after manual: route add default gw???

Replace:
nameserver <192.168.76.1>
with:
nameserver 192.168.76.1

Offline

#5 2008-05-08 10:19:03

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Internet connection work only after manual: route add default gw???

radoscak wrote:

.....
eth0="eth0 192.168.76.99 netmask 255.255.255.0 broadcast 192.168.76.255"
INTERFACES=(eth0)

gateway="default gw 192.168.76.1"
ROUTES=(192.168.76.1)
....

replace ROUTES with

ROUTES=(gateway)

and do what Gruntz said about /etc/resolv.conf
next time read: http://wiki.archlinux.org/index.php/Net … _Static_IP

Last edited by wonder (2008-05-08 10:21:48)


Give what you have. To someone, it may be better than you dare to think.

Offline

#6 2008-05-08 10:40:29

radoscak
Member
Registered: 2008-05-07
Posts: 20

Re: Internet connection work only after manual: route add default gw???

ok thanks it works now

Offline

Board footer

Powered by FluxBB