1
0
Fork 0
mirror of https://gitlab.com/netravnen/NetworkLabNotes.git synced 2024-12-23 20:57:53 +00:00
NetworkLabNotes/code/prefixlists.cisco.txt

22 lines
1.2 KiB
Plaintext
Raw Permalink Normal View History

2017-06-01 07:42:02 +00:00
ip prefix-list permit-lans permit 10.0.0.0/8 ge 24 ! Allow prefixes >=/24
ip prefix-list permit-lans permit 172.16.0.0/12 ge 24 ! Allow prefixes >=/24
ip prefix-list permit-lans permit 192.168.0.0/16 ge 24 ! Allow prefixes >=/24
ip prefix-list permit-lans deny 0.0.0.0/0 le 32 ! Deny everthing else
ip prefix-list deny-bogons deny 0.0.0.0/8 le 32 ! Block default route
ip prefix-list deny-bogons deny 10.0.0.0/8 le 32
ip prefix-list deny-bogons deny 100.64.0.0/10 le 32
ip prefix-list deny-bogons deny 127.0.0.0/8 le 32
ip prefix-list deny-bogons deny 169.254.0.0/16 le 32
ip prefix-list deny-bogons deny 172.16.0.0/12 le 32
ip prefix-list deny-bogons deny 192.0.0.0/24 le 32
ip prefix-list deny-bogons deny 192.0.2.0/24 le 32
ip prefix-list deny-bogons deny 192.168.0.0/16 le 32
ip prefix-list deny-bogons deny 198.18.0.0/15 le 32
ip prefix-list deny-bogons deny 198.51.100.0/24 le 32
ip prefix-list deny-bogons deny 203.0.113.0/24 le 32
ip prefix-list deny-bogons deny 224.0.0.0/4 le 32
ip prefix-list deny-bogons deny 240.0.0.0/4 le 32
ip prefix-list deny-bogons deny 0.0.0.0/0 ge 25 ! Block prefixes >/24
ip prefix-list deny-bogons permit 0.0.0.0/0 le 24 ! Permit prefixes <=/24