Jump to content

救助!unraid有两个网口,如何设置默认路由为eth0或br0


Recommended Posts

unraid有两个网口,eth0为默认网口,桥接br0,设置网关为旁路由网关。可以出国。

eth1也指定了静态ip和网关(和eth0)不在一个网段。不可以出国,主要用来给pt下载工具使用,直接连接到爱快lan2网口。

现在的问题是,网络设置里的默认路由为eth1,导致我的应用商店不能连接。

请大佬指定下,如何设置应用商店流量走eth0或br0.

谢谢!

FireShot Capture 002 - Tower_NetworkSettings - 10.10.66.36.png

Link to comment
  • 3 weeks later...
  • 8 months later...
On 2/11/2022 at 3:16 PM, NTXF said:

进入ssh界面

ip route delete default  删除默认路由

ip route add default via 10.10.65.1 dev eth0 设置默认网关和网口

 

如果测试OK,再改network.cfg

 

测试OK了,怎么改network.cfg呢?查看里面并没有route相关设置

Link to comment
On 10/17/2022 at 7:23 AM, xffish said:

知道了,WEB gui就能改:“0 is no default gateway”

设置为0,即可

发现没有用,设置了0但还是过一段时间被添加了默认路由,权重为1,一个非常优先的值,目前6.9.2,我升到6.11.2试试

Link to comment
15 hours ago, xffish said:

发现没有用,设置了0但还是过一段时间被添加了默认路由,权重为1,一个非常优先的值,目前6.9.2,我升到6.11.2试试

不行,目前看得靠手动设置metric,不要设置0,自行设置优先的默认路由值较小即可

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...