Configuring an L2 gateway

Use this procedure to configure an L2 gateway.

Below is an example of a configuration showing how to use the MidoNet CLI to replicate the topology shown in Figure 16.1, “Topology with VLANs and L2 Gateway”.

  1. Create the VAB and two ports configured with the appropriate VLAN IDs:

    midonet> bridge create name vab
    midonet> bridge bridge0 port add vlan 8
    bridge0:port0
    midonet> bridge bridge0 port add vlan 5
    bridge0:port1
  2. Create the two VUBs and their virtual ports:

    midonet> bridge add name vub-8
    bridge1
    midonet> bridge add name vub-5
    bridge2
    midonet> bridge bridge1 port add
    bridge1:port0
    midonet> bridge bridge2 port add
    bridge2:port0
  3. Link the ports:

    midonet> bridge bridge0 port port0 set peer bridge1:port0
    midonet> bridge bridge0 port port1 set peer bridge2:port0
  4. Add the VAB’s trunk ports:

    midonet> bridge bridge0 port add
    bridge0:port2
    midonet> bridge bridge0 port add
    bridge0:port3
  5. Assuming that there are two interfaces, host0:eth0 and host1:eth1, connected to the physical switches' trunks, bind them to the VAB’s trunk ports:

    midonet> host host0 binding add interface eth0 port bridge0:port2
    midonet> host host1 binding add interface eth1 port bridge0:port3
Questions? Discuss on Mailing Lists or Chat.
Found an error? Report a bug.


loading table of contents...