You are not logged in.
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
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
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
Replace:
nameserver <192.168.76.1>
with:
nameserver 192.168.76.1
Offline
.....
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
ok thanks it works now
Offline