Updated on 25.5.2023

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.

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.

SDN Router list

Then name your new router and click the Create SDN Router button to confirm.

Creating new SDN Router

Your new router will then appear on the list.

Attaching networks

Once you’ve created your first SDN Router, you can begin attaching SDN Private Networks. If you haven’t yet configured any SDN Private Networks, check out our tutorial on how to get started.

Click on the SDN Router you wish to use to connect your private networks.

New SDN Router

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.

SDN Router details

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.

Attaching private network to SDN Router

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.

Private networks attached to SDN Router

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.

ip route
... via dev eth3 dev eth3 proto kernel scope link src

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.

Detaching networks

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 in 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.

Detach network from SDN Router

Then click the Detach button in the following window to confirm.

Confirm detaching network from SDN Router

The selected network will then have been detached from your router.

Janne Ruostemaa


Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top