[ovs-discuss] VMs in VLAN access internet

Valentin Bud valentin at hackaserver.com
Fri Sep 21 10:02:42 UTC 2012


Hi there,

You have to NAT your private class configured for VM on your public
interface and enable IP forwarding.

Debian/CentOS
# itpables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
# cat > /proc/sys/net/ipv4/ip_forward <<EOF
1
EOF

Of course, I assume eth0 is your public facing interface. You'd have to
configure firewall rules to pass traffic.

Cheers and Good Will,
v

On Fri, Sep 21, 2012 at 12:56 PM, liuxy <liuxy506 at gmail.com> wrote:

> I create two vms and add the vnics to the ovs bridge with VLAN tag=2,
> then  the two vms can communicate to each other,
> but how can the vms access the internet??
> sorry for my poor english.
>
> please help me, thanks a lot!!
> _______________________________________________
> discuss mailing list
> discuss at openvswitch.org
> http://openvswitch.org/mailman/listinfo/discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20120921/72ae9bd7/attachment.html>


More information about the discuss mailing list