Hi.
I’ve created bgp filter with next rules:
0 chain=peer-in prefix=0.0.0.0/0 invert-match=no action=accept
1 chain=peer-in prefix=x.x.x.x/22 invert-match=no action=accept
2 chain=peer-in prefix=y.y.y.y/22 invert-match=no action=accept
3 chain=peer-in prefix=z.z.z.z/22 invert-match=no action=accept
4 chain=peer-in prefix=a.a.a.a/24 invert-match=no action=accept
5 chain=peer-in invert-match=no action=discard
For some reasom i can see only:
0.0.0.0/0 x=x.x.x.x/22 in routing table.
What is wrong with my filters?
One more question:
I have interconnect with AS (let’s say) 555.
Could anybody tell me right filter to receive route only from this AS(filter via ASnum)?
Somthing like on Cisco:
ip as-path access-list 4 permit ^555$
WBR.
mrz
February 1, 2011, 1:45pm
2
The same as on cisco
/routing filter
add chain=bgp-in bgp-as-path=^555$ action=accept
add chain=bgp-in bgp-as-path=^555$ action=accept
and
add chain=bgp-in action=reject
To reject all other routes?
P.S
Do you have an idea why i can not see in routing table prefixes whitch is describe by 2,3 and 4 rules?
2 chain=peer-in prefix=y.y.y.y/22 invert-match=no action=accept
3 chain=peer-in prefix=z.z.z.z/22 invert-match=no action=accept
4 chain=peer-in prefix=a.a.a.a/24 invert-match=no action=accept
mrz
February 1, 2011, 2:41pm
4
add chain=bgp-in bgp-as-path=^555$ action=accept
and
add chain=bgp-in action=reject
To reject all other routes?
Yes, except that instead of reject use discard, it saves memory.
Do you have an idea why i can not see in routing table prefixes whitch is describe by 2,3 and 4 rules?
2 chain=peer-in prefix=y.y.y.y/22 invert-match=no action=accept
3 chain=peer-in prefix=z.z.z.z/22 invert-match=no action=accept
4 chain=peer-in prefix=a.a.a.a/24 invert-match=no action=accept
If you are sure that there are exactly such prefixes and previously all prefixes were discarded then try refreshing bgp peer.
/routing bgp peer refresh-all