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):
iface lo inet loopback
iface br1 inet static
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 220.127.116.11 18.104.22.168
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 :-
iface br0 inet static
# Controlling the bridge.
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).
@VeryZ Have you tried creating a bridge using the virt-manager GUI?
netmask, network, and broacast are not created by default if I use the GUI.
They also haven’t fixed my issue.
I suppose my main question is, are you supposed to lose internet connectivity once you configure an interface as a bridge?
Using DHCP on the bridge allows internet access on host and on guests.
I decided to see if I could get static IP to work on a standard non-bridge interface, and that didn’t work either.
Could it be possible that the router work with my machine? I’ve been able to set static IPs on other windows computers on the network with no issues.
When it comes to this machine however, the only thing that worked was using a DHCP Reservation on the router itself.
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 22.214.171.124.
Show the output of “ip addr show dev br1”
Show the output of “ip route show”