Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
OPNSense on Linode (KVM) - create sub interface and restart network services
« previous
next »
Print
Pages: [
1
]
Author
Topic: OPNSense on Linode (KVM) - create sub interface and restart network services (Read 4345 times)
feosm
Newbie
Posts: 1
Karma: 0
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.
Logged
franco
Administrator
Hero Member
Posts: 17668
Karma: 1611
Re: OPNSense on Linode (KVM) - create sub interface and restart network services
«
Reply #1 on:
November 12, 2016, 09:08:54 am »
Hi feosm,
You can use the following facility for persistent scripting:
https://docs.opnsense.org/development/backend/autorun.html
Note that you need the "early" stage type, as this is supposed to bring up any interfaces that are missing from a normal boot and makes it viable to use the spawned devices in the configuration consistently.
For restart you can do:
# /usr/local/etc/rc.reload_all
But if you do the former, you can use the GUI to configure the new device directly.
Cheers,
Franco
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
OPNSense on Linode (KVM) - create sub interface and restart network services