Whole document tree
    

Whole document tree

Add an IPv6 route through a gateway

7.2. Add an IPv6 route through a gateway

Mostly needed to reach the outside with IPv6 using an IPv6-enabled router on your link.

7.2.1. Using "ip"

Usage:

# /sbin/ip -6 route add <ipv6network>/<prefixlength> via <ipv6address>
¬ [dev <device>]
   

Example:

# /sbin/ip -6 route add 2000::/3 via 3ffe:ffff:0:f101::1