I’ve created a bridge using virt-manager.
The Windows 10 guest has an internet connection, but the host doesn’t.
/etc/network/interfaces is as follows (virt-manager added br1):
auto lo
iface lo inet loopback
auto br1
iface br1 inet static
address 192.168.1.101
gateway 192.168.1.1
bridge_ports enp7s0
bridge_stp on
bridge_fd 0.0
Pings to/from guest, host, and other local computers all work. It’s just the host machine that doesn’t have an actual internet connection.
I tried adding the following to br1 but it doesn’t work.
dns-nameservers 192.168.1.1 8.8.8.8 8.8.4.4
Again, the guest does have internet. It is the host that does not.
I’m suspicious of the lack of a netmask; and that could easily explain the host being able to communicate to the guest but not the internet. My interfaces looks like :-
Could also be your firewall settings, in this case your DHCP client and all connectivity on the host is supposed to run on the bridge (or something along those lines, not sure how your network was originally set up).
Nope. Not used that. But it looks like a networking issue to me, although as I’m paid to look at networking issues there’s a bit of confirmation bias creeping in.
So a dhcp assigned address works when static doesn’t? Things to try :-
Drop the ‘bridge_stp on’; I doubt this has anything to do with it, but STP can quite easily bite you on the arse.
Double-check that the static IP isn’t within the range that DHCP uses for dynamic allocations.
Ping the gateway address (192.168.1.1?) and ping 8.8.8.8.