Attaching networks to routers
Routers in OpenStack can connect to a single external provider network and one or more tenant networks, as shown in the following diagram:
In Figure 4.3, an external provider network provides external connectivity, while tenant networks provide connectivity to virtual machines and other virtual network devices within a project. The router's job is to facilitate end-to-end connectivity using routes and sometimes the NAT via floating IPs.
The commands necessary to attach a network to a router may vary based on network and need:
- Attaching a router to an external network:
openstack router set --external-gateway <network> ...
Get OpenStack Cloud Computing Cookbook - Fourth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.