Fortinet white logo
Fortinet white logo

CLI Reference

system gre-tunnel

Configure GRE tunnel.

  config system gre-tunnel
      Description: Configure GRE tunnel.
      edit <name>
          set interface {string}
          set ip-version [4|6]
          set remote-gw6 {ipv6-address}
          set local-gw6 {ipv6-address}
          set remote-gw {ipv4-address}
          set local-gw {ipv4-address-any}
          set dscp-copying [disable|enable]
          set keepalive-interval {integer}
          set keepalive-failtimes {integer}
      next
  end

config system gre-tunnel

Parameter Name Description Type Size
interface Interface name. string Maximum length: 15
ip-version IP version to use for VPN interface.
4: Use IPv4 addressing for gateways.
6: Use IPv6 addressing for gateways.
option -
remote-gw6 IPv6 address of the remote gateway. ipv6-address Not Specified
local-gw6 IPv6 address of the local gateway. ipv6-address Not Specified
remote-gw IP address of the remote gateway. ipv4-address Not Specified
local-gw IP address of the local gateway. ipv4-address-any Not Specified
dscp-copying Enable/disable DSCP copying.
disable: Disable DSCP copying.
enable: Enable DSCP copying.
option -
keepalive-interval Keepalive message interval (0 - 32767, 0 = disabled). integer Minimum value: 0 Maximum value: 32767
keepalive-failtimes Number of consecutive unreturned keepalive messages before a GRE connection is considered down (1 - 255). integer Minimum value: 1 Maximum value: 255

system gre-tunnel

Configure GRE tunnel.

  config system gre-tunnel
      Description: Configure GRE tunnel.
      edit <name>
          set interface {string}
          set ip-version [4|6]
          set remote-gw6 {ipv6-address}
          set local-gw6 {ipv6-address}
          set remote-gw {ipv4-address}
          set local-gw {ipv4-address-any}
          set dscp-copying [disable|enable]
          set keepalive-interval {integer}
          set keepalive-failtimes {integer}
      next
  end

config system gre-tunnel

Parameter Name Description Type Size
interface Interface name. string Maximum length: 15
ip-version IP version to use for VPN interface.
4: Use IPv4 addressing for gateways.
6: Use IPv6 addressing for gateways.
option -
remote-gw6 IPv6 address of the remote gateway. ipv6-address Not Specified
local-gw6 IPv6 address of the local gateway. ipv6-address Not Specified
remote-gw IP address of the remote gateway. ipv4-address Not Specified
local-gw IP address of the local gateway. ipv4-address-any Not Specified
dscp-copying Enable/disable DSCP copying.
disable: Disable DSCP copying.
enable: Enable DSCP copying.
option -
keepalive-interval Keepalive message interval (0 - 32767, 0 = disabled). integer Minimum value: 0 Maximum value: 32767
keepalive-failtimes Number of consecutive unreturned keepalive messages before a GRE connection is considered down (1 - 255). integer Minimum value: 1 Maximum value: 255