IOS-IOX ip prefix-list / prefix-set

Answered Question

Hi ,

Based on below IOS prefix-list, how can I convert it to prefix-set in IOX, when prefix-set do not have 'permit/deny' statement ?

ip prefix-list InFilter description Networks which shouldn't be accepted
ip prefix-list InFilter seq 5 deny 10.0.0.0/8 le 32
ip prefix-list InFilter seq 10 deny 127.0.0.0/8 le 32
ip prefix-list InFilter seq 15 deny 169.254.0.0/16 le 32
ip prefix-list InFilter seq 20 deny 172.16.0.0/12 le 32
ip prefix-list InFilter seq 25 deny 192.0.2.0/24 le 32
ip prefix-list InFilter seq 30 deny 192.168.0.0/16 le 32
ip prefix-list InFilter seq 35 deny 211.49.192.0/20 le 32
ip prefix-list InFilter seq 55 deny 224.0.0.0/3 le 32
ip prefix-list InFilter seq 60 deny 0.0.0.0/0 ge 25
ip prefix-list InFilter seq 65 deny 0.0.0.0/0
ip prefix-list InFilter seq 70 permit 0.0.0.0/0 le 32

I have this problem too.
0 votes
Correct Answer by Laurent Aubert about 6 years 2 months ago

Hi,

You will use RPL to achieve the same logic. You will create a prefix-set which describes all your prefixes and then create a policy like this:

if destination in then drop else pass

with a prefix-set listing all the prefixes you want to reject.

http://www.cisco.com/en/US/docs/routers/xr12000/software/xr12k_r4.0/routing/configuration/guide/rc40xr12k_chapter7.html

HTH

Laurent.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
Laurent Aubert Sun, 09/12/2010 - 22:22

Hi,

You will use RPL to achieve the same logic. You will create a prefix-set which describes all your prefixes and then create a policy like this:

if destination in then drop else pass

with a prefix-set listing all the prefixes you want to reject.

http://www.cisco.com/en/US/docs/routers/xr12000/software/xr12k_r4.0/routing/configuration/guide/rc40xr12k_chapter7.html

HTH

Laurent.

Actions

This Discussion