I am not able to access the container by ssh or. ping from localhost.
Server = nuk
lxc container:
root@nuk:~# lxc list
±---------------±--------±------------------------±------------------------------------------------±----------------±----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
±---------------±--------±------------------------±------------------------------------------------±----------------±----------+
| deconz | RUNNING | 192.168.178.86 (enp5s0) | 2a04:4540:470d:3a00:216:3eff:fecb:7223 (enp5s0) | VIRTUAL-MACHINE | 0 |
ping 192.168.178.86
PING 192.168.178.86 (192.168.178.86) 56(84) bytes of data.
From 192.168.178.96 icmp_seq=1 Destination Host Unreachable
From 192.168.178.96 icmp_seq=2 Destination Host Unreachable
From 192.168.178.96 icmp_seq=3 Destination Host Unreachable
From 192.168.178.96 icmp_seq=4 Destination Host Unreachable
From 192.168.178.96 icmp_seq=5 Destination Host Unreachable
From 192.168.178.96 icmp_seq=6 Destination Host Unreachable
ssh 192.168.178.86
ssh: connect to host 192.168.178.86 port 22: No route to host
Network config:
root@nuk:~# ip addr
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: enp114s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master br0 state UP group default qlen 1000
link/ether 48:21:0b:5e:5f:48 brd ff:ff:ff:ff:ff:ff
3: wlo1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
link/ether 04:e8:b9:e1:79:c2 brd ff:ff:ff:ff:ff:ff
altname wlp0s20f3
4: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 8a:36:ff:fa:ea:25 brd ff:ff:ff:ff:ff:ff
inet 192.168.178.96/24 brd 192.168.178.255 scope global dynamic noprefixroute br0
valid_lft 807793sec preferred_lft 807793sec
inet6 2a04:4540:470d:3a00:8836:ffff:fefa:ea25/64 scope global dynamic noprefixroute
valid_lft 6969sec preferred_lft 3369sec
inet6 fe80::8836:ffff:fefa:ea25/64 scope link noprefixroute
valid_lft forever preferred_lft forever
25: mac794a150e@br0: <BROADCAST,MULTICAST,ALLMULTI,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 500
link/ether 00:16:3e:6f:b2:78 brd ff:ff:ff:ff:ff:ff
27: macb63f71b8@br0: <BROADCAST,MULTICAST,ALLMULTI,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 500
link/ether 00:16:3e:cb:72:23 brd ff:ff:ff:ff:ff:ff
iptables:
iptables -L -n -v
Warning: iptables-legacy tables present, use iptables-legacy to see them
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain DOCKER (0 references)
pkts bytes target prot opt in out source destination
Chain DOCKER-ISOLATION-STAGE-1 (0 references)
pkts bytes target prot opt in out source destination
0 0 RETURN all – * * 0.0.0.0/0 0.0.0.0/0
Chain DOCKER-ISOLATION-STAGE-2 (0 references)
pkts bytes target prot opt in out source destination
0 0 RETURN all – * * 0.0.0.0/0 0.0.0.0/0