route

rick norman gumbo_2007 at bsdmail.com
Fri Apr 13 14:33:59 UTC 2007


If I understand your problem, you have three pc's that you would like to be able to route between.
For your 192.168.1.33 box to be able to talk to your 10.0.0.15 box, it needs to have an ip address on the 10.0.0 subnet.
This could be accomplished by adding an alias in the rc.conf, ifconfig_lnc0_alias0=inet 10.0.0.16 netmask 255.255.255.0, 
for instance if your nic is named lnc0. Your 192.168.1.33 box already shares subnet 192.168.1 with your 192.168.1.34 box.
You don't actually need to run a router so you don't need the router_enable option.  You need a gateway_enable option to allow
the box to do ip forwarding.  Both the 10.0.0.15 box and the 192.168.1.34 box need to be told their default router via a defaultrouter option
such as, defaultrouter="192.168.1.33" in the 192.168.1.34 box.  The 10.0.0.15 option looks like defaultrouter="10.0.0.16".  Assuming
there is connectivity between the three boxes, they should all be able to ping each other.

> ----- Original Message -----
> From: "Miguel Alcántara" <miguel.alc at gmail.com>
> To: faqfreebsd <freebsd-questions at freebsd.org>
> Subject: route
> Date: Thu, 12 Apr 2007 21:55:04 +0000
> 
> hello all the people, i want to configure a freebsd 6.2 as a router, in
> rc.conf added this line
> 
> router_enable="YES"
> 
> it's ip is 192.168.1.33
> 
> then i have two PCs, one with freebsd(10.0.0.15) and another with debian(
> 192.168.1.34), but i can't realize if I must configure something in the
> others two  machines
> the pourpose of this is to get communicated the freebsd(10.0.0.15) with
> debian(192.168.1.34).
> 
> thanks in advance for your help.
> 
> 
> -- $ miguel_alcántara $
> 
> "… empiezo acá con la idea de ir allá en un experimento para aumentar, por
> ejemplo, la velocidad del cable interoceánico del Atlántico; pero cuando he
> llegado en parte a la meta, me encuentro con un fenómeno que me empuja en
> otra dirección [...] hacia algo completamente inesperado".
> 
> Thomas A. Edison.
> 
> _______________________________________________
> 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"

>


-- 
_______________________________________________
Get your free email from http://bsdmail.com


More information about the freebsd-questions mailing list