[Newbies] deepin双路由设置,求助
Tofloor
poster avatar
XXX_~)
deepin
2023-09-22 03:52
Author

可能我上个贴子描述不清楚

我现在是外网或者内网都可以单独使用,但是需要切换。我现在要不切换网络的前提下,访问内网和外网都可以

Reply Favorite View the author
All Replies
fax928
deepin
2023-09-22 03:58
#1

可能要设置路由表,网上查下相关文章、资料。

我没实际设置过。

Reply View the author
晚秋(lateautumn)
Moderator
2023-09-22 04:01
#2

首先是欢迎,再次是祝贺,最后是感谢!applaud

Reply View the author
liwl
deepin
2023-09-22 04:14
#3

内网不要设置网关。

通往内网网段的,配置静态路由,通过内网网

Reply View the author
XXX_~)
deepin
2023-09-22 04:23
#4

sudo route add -net 192.168.0.0 netmask 255.255.0.0 gw 192.168.126.254
deepin@deepin-PC:~$ sudo systemctl restart networking.service

因为我的两个IP都是168.192开头的,设置和Windows一样,我自己忘记了要重启网卡了。现在已经解决

Reply View the author
dgmenghuan
deepin
2023-09-22 16:32
#5

scream

Reply View the author
XXX_~)
deepin
2023-09-22 18:14
#6
dgmenghuan

scream

在双网卡都存在的时候可以单独使用,用我上面的两条命令

Reply View the author