嘟嘟社区

[疑问] Centos怎么修改默认路由走哪张网卡?


默认eth1,怎么改成eth0
[疑问]  Centos怎么修改默认路由走哪张网卡?
ip route add default via

HOH 发表于 2022-3-11 09:33
ip route add default via

提示   RTNETLINK answers: File exists

丶心围双城 发表于 2022-3-11 09:35
提示   RTNETLINK answers: File exists

先删除掉原先的默认路由
route delete default

bitss 发表于 2022-3-11 09:39
先删除掉原先的默认路由
route delete default

会断网吗?

会的