I was able to finally get access to my VLAN interface on my OMV4 machine. Just for clarification, I placed OMV4 on my Proxmox host, and initially I was having issue creating the VLAN interface, but recently was able to ssh into the VLAN interface. The problem that I am having is getting a static route out. I have tried using the web interface as well as command line and no bueno.
ens18 --> 192.168.30.50 [VLAN30] # Primary OMV4 interface
ens18.40 --> 192.168.40.50 {VLAN40] # Docker VLAN
root@fs-01:/etc/network/interfaces.d# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: ens18: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether ca:74:2c:26:38:12 brd ff:ff:ff:ff:ff:ff
inet 192.168.30.50/24 brd 192.168.30.255 scope global ens18
valid_lft forever preferred_lft forever
4: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default
link/ether 02:42:b0:92:a3:92 brd ff:ff:ff:ff:ff:ff
inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0
valid_lft forever preferred_lft forever
11: ens18.40@ens18: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether ca:74:2c:26:38:12 brd ff:ff:ff:ff:ff:ff
inet 192.168.40.50/23 brd 192.168.41.255 scope global ens18.40
valid_lft forever preferred_lft forever
root@fs-01:/etc/network/interfaces.d# ip route list
default via 192.168.30.1 dev ens18
172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1 linkdown
192.168.30.0/24 dev ens18 proto kernel scope link src 192.168.30.50
192.168.40.0/23 via 192.168.40.50 dev ens18.40
Alles anzeigen
I am able to ssh to the interface with no problems. But when connected to OVM, if I attempt to ssh to a host on my network, the command hangs. Also, I am not able to ping any host on my network. Interestingly enough, I can apt-get update and upgrade, so I am able to resolve names. I also noticed that my docker0 (172.17.0.1) interface is down as well. Granted that I would rather my docker containers worked on the 192.168.40.0/23 network, but it would be nice if the docker0 interface bridge worked as well. I have setup ip forwarding and iptables:
root@fs-01:~# sysctl net.ipv4.conf.all.forwarding=1
net.ipv4.conf.all.forwarding = 1
root@fs-01:~# iptables -P FORWARD ACCEPT
But still no change. Any suggestions would be greatly appreciated.