vyos,WAN 负载平衡,一个静态连接和一个 pppoe 连接

网络工程 负载均衡 维亚塔 维奥斯
2021-07-31 22:58:02

我有两个 ISP,一个是静态的,一个是 PPPoE。我使用 VyOS。

我使用两个静态 IP 提供商进行了配置,但是当涉及到 PPPoE 时,我不知道该写什么作为接口健康的下一跳。

interface-health pppoe0 {
        failure-count 1
        nexthop ???
        success-count 1
        test 10 {
            resp-time 5
            target 8.8.8.8
            ttl-limit 1
            type ping
        }
    }

PPPoE 连接的下一跳是否始终相同,还是在断开连接并再次连接后可以更改?

谢谢!

2个回答

您可以将下一跳设置为 dhcp

set load-balancing wan interface-health pppoe1 nexthop dhcp

我希望这个能帮上忙:

load-balancing {
    wan {
        flush-connections
        interface-health eth1 {
            failure-count 3
            nexthop <gatewayip>
            success-count 1
            test 10 {
                resp-time 5
                target 8.8.8.8
                ttl-limit 1
                type ping
            }
            test 20 {
                resp-time 5
                target 8.8.4.4
                ttl-limit 1
                type ping
            }
        }
        interface-health pppoe0 {
            failure-count 3
            nexthop <gatewayip>
            success-count 1
            test 10 {
                resp-time 5
                target <nameserverip>
                ttl-limit 1
                type ping
            }
            test 20 {
                resp-time 5
                target <nameserverip>
                ttl-limit 1
                type ping
            }
        }