Configuring the IPv6 default route

The IPv6 default route (::/0) is a static route used for all traffic that has a destination network not reachable through any other IPv6 route in the routing table. For more information on static routes, see IPv6 Static Routing.

Syntax

ipv6 route ::/0 <ipv6–gateway–addr> distance <1–255>

no ipv6 route ::/0 <ipv6–addr>

Used in the global config context to configure the default route and gateway to use for traffic sent to the default route.

::/0 : Specifies the default IPv6 route.

<ipv6–gateway–addr> : Specifies the next-hop router for traffic sent to the default route.

distance <1–255> : Specifies the administrative distance to associate with a static route. Default: 1; Range: 1–255.

The no form of the command deletes the default route for the specified next-hop destination from the routing table.

distance

Set the administrative distance to associate with this static route.

name

Configure the static route name.

tag

Specify the tag that can be used to filter redistribution of this route via route-maps

Configuring the IPv6 default route

If 2001:db8:c::9f:35 is the IPv6 address of your ISP router, all nonlocal traffic could be directed to the ISP by configuring the following default route:

Switch(config)# ipv6 route ::/0 2001:db8:c::9f:35

To view the default route in the routing table, use show ipv6 route.