*My apologies, the formatting of my diagram got messed up after I sent it. I think it still gets the point across thought, vm1 and vm2 are connected to br0 and vm3 is connected to br1.

@Martin: I see. Do you know if anyone has tried this before?

Something I'm a bit confused about: When you plug an Ethernet cable into a router, the router's NIC has an IP address. In the case of Open vSwitch, does that interface correspond to the IP address of the bridge?

-Derek

On 11/10/2010 12:17 PM, Martin Casado wrote:
On 11/9/10 6:43 PM, Derek Cormier wrote:
Hello,

I was wondering how I can make Open vSwitch function as a router with my current configuration. I'll explain what I have set up:

             Open vSwitch (vm)
|-------------------------------------------------|
|       _(.1.100)_    _(.2.100)_       |
|____|     br0    |__|    br1     |____|
            /      \              |
        vm1   vm2       vm3
       (.1.1)  (.1.2)      (.2.1)

Open vSwitch is running inside of a virtual machine. I am using VirtualBox for my machines (Ubuntu) and NOX for a controller (with pyswitch). The Switch VM has three ports connecting to three host virtual machines vm1, vm2, and vm3. I labelled the IP addresses I assigned the bridges as well as the VM's (only showing the subnet and host IDs). I can ping from one host to another on the same subnet as well as to its bridge. I can from the switch vm to any host. I can also ping a bridge from a host on a different subset (for example, vm1 to br2).

However, I cannot ping from two hosts on different subnets (ex. vm1 to vm3). I want the switch VM to function as a router and forward packets to other networks. Please give me some advice to set me in the right direction, or tell me if my idea is way off on how to do this.

pyswitch is a simple flow-based L2 switch, it doesn't do routing. If you want to do routing, you'll have to implement the functionality yourself. However, that will be a non-trivial amount of work since it is likely you'll have to implement an ARP stack at the controller.







_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss_openvswitch.org

Reply via email to