On 2020-04-26 20:20, Ed Greshko wrote:
On 2020-04-27 10:56, ToddAndMargo via users wrote:
Mine. I have two network cards: eno1 is internal with all my vm's and eno2 is external to the Internet and iptables
Why do you use a network card for your VM's? Did you have issues with virtual HW?
both physical network cards are on the host machine. the vm's connect through qemu-kvm "Network bridge: br0" to the host machines and then get routed to the internet through en12, via iptables
$ cat /etc/sysconfig/network-scripts/ifcfg-br0 DEVICE=br0 TYPE=Bridge ONBOOT=yes USERCTL=yes DELAY=0 NM_CONTROLLED=no BOOTPROTO=none PREFIX=24 # IPV4_FAILURE_FATAL=yes IPV4_FAILURE_FATAL=no IPV6INIT=no IPV6_AUTOCONF=no IPV6_DEFROUTE=no IPV6_FAILURE_FATAL=no IPV6_PRIVACY=no IPV6_ADDR_GEN_MODE=stable-privacy NAME="System br0" IPADDR=192.168.255.10 # NETMASK=255.255.255.0 NETWORK=192.168.255.0 DNS1=127.0.0.1 PROXY_METHOD=none BROWSER_ONLY=no AUTOCONNECT_PRIORITY=-999 # DEFROUTE=yes DEFROUTE=no
$ cat ifcfg-eno1 TYPE=Ethernet BOOTPROTO=none DEFROUTE=yes IPV4_FAILURE_FATAL=no IPV6INIT=no # NAME=enp6s0 NAME=eno1 UUID=be0f8dfa-9939-4f9e-a20a-cadf593452c2 DEVICE=eno1 ONBOOT=yes # IPADDR=192.168.255.10 # Note: NETMASK is now called "PREFIX" # PREFIX=24 # GATEWAY=192.168.255.10 DNS1=127.0.0.1 # IPV6_PEERDNS=yes # IPV6_PEERROUTES=yes BRIDGE=br0