Configuring the IPv6 hop limit

Syntax:

ipv6 hop-limit <1–255>

no ipv6 hop-limit <1–255>

Global config operation: This global config command sets the maximum number of routers (hops) through which packets originating on the routing switch can pass before being discarded (global hop limit).

Each router decrements a packet's hop limit by 1 before forwarding the packet. If decrementing the hop limit causes it to go to 0 (zero), the decrementing router drops the packet instead of forwarding it.

Effect on the hop limit included in per-VLAN RAs: If the routing switch is enabled to send RAs on a given VLAN, and that VLAN’s RA configuration does not include a hop limit entry, then the global hop limit configured by this command is inserted in the RAs sent from the routing switch on that VLAN.

But if the VLAN’s RA configuration does include a local hop limit entry, then the global config hop limit is replaced by the local hop limit entry configured for inclusion in RAs sent by the routing switch on that VLAN. For information on configuring a hop limit included in RAs sent on a VLAN, see Setting or changing the hop-limit for host-generated packets.

Default: 64; Range: 1–255

The no form of the command resets the global hop-limit to the default 64.

If hop-limit is set to a nondefault value, you can view the current setting by using the show run command. (When set to the default value, hop-limit does not appear in the show <run|config> command output.