Ping host machine to vm router and vice versa.
Budget: $10 – $30 AUD
My network has:
1 pyhsical router bridged.
2 physical wired NICs for WAN and LAN.
1 host machine Debian based OS, running hypervisor/VMM KVM/Qemu/Virt manager.
1 VM router OPNsense (FreeBSD based).
The VM router is pinging the Internet and LAN devices.
The only difference to a previous network build which worked exactly like this, is the hypervisor/VMM was not KVM/Qemu/Virt manager.
The issue is to make the host machine with the VMM, ping the VM router and vice versa.
Please see the attachment for the network topology (note the VM router's install default IP address is 192.168.1.1, I will change this to 192.168.1.170 when I have GUI access to the VM router's settings).
Here's 5 different /etc/network/interfaces configurations I've tried on the host machine, in attempt to connect the host's interface to the vm router:
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
auto lo
iface lo inet loopback
auto enp3s0
iface enp3s0 inet static
address 192.168.1.120/24
gateway 192.168.1.1
-----------------------
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
auto lo
iface lo inet loopback
auto enp2s0
iface enp2s0 inet static
address 192.168.1.120/24
gateway 192.168.1.1
--------------------------
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
auto lo
iface lo inet loopback
auto macvtap1@enp2s0
iface macvtap1@enp2s0 inet static
address 192.168.1.120/24
gateway 192.168.1.1
---------------------------
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
auto lo
iface lo inet loopback
auto macvtap1
iface macvtap1 inet static
address 192.168.1.120/24
gateway 192.168.1.1
----------------------------
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
auto lo
iface lo inet loopback
auto vtnet1
iface vtnet1 inet static
address 192.168.1.120/24
gateway 192.168.1.1
1 pyhsical router bridged.
2 physical wired NICs for WAN and LAN.
1 host machine Debian based OS, running hypervisor/VMM KVM/Qemu/Virt manager.
1 VM router OPNsense (FreeBSD based).
The VM router is pinging the Internet and LAN devices.
The only difference to a previous network build which worked exactly like this, is the hypervisor/VMM was not KVM/Qemu/Virt manager.
The issue is to make the host machine with the VMM, ping the VM router and vice versa.
Please see the attachment for the network topology (note the VM router's install default IP address is 192.168.1.1, I will change this to 192.168.1.170 when I have GUI access to the VM router's settings).
Here's 5 different /etc/network/interfaces configurations I've tried on the host machine, in attempt to connect the host's interface to the vm router:
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
auto lo
iface lo inet loopback
auto enp3s0
iface enp3s0 inet static
address 192.168.1.120/24
gateway 192.168.1.1
-----------------------
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
auto lo
iface lo inet loopback
auto enp2s0
iface enp2s0 inet static
address 192.168.1.120/24
gateway 192.168.1.1
--------------------------
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
auto lo
iface lo inet loopback
auto macvtap1@enp2s0
iface macvtap1@enp2s0 inet static
address 192.168.1.120/24
gateway 192.168.1.1
---------------------------
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
auto lo
iface lo inet loopback
auto macvtap1
iface macvtap1 inet static
address 192.168.1.120/24
gateway 192.168.1.1
----------------------------
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
auto lo
iface lo inet loopback
auto vtnet1
iface vtnet1 inet static
address 192.168.1.120/24
gateway 192.168.1.1