I am currently using Ubuntu 24.04.1 LTS (latest version), and before the update, I was running Ubuntu 24.04 LTS (maybe). My setup includes a GUI, and I use Virt-Manager to host VMs.
After the update, my previous netplan configuration stopped working, and I lost internet connectivity on the host machine ( IP: 103.192.157.246). I have removed everything and configured the bridge network again, and the host is back online. However, my VM (AlmaLinux with WHM cPanel, IP: 103.192.157.245) cannot communicate with external networks—for example, it cannot ping gateway IP 103.192.157.241, perform system updates/upgrades, or be accessed via a browser. Despite these issues, the host (Ubuntu) can access the VM via SSH using the terminal.
Host Details:
01-netcfg.yaml
network:
version: 2
renderer: networkd
ethernets:
eth1:
dhcp4: no
dhcp6: no
bridges:
br0:
interfaces:
- eth1
dhcp4: no
dhcp6: no
addresses: ["103.192.157.246/28"]
routes:
- to: default
via: 103.192.157.241
macaddress: 00:1e:67:ad:ec:76
nameservers:
addresses: [103.84.36.5]
$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host noprefixroute
valid_lft forever preferred_lft forever
2: eno1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel master br0 state DOWN group default qlen 1000
link/ether 00:1e:67:ad:ec:77 brd ff:ff:ff:ff:ff:ff
altname enp0s25
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel master br0 state UP group default qlen 1000
link/ether 00:1e:67:ad:ec:76 brd ff:ff:ff:ff:ff:ff
4: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 00:1e:67:ad:ec:76 brd ff:ff:ff:ff:ff:ff
inet 103.192.157.246/28 brd 103.192.157.255 scope global br0
valid_lft forever preferred_lft forever
inet6 fe80::382e:ddff:fe6e:5175/64 scope link
valid_lft forever preferred_lft forever
5: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
link/ether 52:54:00:32:32:0d brd ff:ff:ff:ff:ff:ff
inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
valid_lft forever preferred_lft forever
6: tap0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel master br0 state UNKNOWN group default qlen 1000
link/ether fe:65:0f:bd:a1:4d brd ff:ff:ff:ff:ff:ff
inet6 fe80::fc65:fff:febd:a14d/64 scope link
valid_lft forever preferred_lft forever
$ip route
default via 103.192.157.241 dev br0 proto static onlink
103.192.157.240/28 dev br0 proto kernel scope link src 103.192.157.246
192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1 linkdown
$ sudo iptables -L -n -v
Chain INPUT (policy ACCEPT 53040 packets, 67M bytes)
pkts bytes target prot opt in out source destination
52870 67M Bitdefender-21-in 0 -- * * 0.0.0.0/0 0.0.0.0/0
52841 67M Bitdefender-22-in 0 -- * * 0.0.0.0/0 0.0.0.0/0
52899 67M LIBVIRT_INP 0 -- * * 0.0.0.0/0 0.0.0.0/0
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 LIBVIRT_FWX 0 -- * * 0.0.0.0/0 0.0.0.0/0
0 0 LIBVIRT_FWI 0 -- * * 0.0.0.0/0 0.0.0.0/0
0 0 LIBVIRT_FWO 0 -- * * 0.0.0.0/0 0.0.0.0/0
Chain OUTPUT (policy ACCEPT 41205 packets, 7279K bytes)
pkts bytes target prot opt in out source destination
40838 7250K Bitdefender-21-out 0 -- * * 0.0.0.0/0 0.0.0.0/0
40843 7251K Bitdefender-22-out 0 -- * * 0.0.0.0/0 0.0.0.0/0
40932 7259K LIBVIRT_OUT 0 -- * * 0.0.0.0/0 0.0.0.0/0
Chain Bitdefender-21-in (1 references)
pkts bytes target prot opt in out source destination
33 1902 ACCEPT 6 -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:8887 mark match ! 0x3887
Chain Bitdefender-21-out (1 references)
pkts bytes target prot opt in out source destination
0 0 ACCEPT 6 -- * * 0.0.0.0/0 127.0.0.1 tcp dpt:8887 ! owner GID match 986 mark match ! 0x3887
Chain Bitdefender-22-in (1 references)
pkts bytes target prot opt in out source destination
0 0 ACCEPT 6 -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:8887 mark match ! 0x3887
Chain Bitdefender-22-out (1 references)
pkts bytes target prot opt in out source destination
0 0 ACCEPT 6 -- * * 0.0.0.0/0 127.0.0.1 tcp dpt:8887 ! owner GID match 986 mark match ! 0x3887
Chain LIBVIRT_FWI (1 references)
pkts bytes target prot opt in out source destination
0 0 ACCEPT 0 -- * virbr0 0.0.0.0/0 192.168.122.0/24 ctstate RELATED,ESTABLISHED
0 0 REJECT 0 -- * virbr0 0.0.0.0/0 0.0.0.0/0 reject-with icmp-port-unreachable
Chain LIBVIRT_FWO (1 references)
pkts bytes target prot opt in out source destination
0 0 ACCEPT 0 -- virbr0 * 192.168.122.0/24 0.0.0.0/0
0 0 REJECT 0 -- virbr0 * 0.0.0.0/0 0.0.0.0/0 reject-with icmp-port-unreachable
Chain LIBVIRT_FWX (1 references)
pkts bytes target prot opt in out source destination
0 0 ACCEPT 0 -- virbr0 virbr0 0.0.0.0/0 0.0.0.0/0
Chain LIBVIRT_INP (1 references)
pkts bytes target prot opt in out source destination
0 0 ACCEPT 17 -- virbr0 * 0.0.0.0/0 0.0.0.0/0 udp dpt:53
0 0 ACCEPT 6 -- virbr0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:53
0 0 ACCEPT 17 -- virbr0 * 0.0.0.0/0 0.0.0.0/0 udp dpt:67
0 0 ACCEPT 6 -- virbr0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:67
Chain LIBVIRT_OUT (1 references)
pkts bytes target prot opt in out source destination
0 0 ACCEPT 17 -- * virbr0 0.0.0.0/0 0.0.0.0/0 udp dpt:53
0 0 ACCEPT 6 -- * virbr0 0.0.0.0/0 0.0.0.0/0 tcp dpt:53
0 0 ACCEPT 17 -- * virbr0 0.0.0.0/0 0.0.0.0/0 udp dpt:68
0 0 ACCEPT 6 -- * virbr0 0.0.0.0/0 0.0.0.0/0 tcp dpt:68
$ sudo iptables -t nat -L -n -v
Chain PREROUTING (policy ACCEPT 539 packets, 52243 bytes)
pkts bytes target prot opt in out source destination
538 50842 Bitdefender-22-pre 0 -- * * 0.0.0.0/0 0.0.0.0/0
531 50478 Bitdefender-21-pre 0 -- * * 0.0.0.0/0 0.0.0.0/0
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 3491 packets, 659K bytes)
pkts bytes target prot opt in out source destination
3333 645K Bitdefender-22-out 0 -- * * 0.0.0.0/0 0.0.0.0/0
3333 645K Bitdefender-21-out 0 -- * * 0.0.0.0/0 0.0.0.0/0
Chain POSTROUTING (policy ACCEPT 3364 packets, 648K bytes)
pkts bytes target prot opt in out source destination
3365 649K LIBVIRT_PRT 0 -- * * 0.0.0.0/0 0.0.0.0/0
Chain Bitdefender-21-out (1 references)
pkts bytes target prot opt in out source destination
3333 645K MARK 0 -- * * 0.0.0.0/0 0.0.0.0/0 MARK and 0x0
0 0 DNAT 6 -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:21 ! owner GID match 986 to:127.0.0.1:8887
3333 645K MARK 0 -- * * 0.0.0.0/0 0.0.0.0/0 MARK set 0x3887
Chain Bitdefender-21-pre (1 references)
pkts bytes target prot opt in out source destination
0 0 REDIRECT 6 -- * * 0.0.0.0/0 0.0.0.0/0 ctstate RELATED helper match "ftp" tcp dpts:1:65534 redir ports 8887
4 220 REDIRECT 6 -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:21 redir ports 8887
Chain Bitdefender-22-out (1 references)
pkts bytes target prot opt in out source destination
3333 645K MARK 0 -- * * 0.0.0.0/0 0.0.0.0/0 MARK and 0x0
0 0 DNAT 6 -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:22 ! owner GID match 986 to:127.0.0.1:8887
3333 645K MARK 0 -- * * 0.0.0.0/0 0.0.0.0/0 MARK set 0x3887
Chain Bitdefender-22-pre (1 references)
pkts bytes target prot opt in out source destination
7 364 REDIRECT 6 -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:22 redir ports 8887
Chain LIBVIRT_PRT (1 references)
pkts bytes target prot opt in out source destination
8 605 RETURN 0 -- * * 192.168.122.0/24 224.0.0.0/24
0 0 RETURN 0 -- * * 192.168.122.0/24 255.255.255.255
0 0 MASQUERADE 6 -- * * 192.168.122.0/24 !192.168.122.0/24 masq ports: 1024-65535
1 635 MASQUERADE 17 -- * * 192.168.122.0/24 !192.168.122.0/24 masq ports: 1024-65535
0 0 MASQUERADE 0 -- * * 192.168.122.0/24 !192.168.122.0/24
$ brctl show
bridge name bridge id STP enabled interfaces
br0 8000.001e67adec76 no eno1
eth1
tap0
virbr0 8000.52540032320d yes
$ lsmod | grep tap
tap 28672 1 vhost_net
$ virsh net-list --all
Name State Autostart Persistent
--------------------------------------------
br0 active yes yes
default active yes yes
$ virsh --connect qemu:///session domiflist WHM
Interface Type Source Model MAC
-----------------------------------------------------------
tap0 bridge br0 virtio 52:54:00:de:68:11
VM Details:
#ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
2: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 52:54:00:de:68:11 brd ff:ff:ff:ff:ff:ff
inet 103.192.157.245/28 brd 103.192.157.255 scope global noprefixroute enp1s0
valid_lft forever preferred_lft forever
inet6 fe80::5054:ff:fede:6811/64 scope link noprefixroute
valid_lft forever preferred_lft forever
#ip route
default via 103.192.157.241 dev enp1s0 proto static metric 100
103.192.157.240/28 dev enp1s0 proto kernel scope link src 103.192.157.245 metric 100
Below found under virt-manager graphical interface View > Details > NIC > XML for the said VM:
<interface type="bridge">
<mac address="52:54:00:de:68:11"/>
<source bridge="br0"/>
<target dev="tap0"/>
<model type="virtio"/>
<alias name="net0"/>
<address type="pci" domain="0x0000" bus="0x01" slot="0x00" function="0x0"/>
</interface>
Trace report for both IPs (VM: 103.192.157.245 and Host: 103.192.157.246) from the external network. I have contacted my ISP they said there are no misconfiguration and firewall issues from their side.
C:\Users\Talha>tracert 103.192.157.245
Tracing route to host-157-245.cityonlinebd.net [103.192.157.245]
over a maximum of 30 hops:
1 2 ms 2 ms 2 ms 192.168.2.1
2 3 ms 3 ms 4 ms 192.168.1.1
3 4 ms 3 ms 3 ms 172.16.28.1
4 4 ms 4 ms 3 ms 192.168.239.1
5 7 ms 7 ms 7 ms 10.220.16.225
6 8 ms 8 ms 7 ms 10.220.30.41
7 8 ms 8 ms 7 ms city-online.bdix.net [103.151.196.156]
8 9 ms 8 ms 8 ms 10.0.142.242
9 9 ms 8 ms 7 ms 10.10.32.10
10 10.10.32.10 reports: Destination host unreachable.
Trace complete.
C:\Users\Talha>tracert 103.192.157.246
Tracing route to host-157-246.cityonlinebd.net [103.192.157.246]
over a maximum of 30 hops:
1 2 ms 2 ms 2 ms 192.168.2.1
2 3 ms 3 ms 3 ms 192.168.1.1
3 12 ms 3 ms 3 ms 172.16.28.1
4 4 ms 3 ms 3 ms 192.168.239.1
5 7 ms 15 ms 8 ms 10.220.16.225
6 7 ms 8 ms 8 ms 10.220.30.41
7 8 ms 8 ms 8 ms city-online.bdix.net [103.151.196.156]
8 8 ms 7 ms 8 ms 10.0.142.242
9 8 ms 8 ms 15 ms 10.10.32.10
10 8 ms 9 ms 9 ms host-157-246.cityonlinebd.net [103.192.157.246]
Trace complete.
I would greatly appreciate any advice on how to resolve this issue. Thank you in advance for your help!