Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Understanding Martian Addresses

    Martian addresses are host or network addresses about which all routing information is ignored. When received by the routing device, these routes are ignored. They commonly are sent by improperly configured systems on the network and have destination addresses that are obviously invalid.

    In IPv6, the loopback address and the multicast resolve and discard routes are the default martian addresses.

    In Junos OS Release 10.4R5 and later, the reserved IPv6 multicast address space (ff00::/8 and ff02::/16) is added to the list of martian addresses.

    In Junos OS Release 9.6 and later, you can configure Class E addresses on interfaces. Class E addresses are treated like any other unicast address for the purpose of forwarding. To allow Class E addresses to be configured on interfaces, you must remove the Class E prefix from the list of martian addresses. To remove the Class E prefix from the list of martian addresses include the martians 240/4 orlonger allow statement at the [edit routing-options] hierarchy level.

    To view the default and configured martian routes, run the show route martians command.

    IPv4 Martian Addresses

    user@host> show route martians table inet.
    inet.0:
                 0.0.0.0/0 exact -- allowed
                 0.0.0.0/8 orlonger -- disallowed
                 127.0.0.0/8 orlonger -- disallowed
                 192.0.0.0/24 orlonger -- disallowed
                 240.0.0.0/4 orlonger -- disallowed
                 224.0.0.0/4 exact -- disallowed
                 224.0.0.0/24 exact -- disallowed
    
    inet.1:
                 0.0.0.0/0 exact -- allowed
                 0.0.0.0/8 orlonger -- disallowed
                 127.0.0.0/8 orlonger -- disallowed
                 192.0.0.0/24 orlonger -- disallowed
                 240.0.0.0/4 orlonger -- disallowed
    
    inet.2:
                 0.0.0.0/0 exact -- allowed
                 0.0.0.0/8 orlonger -- disallowed
                 127.0.0.0/8 orlonger -- disallowed
                 192.0.0.0/24 orlonger -- disallowed
                 240.0.0.0/4 orlonger -- disallowed
                 224.0.0.0/4 exact -- disallowed
                 224.0.0.0/24 exact -- disallowed
    
    inet.3:
                 0.0.0.0/0 exact -- allowed
                 0.0.0.0/8 orlonger -- disallowed
                 127.0.0.0/8 orlonger -- disallowed
                 192.0.0.0/24 orlonger -- disallowed
                 240.0.0.0/4 orlonger -- disallowed
                 224.0.0.0/4 exact -- disallowed
                 224.0.0.0/24 exact -- disallowed
    

    IPv6 Martian Addresses

    user@host> show route martians table inet6
    inet6.0:
                 ::1/128 exact -- disallowed
                 ff00::/8 exact -- disallowed
                 ff02::/16 exact -- disallowed
    
    inet6.1:
                 ::1/128 exact -- disallowed
    
    inet6.2:
                 ::1/128 exact -- disallowed
                 ff00::/8 exact -- disallowed
                 ff02::/16 exact -- disallowed
    
    inet6.3:
                 ::1/128 exact -- disallowed
                 ff00::/8 exact -- disallowed
                 ff02::/16 exact -- disallowed

    Modified: 2015-01-19