[ovs-discuss] How to access the Internet via OVS

Ben Pfaff blp at nicira.com
Thu Jul 31 15:23:49 UTC 2014


On Thu, Jul 31, 2014 at 02:11:54PM +0100, Bruce SUN wrote:
> I run an Openvswith and a controller on the VM. The switch has two ports
> connecting two virtual hosts. Eth0 of VM is an interface which can access
> the Internet.
> I am going to add eth0 (interface to internet) into the openvswitch and
> expect that one virtual host can access the internet  as follows:
> 
> ovs-vsctl add-port s1 eth0
> 
> Howerver, after adding eth0 into to the openvswitch, both VM and openvsiwth
> can not access the Internet.
> 
> As s physical Ethernet device that is part of an Open vSwitch bridge should
> not have an IP address.
> I try to fix the like this
> 
>        ifconfig eth0 0.0.0.0
>        ifconfig s1 10.0.2.15
> 
> But it still does't work.
> 
> Could you tell me how to access the Internet via OVS network?

You probably need to add a default route.



More information about the discuss mailing list