router : static6
Use this command to add, edit, or delete static routes for IPv6 traffic. For IPv4 static routes, see router static.
You add static routes to specify the destination of traffic exiting the FortiGate unit. You configure routes by adding destination IP addresses and network masks and adding gateways for these destination addresses. The gateways are the next-hop routers to which traffic that matches the destination addresses in the route are forwarded.
You can configure static routes for IPv6 traffic on FortiGate units that run in NAT/Route mode.
config router static6
edit <index-int>
set device <interface_name>
set distance <distance>
set dst <destination‑address_ipv6mask>
set gateway <gateway‑address_ipv6>
set priority <integer>
The device, dst, and gateway fields are all required.
edit <index-int>
Enter the unique ID number of this static route.
No default.
device <interface_name>
The name of the FortiGate unit interface through which to route traffic.
distance <distance>
Enter the administrative distance for the route. The distance value may influence route preference in the FortiGate unit routing table. The range is an integer from 1‑255. See also config system interface “distance <distance_integer>” on page 259.
dst <destination‑address_ipv6mask>
The destination IPv6 address and netmask for this route.
You can enter ::/0 to create a new static default route for IPv6 traffic.
gateway <gateway‑address_ipv6>
The IPv6 address of the next-hop router to which traffic is forwarded.
priority <integer>
The administrative priority value is used to resolve ties in route selection. The priority range is an integer from 0 to 4294967295. Lower priority routes are preferred routes.
This field is only accessible through the CLI.