How can I recover my network?

I have a couple of lxd containers running on Mint 20. The host decided to stop communicating as did the containers. I had configured the network with bridiging so the containers were on the LAN and it worked for a while. I can’t figure out how to get it back working. I have tried to dump the bridging and get back to a simple network but it’s still not communicating. I even configured the network with a static IP address and it’s still not connecting. I’d reinstall but as Murphy has intervened by preventing a good backup of one of the containers I need to somehow get it back on line. If anyone can suggest a way that I can get a backup of the container, that would help. Since I only have access to the system from the console, it’s difficult but not impossible to show any status.

Thanks,
Jim.

Please show ip a and ip r on the host and inside one of your containers, along with output of lxc network ls.

I seemed to have recovered by running dhclient. I think I’ve done that before but it stops working sometime later. Perhaps after a reboot.
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
valid_lft forever preferred_lft forever
2: enp0s7: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 54:04:a6:69:79:fa brd ff:ff:ff:ff:ff:ff
inet 192.168.2.55/24 brd 192.168.2.255 scope global dynamic enp0s7
valid_lft 79193sec preferred_lft 79193sec
inet6 fe80::5604:a6ff:fe69:79fa/64 scope link
valid_lft forever preferred_lft forever
3: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
link/ether 52:54:00:d7:b1:51 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
4: virbr0-nic: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel master virbr0 state DOWN group default qlen 1000
link/ether 52:54:00:d7:b1:51 brd ff:ff:ff:ff:ff:ff
5: lxdbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
link/ether 00:16:3e:47:21:39 brd ff:ff:ff:ff:ff:ff
inet 10.234.168.1/24 scope global lxdbr0
valid_lft forever preferred_lft forever
jwl@Mate2:~$ ip r
default via 192.168.2.1 dev enp0s7
10.234.168.0/24 dev lxdbr0 proto kernel scope link src 10.234.168.1 linkdown
169.254.0.0/16 dev virbr0 scope link metric 1000 linkdown
192.168.2.0/24 dev enp0s7 proto kernel scope link src 192.168.2.55
192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1 linkdown

    sudo lxc network ls
     
+--------+----------+---------+-----------------+------+-------------+---------+
|  NAME  |   TYPE   | MANAGED |      IPV4       | IPV6 | DESCRIPTION | USED BY |
+--------+----------+---------+-----------------+------+-------------+---------+
| enp0s7 | physical | NO      |                 |      |             | 2       |
+--------+----------+---------+-----------------+------+-------------+---------+
| lxdbr0 | bridge   | YES     | 10.234.168.1/24 | none |             | 2       |
+--------+----------+---------+-----------------+------+-------------+---------+
| virbr0 | bridge   | NO      |                 |      |             | 0       |
+--------+----------+---------+-----------------+------+-------------+---------+

From the container:
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
valid_lft forever preferred_lft forever
2: enp0s7: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 54:04:a6:69:79:fa brd ff:ff:ff:ff:ff:ff
inet 192.168.2.55/24 brd 192.168.2.255 scope global dynamic enp0s7
valid_lft 78833sec preferred_lft 78833sec
inet6 fe80::5604:a6ff:fe69:79fa/64 scope link
valid_lft forever preferred_lft forever
3: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
link/ether 52:54:00:d7:b1:51 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
4: virbr0-nic: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel master virbr0 state DOWN group default qlen 1000
link/ether 52:54:00:d7:b1:51 brd ff:ff:ff:ff:ff:ff
5: lxdbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
link/ether 00:16:3e:47:21:39 brd ff:ff:ff:ff:ff:ff
inet 10.234.168.1/24 scope global lxdbr0
valid_lft forever preferred_lft forever

ip r
default via 192.168.2.1 dev enp0s7 
10.234.168.0/24 dev lxdbr0 proto kernel scope link src 10.234.168.1 linkdown 
169.254.0.0/16 dev virbr0 scope link metric 1000 linkdown 
192.168.2.0/24 dev enp0s7 proto kernel scope link src 192.168.2.55 
192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1 linkdown