负载平衡
ip route add default scope global nexthop via XX.XX.XX.XX dev eth0 weight 1 nexthop via XX.XX.XX.XX dev eth1 weight 1
增加一条默认的全局路由记录。欲到达的目标网络XX.XX.XX.XX(nexthop via XX.XX.XX.XX), 经由网关(以太网卡 eth0),链路权重为1

删除 ip route del default scope global
增加 ip route add default scope global nexthop via 119.254.242.33 dev eth1 weight 1 nexthop via 124.207.105.225 dev eth0 weight 1

 

查看

ip route list

相关文章:

  • 2021-08-13
  • 2021-12-12
  • 2021-11-19
  • 2021-05-09
  • 2021-06-20
  • 2021-04-29
  • 2021-10-20
猜你喜欢
  • 2021-11-18
  • 2022-12-23
  • 2021-05-20
  • 2022-01-12
  • 2021-12-04
  • 2021-09-08
相关资源
相似解决方案