*BSD News Article 80190


Return to BSD News archive

From: Pascal.Gienger@uni-konstanz.de (Pascal.Gienger)
Subject: Re: How to set gateway
Newsgroups: comp.unix.bsd.freebsd.misc
References: <53b5u5$b2g@info.nask.pl>
Lines: 28
X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
Message-ID: <325a0e1f.0@finesse.isdn.uni-konstanz.de>
Date: 8 Oct 96 08:17:35 GMT
NNTP-Posting-Host: finesse.isdn.uni-konstanz.de
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.Hawaii.Edu!news.uoregon.edu!newsgate.cuhk.edu.hk!news-hk.gsl.net!news.gsl.net!news-stock.gsl.net!news.gsl.net!news-peer.gsl.net!news.gsl.net!news.sprintlink.net!news-peer.sprintlink.net!uunet!in1.uu.net!fu-berlin.de!news.belwue.de!news.uni-konstanz.de!not-for-mail

Slawomir Stuglik (slawek@belfer.ifpan.edu.pl) wrote:
:   I have 
: I have problem: How to change gateway on FREEBSD 2.1 RELEASE
: I tried route change 148.81.44.0 148.81.44.253 but it does not work?

You mean your default gateway ?

On a running system do a

route delete default
route add default NEWGATEWAY

And look if it's correct with:

netstat -r

Try pinging your new gateway, then various hosts.

If it works, change the "defaultrouter"-entry in /etc/sysconfig.

Pascal
-- 
Pascal.Gienger    Zentrale Rechner Rechenzentrum Universitaet Konstanz
@uni-konstanz.de  Voice: +49 7531 16074   Fax  : +49 7531 20370
                  WWW  : http://www.geocities.com/WestHollywood/1381/
Das Wort "WINDOWS" stammt aus einem alten Sioux-Dialekt und bedeutet:
"Weisser Mann starrt durch Glasscheibe auf Sanduhr." (gefunden in d.c.t.)