策略路由
华为策略路由写法:
acl number xxxx match-order auto
rule 4 permit ip source ***.***.***.0 0.0.0.255
rule 0 permit ip source ***.***.0 0.0.15.255
rule 2 permit ip destination ***.***.***.**1 0
rule 1 permit ip destination ***.***.***.0 0.0.0.255
应用在接口:
PS:作用顺序:自上而下(先加优先)
interface GigabitEthernet0/*/*
stp disable
speed 1000
duplex full
port access vlan **
traffic-redirect inbound ip-group xxxx rule 1 system-index 11 next-hop ***.***.***.1 invalid drop
traffic-redirect inbound ip-group xxxx rule 2 system-index 14 next-hop ***.***.***.2 invalid drop
traffic-redirect inbound ip-group xxxx rule 0 system-index 57 next-hop ***.***.***.3 invalid drop
traffic-redirect inbound ip-group xxxx rule 4 system-index 59 next-hop ***.***.***.4 invalid drop
port link-aggregation group 2
#