rpsl and bird

Herbert Faleiros herbert at scw.net.br
Wed Apr 27 13:53:42 UTC 2011


Hello,

On Wed, Apr 27, 2011 at 10:40 AM, Matthew Walster <matthew at walster.org> wrote:
> [dotwaffle at baud:Code/filter]$ ./filter.sh -t cisco -n IXREACH AS-IXREACH
> ip prefix-list IXREACH 10 permit 212.9.96.0/24
> ip prefix-list IXREACH 20 permit 212.9.96.0/19
> ip prefix-list IXREACH 30 permit 188.74.64.0/18
> ip prefix-list IXREACH 40 permit 109.246.192.0/20
> ip prefix-list IXREACH 50 permit 109.246.128.0/18
> ip prefix-list IXREACH 60 permit 109.246.32.0/20
> ip prefix-list IXREACH 70 permit 46.18.168.0/21
> ip prefix-list IXREACH 80 permit 91.196.184.0/22
> ip prefix-list IXREACH 90 permit 91.196.184.0/24
> ip prefix-list IXREACH 100 permit 91.196.185.0/24
> ip prefix-list IXREACH 110 permit 91.196.186.0/24
> ip prefix-list IXREACH 120 permit 91.196.187.0/24

Using only rtconfig (from IRRToolSet, including IPv6):

$ rtconfig -cisco_use_prefix_lists -cisco_no_compress_acls -protocol ripe
rtconfig> @RtConfig access_list filter afi ipv4,ipv6 AS-IXREACH
!
no ip prefix-list pl100
ip prefix-list pl100 permit 46.18.168.0/21
ip prefix-list pl100 permit 91.196.184.0/22
ip prefix-list pl100 permit 91.196.184.0/22 ge 24 le 24
ip prefix-list pl100 permit 109.246.32.0/20
ip prefix-list pl100 permit 109.246.128.0/18
ip prefix-list pl100 permit 109.246.192.0/20
ip prefix-list pl100 permit 188.74.64.0/18
ip prefix-list pl100 permit 212.9.96.0/19
ip prefix-list pl100 permit 212.9.96.0/24
ip prefix-list pl100 deny 0.0.0.0/0 le 32
!
no ipv6 prefix-list ipv6-pl100
ipv6 prefix-list ipv6-pl100 permit 2A02:27F0::/32
ipv6 prefix-list ipv6-pl100 permit 2A02:2B90::/32
ipv6 prefix-list ipv6-pl100 deny ::/0 le 128

--
Herbert



More information about the irrtoolset mailing list