MidoNet Host Registration

  1. Launch MidoNet CLI

    $ midonet-cli
    midonet>
  2. Create tunnel zone

    MidoNet supports the Virtual Extensible LAN (VXLAN) and Generic Routing Encapsulation (GRE) protocols to communicate to other hosts within a tunnel zone.

    To use the VXLAN protocol, create the tunnel zone with type 'vxlan':

    midonet> tunnel-zone create name tz type vxlan
    tzone0

    To use the GRE protocol, create the tunnel zone with type 'gre':

    midonet> tunnel-zone create name tz type gre
    tzone0
[Important]Important

Make sure to allow GRE/VXLAN traffic for all hosts that belong to the tunnel zone. For VXLAN MidoNet uses UDP port 6677 as default.

  1. Add hosts to tunnel zone

    midonet> list tunnel-zone
    tzone tzone0 name tz type vxlan
    
    midonet> list host
    host host0 name controller alive true
    host host1 name gateway1 alive true
    host host2 name gateway2 alive true
    host host3 name compute1 alive true
    
    midonet> tunnel-zone tzone0 add member host host0 address ip_address_of_host0
    zone tzone0 host host0 address ip_address_of_host0
    
    midonet> tunnel-zone tzone0 add member host host1 address ip_address_of_host1
    zone tzone0 host host1 address ip_address_of_host1
    
    midonet> tunnel-zone tzone0 add member host host2 address ip_address_of_host2
    zone tzone0 host host2 address ip_address_of_host2
    
    midonet> tunnel-zone tzone0 add member host host3 address ip_address_of_host3
    zone tzone0 host host3 address ip_address_of_host3
Questions? Discuss on Mailing Lists or Chat.
Found an error? Report a bug.