|
本帖最后由 longwangjiang 于 2023-5-9 18:44 编辑
openwrt做旁路有debian始终不能ping通谷歌,以下是interfaces的信息:(192.168.50.253是我主路由爱快的ip地址,192.168.50.166是我openwrt旁路由的地址)
# This file describes the network interfaces available on your system and how
# to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug ens18
iface ens18 inet static
address 192.168.50.7/24
gateway 192.168.50.166
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.50.166 8.8.8.8
爱快开启的dhcp网关是192.168.1.1(光猫的ip),openwrt关闭dhcp,网关地址是192.168.50.253现在情况是所有局域网设备都可以访问谷歌,就只有debian这台访问不了谷歌,ping不通www.google.com和docker.io,但是可以ping通www.baidu.com,这个是什么问题啊,有没有大神给说一下,折腾的我头发都掉了一把。
|
|