= MidoNet Host Registration

. *Launch MidoNet CLI*
+
====
[source]
----
$ midonet-cli
midonet>
----
====

. *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':
+
====
[source]
----
midonet> tunnel-zone create name tz type vxlan
tzone0
----
====
+
To use the GRE protocol, create the tunnel zone with type 'gre':
+
====
[source]
----
midonet> tunnel-zone create name tz type gre
tzone0
----
====

. *Add hosts to tunnel zone*
+
====
[literal,subs="quotes"]
----
midonet> list tunnel-zone
tzone tzone0 name tz type vxlan

midonet> list host
host host0 name *_network_* alive true
host host1 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 Host Registration

. *Launch MidoNet CLI*
+
====
[source]
----
$ midonet-cli
midonet>
----
====

. *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':
+
====
[source]
----
midonet> tunnel-zone create name tz type vxlan
tzone0
----
====
+
To use the GRE protocol, create the tunnel zone with type 'gre':
+
====
[source]
----
midonet> tunnel-zone create name tz type gre
tzone0
----
====

[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.

. *Add hosts to tunnel zone*
+
====
[literal,subs="quotes"]
----
midonet> list tunnel-zone
tzone tzone0 name tz type vxlan

midonet> list host
host host0 name *_network_* alive true
host host1 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_*
----
====

Add a note to allow traffic for GRE/VXLAN
Add a note to allow traffic for GRE/VXLAN

Change-Id: Iecefb2704caf88acfffef6e34e9d38940f6aa47d
Signed-off-by: Fernando Moreno <ec3e661d7bc7bfbf5334e7dfad309f947dace5f7@midokura.com>
Signed-off-by: Jan Hilberath <14e793d896ddc8ca6911747228e86464cf420065@midokura.com>
