net.ipv4.ip_forward=1
# up link
auto enp4s0f2
iface enp4s0f2 inet manual
iface enp4s0f2 inet static
address 10.176.8.9
netmask 255.255.255.248
gateway 10.176.8.14
# down link
auto em2
auto em2.3891
iface em2.3891 inet static
address 10.176.63.254
netmask 255.255.255.0
vlan-raw-device em2
# up link
auto enp4s0f2
iface enp4s0f2 inet manual
iface enp4s0f2 inet static
address 10.184.8.9
netmask 255.255.255.248
gateway 10.184.8.14
# down link
auto em2
auto em2.3891
iface em2.3891 inet static
address 10.180.63.254
netmask 255.255.255.0
vlan-raw-device em2
iptables-save > /etc/iptables/rules.v4
iptables-restore < /etc/iptables/rules.v4
sudo apt-get install vlan
Written with StackEdit.