[ovs-discuss] add a physical interface to ovs instead of a tap

Anand Nande anande at redhat.com
Sun Dec 13 11:14:25 UTC 2015


Reading your comments, I believe you already have a ovsDB on your PC.
I would recommend to delete that first (as you have not stated which 
bridge the ethX interfaces
belong to, else we could have simply decoupled them from their 
respective bridges using del-port)

# rm -f /etc/openvswitch/conf.db
# systemctl restart openvswitch

NOTE: The above actions will remove any configuration that was 
previously done
       by you while adding the interfaces to the VM.

Now lets create an Overlay network thats agnostic to your network 
between laptop:PC.

On your PC and Laptop:
======================

(on pc) # ovs-vsctl add-br vswitch
         # ovs-vsctl add-port vswitch vxlan1 -- set Interface vxlan1 
type=vxlan option:remote_ip=<ip.addr.of.eth0.onLaptop>

(laptop)# ovs-vsctl add-br vswitch
         # ovs-vsctl add-port vswitch vxlan1 -- set Interface vxlan2 
type=vxlan option:remote_ip=<ip.addr.of.ethPci.onPC>

You can then add your VM interfaces to this OVS bridge.

On 12/10/2015 12:05 AM, Hassan Samii wrote:
> Hi,
> I've manage to set up a classic ovs envronment with 2 guests running 
> on virtualbox connected to ovs on the host and it works fine.
>
> -------------------------
> |                    |
> |     |VM1|  |VM1|      |
> --------|--------|-------
> |      ovs             |
> -------------------------
>
> Im wondering if its possible to do a slightly different thing:
> I have a pc which has 2 physical network cards (ethInt and ethPci).
> A laptop that has 1 network card and need to act as a simple host.
> I want to configure ovs on the pc such that:
> - on one hand i can go to the internet
> - on the other hand, i can have a different subnet between pc and 
> laptop and ping each other.
>
>
>               pc   laptop
>          ---------------------------------  -----------------
>          |                                        |          |         
>            |
>   internet -----| ethInt        ovs        ethPci |---------------| 
> eth0             |
>          |                                        |          |         
>            |
>          ---------------------------------  -----------------
>
>
> If its possible please show me how.
> Thanks!
>  Hassan
>
>
> _______________________________________________
> 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/20151213/c49009f1/attachment-0002.html>


More information about the discuss mailing list