Add a gateway

Kevin D. Kinsey, DaleCo, S.P. kdk at daleco.biz
Thu Mar 11 14:55:49 PST 2004


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 at freebsd.org mailing list
>>>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>>>To unsubscribe, send any mail to 
>>>      
>>>
>>"freebsd-questions-unsubscribe at 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


More information about the freebsd-questions mailing list