How to connect private networks using SDN Router
Using SDN Private Networks, you have a lot of freedom to configure secure connectivity between your cloud servers. With the introduction of SDN Routers, you can create a gateway between any number of SDN Private Networks within a data centre.
SDN Routers are expanding the customisation possibilities of SDN Private Networking.
Note that the initial open beta version of SDN Routers is the first stage of our routing services and limited to SDN Private Networks within a data centre. A later update will expand the functionality to enable connecting SDN Private Networks across data centres. Get familiar with the feature in preparation for the global connectivity launch!
Deploy new SDN Router
SDN Routers make it very simple to connect existing SDN Private Networks without added complexity or new IP addresses to configure.
Get started by deploying an SDN Router at your UpCloud Control Panel.
Go to the Routers section in the Network menu to find the view of your current SDN Routers. By default, you’ll only see the Utility Router connecting your cloud servers across your whole account.
Click the Create SDN Router button to begin.
Then name your new router and click the Create SDN Router button to confirm.
Your new router will then appear on the list.
Click on your SDN Router you wish to use to connect your private networks.
In the SDN Router view, you can see a couple of details about your router, rename the router as well as attach and detach private networks.
Start connecting networks by clicking the Attach SDN Private Network button.
Then in the following view, select the data centre you want to configure and pick the SDN Private Network from the list. You can also choose whether the router will provide DHCP routes to private networks. If disabled, you will need to configure the routes manually.
Once all set, click the Attach network button to confirm.
Repeat the same to attach any networks you wish to connect together.
The attached SDN Private Networks then appear on the list along with the relevant network information.
Once your private networks are connected via the router, you still need to enable the new route to enable communication between the private networks.
This can be done by logging into the attached cloud servers and running the following commands. Replace the eth3 in the commands with the network interface of your SDN Private Network.
dhclient -r eth3 dhclient eth3
Afterwards, if you run the command below, you should see a new route connecting to the other private network.
... 22.214.171.124/24 via 126.96.36.199 dev eth3 188.8.131.52/24 dev eth3 proto kernel scope link src 184.108.40.206
Repeat these commands on each cloud server you want to use between the private networks.
That’s it! Your cloud servers connected to either private network can now communicate via the router gateway.
When you no longer need to connect a specific SDN Private Network, you can detach it from your router at any point.
To detach a network, go to the SDN Routers list at your UpCloud Control Panel and select your SDN Router.
Click the Detach button on the SDN Private Network you wish to disconnect from the router.
Then click the Detach button in the following window to confirm.
The selected network will then have been detached from your router.