我有以下(简化)docker(-compose)
设置,并希望从笔记本电脑访问 nginx 容器。从笔记本电脑到网关docker-compose
( fd..2222.0.0.1/80
) 的 ping 操作正常,但到网关的pingfd..2222.0.0.2/80
操作无效。
radvd
我已经尝试通过(在服务器上运行)宣传一条路线:
interface wlp1s0 {
IgnoreIfMissing on;
AdvSendAdvert on;
MaxRtrAdvInterval 600;
route fddd::2222:0:0:0/80 {
AdvRouteLifetime 900;
AdvRoutePreference low;
};
};
该路线已添加到笔记本电脑:
$ ip -6 -br r
...
fddd::2222:0:0:0/80 via fe80::xxxx:xxxx:xxxx:xxxx dev wlan0 proto ra metric 1024 expires 684sec pref low
...
但仍然无法 ping 通。你能帮我解决这个问题吗?
$ ip -6 -br a # Server
lo UNKNOWN ::1/128
wlp1s0 UP ... fddd::2c2:c6ff:febd:862a/64 ...
docker0 DOWN fddd::1111:0:0:1/80 fe80::xxxx/64 fe80::1/64
br-ae6409628391 UP fddd::2222:0:0:1/80 fe80::xxxx/64 fe80::1/64