[BPF] HUAWEI NE40 PBR
Evandro Alves
evandroalves28 em gmail.com
Sexta Novembro 1 17:18:16 -03 2019
alguém aí já fez PBR no NE40 ou NE20 para trocar o next-hop baseado em
endereço de origem?
Estou tentando fazer o tráfego dos clientes que se conectarem com ip da
faixa 100.64.0.0/10 sair
por outro gateway.
acl name from-temp-cgnat number 3100
rule 64 permit ip source 100.64.0.0 0.63.255.255
traffic classifier TEMP-CGNAT operator or
if-match acl 6000
traffic behavior TEMP-CGNAT
redirect ip-nexthop 10.192.0.157
traffic policy TEMP-CGNAT
share-mode
classifier TEMP-CGNAT behavior TEMP-CGNAT precedence 1
interface GigabitEthernet0/3/4
undo shutdown
ip address <ip-de-enlace-uplink-padrão>
traffic-policy TEMP-CGNAT outbound
interface GigabitEthernet0/3/14
undo shutdown
ip address 10.192.0.158 255.255.255.252
display ip routing-table 0.0.0.0 0
Route Flags: R - relay, D - download to fib, T - to vpn-instance, B - black
hole route
------------------------------------------------------------------------------
Routing Table : _public_
Summary Count : 1
Destination/Mask Proto Pre Cost Flags NextHop Interface
0.0.0.0/0 Static 60 0 D <ip-do-gateway-padrao>
GigabitEthernet0/3/4
--
Evandro Alves P.
More information about the bpf
mailing list