Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Mar 2004 16:55:46 -0600
From:      "Kevin D. Kinsey, DaleCo, S.P." <kdk@daleco.biz>
To:        darryl@osborne-ind.com
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Add a gateway
Message-ID:  <4050EE72.6050301@daleco.biz>
In-Reply-To: <000e01c407ba$9918fe40$0701a8c0@darryl>
References:  <000e01c407ba$9918fe40$0701a8c0@darryl>

next in thread | previous in thread | raw e-mail | index | archive | help
Darryl Hoar wrote:

>>Darryl Hoar wrote:
>>
>>    
>>
>>>Greetings,
>>>I am running FreeBSD 4.7-stable on a computer.  It is 
>>>configured to be my firewall.  My IPS changed the
>>>technology to access my DSL.  How do I define a gateway
>>>for an interface ?
>>>
>>>thanks,
>>>Darryl
>>>_______________________________________________
>>>freebsd-questions@freebsd.org mailing list
>>>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>>>To unsubscribe, send any mail to 
>>>      
>>>
>>"freebsd-questions-unsubscribe@freebsd.org"
>>    
>>
>>>
>>> 
>>>
>>>      
>>>
>>As root:
>>
>>$route add default ip.of.new.gw
>>
>>HTH,
>>
>>Kevin Kinsey
>>DaleCo, S.P.
>>    
>>
>
>Yep, route add default ip.of.new.gw works like a champ.  How do I
>make it perminent ?  Just add the
>defaultgateway="ip.of.new.gw"  ?
>
>thanks,
>Darryl
>
>(ah, 1.5Mb is sooo nice)
>  
>

Kent had that one for you; in /etc/rc.conf:

defaultrouter=ip.of.your.gw

KDK



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4050EE72.6050301>