Skip to content
Snippets Groups Projects

Router page

Merged Josef Němec requested to merge feat/router-configuration into master
6 files
+ 117
59
Compare changes
  • Side-by-side
  • Inline
Files
6
@@ -56,62 +56,3 @@ We can create a virtual network in OpenStack for the project, which can be used
```
Additional subnet configuration is available in [official CLI documentation](https://docs.openstack.org/python-openstackclient/train/cli/command-objects/subnet.html).
## Router Creation
=== "GUI"
Navigate yourself towards **Project > Network > Routers** in the left menu and click on the **Create Router** on the right side of the window.
!!! example
![](/compute/openstack/images/networks/router1.png)
Enter router name and select external gateway with the `-GROUP` suffix.
!!! example
![](/compute/openstack/images/networks/router2.png)
Now you need to attach your internal network to the router.
**1.** Click on the router you just created.
!!! example
![](/compute/openstack/images/networks/router3.png)
**2.** Move to the **Interfaces** tab and click on the **Add interface**.
!!! example
![](/compute/openstack/images/networks/router4.png)
![](/compute/openstack/images/networks/router5.png)
**3.** Select a previously created subnet and submit.
!!! example
![](/compute/openstack/images/networks/router6.png)
=== "CLI"
**1.** **Create router**
```
openstack router create project_router
```
The current router has no ports. We need to create at least 2 interfaces: external and internal).
**2.** **Set external network for the router (select one with `-GROUP`)**
```
openstack router set --external-gateway public-muni-147-251-255-GROUP project_router
```
**3.** **Assign router as a gateway for internal network**
```
openstack router add subnet project_subnet project_router
```
Additional router configuration is available in [official CLI documentation](https://docs.openstack.org/python-openstackclient/train/cli/command-objects/router.html).
Loading