vnc 2nd network route

askubuntu.com

  1. In the network-manager icon at the top-right of the screen click in Open Edit Connections... and then Add and select Ethernet

  2. In the ethernet tab select your network device (enps025 in my case)

  3. Go to IPv4 Settings tab, select manual as method, click in add and fill in the address, netmask and gateway of your internet network. Also fill in DNS servers field if necessary. Save the settings.

  4. Open Edit Connections... again and then Add and select VLAN.

  5. In the VLAN tab fill in the parent interface field with your network device (enps025(XX.XX.XX.XX) in my case). Also fill in your VLAN id.

  6. Then go to IPv4 Settings tab, method = manual, fill in all the field of the network that you are going to use (address,netmask,gateway,dns..).

  7. Finally specify the routes that you want to use through the VLAN network to get access to your servers by clicking in routes in the IPv4 Settings tab. Do not forget to click the option Use this connection only for resources on its network. Save and that's it!!

You can check the network interfaces doing ifconfig. In my case I can see enps025 as the interface for getting internet access and enps025.32 as the vlan interface (32 in the vlan id in my case). If you want to check your routes you can do it by doing netstat -nr

Also it is possible to check/edit the network setting from the command line by editing the files located in /etc/NetworkManager/system-connections/