|
楼主我宿主机这样设置路由表和默认网关之后,宿主机可以ping docker的macvlan,但是设置默认网关后连百度都curl失败,是哪里出了问题?我要排查什么错误?(其他设备设置默认网关指向openwrt可以“师夷长技以制夷”,除了宿主机)
宿主机ip: 192.168.211.131
openwrt-macvlan:192.168.211.134
- [root[url=home.php?mod=space&uid=467693]@Localhost[/url] openwrt-side]# ip route
- default via 192.168.211.134 dev macvlan-proxy
- default via 192.168.211.2 dev ens33 proto static metric 100
- 192.168.211.0/24 dev ens33 proto kernel scope link src 192.168.211.131 metric 100
- 192.168.211.134 dev macvlan-proxy scope link
复制代码
可以ping通openwrt
- [root@localhost openwrt-side]# ping 192.168.211.134
- PING 192.168.211.134 (192.168.211.134) 56(84) bytes of data.
- 64 bytes from 192.168.211.134: icmp_seq=1 ttl=64 time=0.106 ms
- 64 bytes from 192.168.211.134: icmp_seq=2 ttl=64 time=0.123 ms
- 64 bytes from 192.168.211.134: icmp_seq=3 ttl=64 time=0.103 ms
- 64 bytes from 192.168.211.134: icmp_seq=4 ttl=64 time=0.099 ms
复制代码
openwrt的路由表
- bash-5.2# ip route
- default via 192.168.211.2 dev eth0 proto static
- 192.168.211.0/24 dev eth0 proto kernel scope link src 192.168.211.134
复制代码
|
|