Hello All,
I have two network interfaces, one is on the office LAN, the other will be dedicated to IP cameras that need internet access.
How do I setup the network in OMV?
thanks for your help,
-Gian
two network interfaces, bridged
-
- OMV 4.x
- gian
-
-
I would try this.
Set the interface you want to have internet access as you would do normally (it has the default gateway IP as that of your router's LAN port).
Set the interface for the LAN to be in the LAN network but do not assign a default gateway IP.
The two interfaces must belong to different IP networks. This is important.
-
the current situation is as follows (ifconfig):
enp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.xxx.1 netmask 255.255.255.0 broadcast 192.168.xxx.255
ether 00:22:64:8a:4c:05 txqueuelen 1000 (Ethernet)
RX packets 1408 bytes 447021 (436.5 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 8048 bytes 535411 (522.8 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 16 memory 0xfe8e0000-fe900000enp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.yyy.10 netmask 255.255.255.0 broadcast 192.168.yyy.255
ether 1c:c1:de:1c:75:07 txqueuelen 1000 (Ethernet)
RX packets 36172 bytes 4847348 (4.6 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 31275 bytes 41592558 (39.6 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 18lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 2932 bytes 338393 (330.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2932 bytes 338393 (330.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0the office LAN is yyy, and OMV gets the address from the DHCP router that is 192.168.yyy.1
If I ssh to OMV as 192.168.yyy.10 (enp3s0) from the office LAN, I can
- ping 192.168.xxx.1 (enp2s0)
- ping 192.168.yyy.1(internet connected office router)
but cannot ping myhost.com, so there is a DNS problem.When I try to edit the network interfaces from the web interface, I get errors.
This is are the two files in /etc/network/interfaces.d/
cat enp3s0
# The primary network interface
allow-hotplug enp3s0
iface enp3s0 inet dhcpcat enp2s0
# VideoCam
allow-hotplug enp2s0
iface enp2s0 inet static
address 192.168.xxx.1
netmask 255.255.255.0
gateway 192.168.yyy.1 -
Obfuscating private IP addressees is pointless and makes it more difficult to help.
I would suggest not using DHCP to obtain an IP address on enp3s0. The information posted from /etc/network/interfaces.d/ for enp3s0 is not helpful.
-
thanks, gderf,
now, if I delete the second interface from the web UI, when I ssh to OMV, DNS works again.
When I add the second IF, without specifying a gateway, I get an ERROR.
-
sorry, but that's all is written in enp3s0
-
enp3s0 actually is a fixed lease, so it is always the same.
-
tried with both static IP, but when I try to save, after adding a second IF, I always get ERROR
-
enp3s0 actually is a fixed lease, so it is always the same.
But if enp3s0 gets a default gateway by virtue of the DHCP process then you have the probability of having two default gateways defined in one machine which is not allowed. Nowhere in your posts do you show what the default gateway is as actually reported by the stack. Run this command and post the results:
ip route
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!