wangchengshi

实体服务器如果插双网卡,必须设置路由表的默认路由

如果不设置,默认两张网卡都会认为自己的网络是优先级最高,造成网络冲突,严重的话无法远程登录

查看服务器路由表:
route -n
netstat -nr
ip route

设置默认路由名:
设置eth0网卡为默认路由
例1:route add default gw 192.168.1.1 eth0
设置eth0网卡为默认路由,且metric值为10【metric值越小越优先】
例子2:route add default gw 111.48.124.254 dev eno4 metric 10

分类:

技术点:

相关文章:

  • 2022-02-24
  • 2022-12-23
  • 2021-12-05
  • 2021-11-22
  • 2021-09-29
  • 2021-12-06
  • 2021-09-05
  • 2021-12-22
猜你喜欢
  • 2022-12-23
  • 2021-10-19
  • 2021-08-19
  • 2021-06-23
  • 2021-07-29
相关资源
相似解决方案