Hi,
I wanted to report an issue I got when using only vlan interfaces.
The gateway would not get up due to : "failed: returned 2 (Error: Nexthop device is not up.)"
This error was due to the underlying interface not up because it does not have an IP.
The workaround is to modify the physical interface with :
pre-up ifconfig $IFACE up
post-down ifconfig $IFACE down
Full output of the /etc/network/interface :
I wanted to report an issue I got when using only vlan interfaces.
The gateway would not get up due to : "failed: returned 2 (Error: Nexthop device is not up.)"
This error was due to the underlying interface not up because it does not have an IP.
The workaround is to modify the physical interface with :
pre-up ifconfig $IFACE up
post-down ifconfig $IFACE down
Full output of the /etc/network/interface :
Code:
auto enp2s0
iface enp2s0 inet manual
pre-up ifconfig $IFACE up
post-down ifconfig $IFACE down
auto enp2s0.5
iface enp2s0.5 inet static
address 10.0.5.12/24
gateway 10.0.5.1
#proxmox vlan
auto enp2s0.1
iface enp2s0.1 inet static
address 192.168.1.10/24
auto vmbr0
iface vmbr0 inet manual
bridge-ports enp2s0
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094