1
General Discussion / OPNSense on Linode (KVM) - create sub interface and restart network services
« on: November 11, 2016, 04:42:52 pm »
Linode does not officially provide support for any OS other than Linux. Some guides for installation of FreeBSD do exist and the install does work.
I would like to install OPNSense on Linode (KVM) VM in paravirtualized mode.
Linode VMs are provided a public IP (WAN) and and optional private IP. The problem is that a single network interface is used (single MAC). On Linux the public and private IPs are configured as "eth0" network interface and "eth0:1" sub interface.
When OPNSense boots on Linode VM only a single network interface is configured "vtnet0". I can then manually create the sub-interface as follows:
"ifconfig vtnet0.1 create"
I then configure the private IP address as follows:
"ifconfig vtnet0.1 inet 192.168.100.100/17"
If I launch the Web configuration tool, I can see both network interfaces, so I know I'm going in the right direction. My questions are:
1) In OPNSense, how do I manually restart the network and routing services following the creation of the sub-interface and private IP assignment?
2) How do I save the above sub-interface configuration and private IP assignment so that they persist following a reboot?
Any guidance/suggestions appreciated.
I would like to install OPNSense on Linode (KVM) VM in paravirtualized mode.
Linode VMs are provided a public IP (WAN) and and optional private IP. The problem is that a single network interface is used (single MAC). On Linux the public and private IPs are configured as "eth0" network interface and "eth0:1" sub interface.
When OPNSense boots on Linode VM only a single network interface is configured "vtnet0". I can then manually create the sub-interface as follows:
"ifconfig vtnet0.1 create"
I then configure the private IP address as follows:
"ifconfig vtnet0.1 inet 192.168.100.100/17"
If I launch the Web configuration tool, I can see both network interfaces, so I know I'm going in the right direction. My questions are:
1) In OPNSense, how do I manually restart the network and routing services following the creation of the sub-interface and private IP assignment?
2) How do I save the above sub-interface configuration and private IP assignment so that they persist following a reboot?
Any guidance/suggestions appreciated.