Attaching internal interfaces to routers

To create an internal router interface and attach it to a subnet, use the openstack router add subnet command shown here:

openstack router add subnet <router> <subnet> 

The subnet&amp;nbsp;argument represents a subnet name or ID to be attached to the router. Neutron will assign the gateway IP of the subnet to the router when creating the qr interface and corresponding port.

To attach an existing port directly to the router, use the openstack router add port command shown here:

openstack router subnet add <router> <port> 

The port keyword represents a port name or ID to be attached to the router.

A Neutron router can only have one interface in a given subnet, but can be attached to multiple subnets ...

Get Learning OpenStack Networking - Third 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.