H3C 交换机策略路由流量负载均衡

  1.  

    组网环境

  1.  

    实现说明

外网出口交换机上有2条运营商线路,出外网的流量到达交换机后需要流量在2条线路上负载均衡,由于考虑到还会有其他运营商线路接入,且要求运营商流量来回路径一致,所以单纯通过静态路由迭代无法实现,此处可以使用pbr+静态路由迭代的配置方式实现上述需求。

  1.  

    配置说明

vlan 100

description 流量路径-1

#

vlan 101

description 流量路径-2

#

interface Vlan-interface100

description 流量路径-1

 ip address 1.1.1.1 255.255.255.0

#

interface Vlan-interface101

description 流量路径-2

 ip address 2.2.2.1 255.255.255.0

#

interface GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 100

#

interface GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 101

#

nqa entry admin 1

 type icmp-echo

  destination ip 1.1.1.2

  frequency 100

  next-hop ip 1.1.1.2

  reaction 1 checked-element probe-fail threshold-type consecutive 5 action-type trigger-only

#

nqa entry admin 2

 type icmp-echo

  destination ip 2.2.2.2

  frequency 100

  next-hop ip 2.2.2.2

  reaction 1 checked-element probe-fail threshold-type consecutive 5 action-type trigger-only

#

nqa schedule admin 1 start-time now lifetime forever

nqa schedule admin 2 start-time now lifetime forever

#

track 1 nqa entry admin 1 reaction 1

track 2 nqa entry admin 2 reaction 1

#

acl advanced 3000

 rule 0 permit ip source 10.0.0.0 0.0.0.8 

#

policy-based-route aaa permit node 1

 if-match acl 3000

 apply next-hop 111.111.111.111

#

 ip route-static 111.111.111.111 32 1.1.1.1 track 1

 ip route-static 111.111.111.111 32 2.2.2.1 track 2

#

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值