配置负载均衡
[Huawei]acl 2000
[Huawei-acl-basic-2000]rule permit source 192.168.10.0 0.0.0.255
[Huawei-acl-basic-2000]quit
[Huawei]acl 2001
[Huawei-acl-basic-2001]rule permit source 192.168.20.0 0.0.0.255
[Huawei-acl-basic-2001]quit
[Huawei]route-policy aa permit node 10
[Huawei-route-policy]if-match acl 2000
[Huawei-route-policy]apply preferred-value 100
[Huawei-route-policy]quit
[Huawei]route-policy aa permit node 1000
[Huawei]route-policy bb permit node 10
[Huawei-route-policy]if-match acl 2001
[Huawei-route-policy]apply preferred-value 100
[Huawei-route-policy]quit
[Huawei]route-policy bb permit node 1000
[Huawei-bgp]peer 20.0.0.1 route-policy aa import
[Huawei-bgp]peer 21.0.0.2 route-policy bb import
配置等价路由
bgp 200
maximum load-lalancing 2 //配置允许设置等价路由条数为2条
|