NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: problem with interfaces



On February 23, 2015 9:47:41 PM EST, Ezequiel Reyes Aragon <ezequiel%ecaribe.co.cu@localhost> wrote:
>Hi list,
>I have some NetBSD created in a virtual network with ip: 10.0.0.0/24
>and 
>most of them have 10.0.0.2 (another NetBSD virtual pc) defined as a 
>gateway. This last pc as two interfaces declared, one with 10.0.0.2 for
>
>the internal network it is on, and one with the ip: 192.168.100.9 
>bridged to the real interface on the host machine. From this netbsd 
>gateway I can ping any real machine in the 192.168.100.0/24 network, as
>
>well as any machine in the virtual network, but I can not ping real 
>machines from any other NetBSD virtual pc that use it as their gateway.
>
>I used sysctl in the virtual gateway machine to set ip forwarding = 1.
>Is there something else that needs to be done?
>My intend is to have a virtual network with only netbsd pcs, using one 
>of them as a gateway to the real world via an additional interface in 
>bridge mode.

You probably want to use NAT (see ipnat) to translate those 10.x addresses to a 192.x address.
The other option, if you control everything on the 192.x network, is to tell those hosts the route to 10.x goes through 192.168.100.9.

Eric





Home | Main Index | Thread Index | Old Index