2022121613-x86-64版本旁路由模式网关配置不生效

lmlx66】 在 https://github.com/istoreos/istoreos/issues/550 发布:

环境

版本为 istoreos-21.02.3-2022121613-x86-64-squashfs-combined.img.gz ,使用VirtualBox桥接windows网卡进行测试学习。

问题描述

进入配置界面,家庭主路由ip192.168.123.1,windows桥接模式下依赖主路由dhcp获取192.168.123.123成功访问外网。更改静态ip为192.168.123.230,网关192.168.123.1(保证无误)无法ping通外网。

控制台输入 route 结果如下:

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
172.17.0.0      *               255.255.0.0     U     0      0        0 docker0
192.168.123.0   *               255.255.255.0   U     0      0        0 eth0

发现网关并未正确配置,输入以下指令配置网关

route add default gw 192.168.123.1

再次控制台输入 route 结果如下:

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         192.168.123.1   0.0.0.0         UG    0      0        0 eth0
172.17.0.0      *               255.255.0.0     U     0      0        0 docker0
192.168.123.0   *               255.255.255.0   U     0      0        0 eth0

之后可ping通外网,重启后上述配置失效

目的

  1. 提出bug:小白,并不清楚这个问题是否是潜在的bug。
  2. 给出对应问题的解决方案