Custom Search

Tuesday, May 5, 2015

OpenContrail Floating IP and Simple Gateway


Simple gateway let's the virtual machines access underlay network. The access is provided by selective leaking of routes between vrf for virtual network and underlay network. No NAT is involved here.

Floating IP allows a VM to borrow IP address from another network. 1:1 NAT is done by vrouter for communication between VM and the borrowed virtual network.

http://lists.opencontrail.org/pipermail/users_lists.opencontrail.org/2014-March/000181.html


create_floating_pool.py
https://raw.githubusercontent.com/Juniper/contrail-controller/master/src/config/utils/create_floating_pool.py

use_floating_pool.py
https://raw.githubusercontent.com/Juniper/contrail-controller/master/src/config/utils/use_floating_pool.py

Demo command
https://github.com/Juniper/contrail-controller/blob/master/src/config/utils/demo_cmds.sh

Example:
#python provision_control.py --api_server_ip 10.140.218.12 --api_server_port 8082 --host_name JioCloud-dev-net-19 --host_ip 10.140.218.19 --router_asn 64512

#python provision_mx.py --api_server_ip 10.140.218.12 --api_server_port 8082 --router_name mx1 --router_ip 10.140.218.105 --router_asn 64512

#python use_floating_pool.py --project_name default-domain:admin --floating_ip_pool_name default-domain:admin:public:pub_fip_pool --api_server_ip 10.140.218.12 --api_server_port 8082 --admin_user admin --admin_password contrail123 --admin_tenant_name admin



No comments:

Post a Comment