Fortinet white logo
Fortinet white logo

CLI Reference

config router static6

config router static6

Description: Configure IPv6 static routes.

config router static
  edit <name>
    set status [enable | disable]
    set dst {ipv6-address}
    set gateway {ipv6-address}
    set distance [1 – 255]
    set *device <name1>
    set comment {string}
    unset
    next
    show
    abort
    end
delete <name>
purge
show

Sample command:

config router static6
  edit 1
    set status enable
    set dst 0::0/0
    set gateway 2001::3
    set distance 10
    set device wan
    set comment
  next
end
Parameter Description Type Size Default
status Status of the static route. option - enable
Option Description
enable Enable static route.
disable Disable static route.
dst Destination IP and mask for the route. Ipv6_address/netmask- - none
gateway Gateway IP for the route. Ipv6_address - none
distance Administrative distance. (This field is the metric of the route item. Set the value carefully and ensure that this route item matches your application scenario without affecting other route items.) integer 1 - 255 1
device Gateway outgoing interface or tunnel. option - none
comment Comment on the route. (Optional) string Up to 255 characters in length none

config router static6

config router static6

Description: Configure IPv6 static routes.

config router static
  edit <name>
    set status [enable | disable]
    set dst {ipv6-address}
    set gateway {ipv6-address}
    set distance [1 – 255]
    set *device <name1>
    set comment {string}
    unset
    next
    show
    abort
    end
delete <name>
purge
show

Sample command:

config router static6
  edit 1
    set status enable
    set dst 0::0/0
    set gateway 2001::3
    set distance 10
    set device wan
    set comment
  next
end
Parameter Description Type Size Default
status Status of the static route. option - enable
Option Description
enable Enable static route.
disable Disable static route.
dst Destination IP and mask for the route. Ipv6_address/netmask- - none
gateway Gateway IP for the route. Ipv6_address - none
distance Administrative distance. (This field is the metric of the route item. Set the value carefully and ensure that this route item matches your application scenario without affecting other route items.) integer 1 - 255 1
device Gateway outgoing interface or tunnel. option - none
comment Comment on the route. (Optional) string Up to 255 characters in length none