Kind cluster node: c9s-control-plane.
jenkins pod ip: 10.244.0.6.
dind pod ip: 10.244.0.9.
containerlab ip deployed within dind pod: 172.20.20.0/24.
c9s-control-plane: 10.244.0.1 (pod gateway), 172.19.0.0/16(eth0).
The issue is jenkins can ping to dind but cannot ping to the containerlab even after the routing. Any solutions?
Routing on jenkins:
default via 10.244.0.1 dev eth0
10.244.0.0/24 via 10.244.0.1 dev eth0 src 10.244.0.6
10.244.0.1 dev eth0 scope link src 10.244.0.6
172.20.20.0/24 via 10.244.0.1 dev eth0
Routing on dind:
dink-7f64f88747-nhgnt:/# ip route
default via 10.244.0.1 dev eth0
10.244.0.0/24 via 10.244.0.1 dev eth0 src 10.244.0.9
10.244.0.1 dev eth0 scope link src 10.244.0.9
172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1 linkdown
172.20.20.0/24 dev br-44150f9313a2 proto kernel scope link src 172.20.20.1
Routing on c9s-control-plane:
default via 172.19.0.1 dev eth0
10.244.0.2 dev vethd5a5bf09 scope host
10.244.0.3 dev vethb5b4f2c3 scope host
10.244.0.4 dev vethf4d2d278 scope host
10.244.0.6 dev veth69ac8af4 scope host
10.244.0.7 dev vethddc7804d scope host
10.244.0.9 dev veth107ab5da scope host
10.244.0.10 dev vethe2ad53b8 scope host
blackhole 10.244.107.128/26 proto bird
172.19.0.0/16 dev eth0 proto kernel scope link src 172.19.0.2
172.20.20.0/24 via 10.244.0.1 dev vethd5a5bf09