Overview
Explains Martian address checks for identifying invalid BGP addresses and details procedures to disable Martian address checks in BGP when necessary for specific scenarios.
A Martian address check is a router security feature that
-
prevents routers from accepting packets with reserved or illogical IP address prefixes
-
is applied by default in BGP configurations to drop packets originating from Martian addresses, and
-
can be disabled to allow routers to process routes from specific sites using designated IPv4 or IPv6 prefixes.
Examples
Martian addresses are reserved or undefined IP address ranges that should not appear in legitimate internet routing tables. Filtering these addresses improves network security by helping ensure that only valid, routable addresses are accepted during routing.
Common Martian address prefixes include:
-
IPv4:
-
0.0.0.0/8
-
127.0.0.0/8
-
224.0.0.0/4
-
-
IPv6:
-
::
-
::0002 through ::ffff
-
::ffff:a.b.c.d
-
fe80:xxxx
-
ffxx:xxxx
-
Restrictions:
Routers running OSPF or IS-IS protocols cannot access routes with Martian address prefixes, even if the Martian address check is disabled.