Describes configuring checks for user-defined Martian addresses to prevent invalid routes from propagating.
Martian addresses are IP addresses that
-
are typically dropped by routers to prevent access to certain sites
-
include specific IPv4 and IPv6 prefixes, and
-
can be configured to be accessible using BGP.
When you configure BGP, you can prevent routers from accessing certain sites with certain specific IP address prefixes. The routers drop packets from such IP addresses, known as Martian addresses.
These IPv4 address prefixes are part of Martian addresses:
-
0.0.0.0/8
-
127.0.0.0/8
-
224.0.0.0/4
These IPv6 address prefixes are part of Martian addresses:
-
::
-
::0002 to ::ffff
-
::ffff:a.b.c.d
-
fe80:xxxx
-
ffxx:xxxx
By default, routers prevent access to sites with Martian addresses. However, you can enable routers with BGP IPv4 address-family or BGP IPv6 address-family configuration to access these sites by configuring the default-martian-check disable command.
Routers with OSPF or IS-IS protocols cannot access these sites even by having the default-martian-check disable command configured.