vinfra service compute router iface add
Add an interface to a virtual router:
usage: vinfra service compute router iface add [--ip-address <ip-address>] --interface <network> router
--ip-address <ip-address>
- IP address
--interface <network>
- Network name or ID
router
- Virtual router name or ID
Example:
# vinfra service compute router iface add myrouter --interface private2 \ --ip-address 192.168.30.3 +--------------------------------------+-------------+-----------------+--------+ | network_id | is_external | ip_addresses | status | +--------------------------------------+-------------+-----------------+--------+ | 720e45bc-4225-49de-9346-26513d8d1262 | True | - 10.94.129.76 | ACTIVE | | e6f146ce-a6d0-48b2-9e4f-64a128ce97ae | False | - 192.168.128.1 | ACTIVE | | 86803e07-a6d7-4809-9566-1cbe4a89adfd | False | - 192.168.30.3 | DOWN | +--------------------------------------+-------------+-----------------+--------+
This command adds an interface from the virtual network private2
to the virtual router myrouter
with the IP address 192.168.30.3
.