Fortinet white logo
Fortinet white logo

CLI Reference

config vpn l2tp

config vpn l2tp

Configure L2TP.

config vpn l2tp
    Description: Configure L2TP.
    set compress [enable|disable]
    set eip {ipv4-address}
    set enforce-ipsec [enable|disable]
    set hello-interval {integer}
    set lcp-echo-interval {integer}
    set lcp-max-echo-fails {integer}
    set sip {ipv4-address}
    set status [enable|disable]
    set usrgrp {string}
end

config vpn l2tp

Parameter

Description

Type

Size

Default

compress

Enable/disable data compression.

option

-

disable

Option

Description

enable

Enable compress

disable

Disable compress

eip

End IP.

ipv4-address

Not Specified

0.0.0.0

enforce-ipsec

Enable/disable IPsec enforcement.

option

-

disable

Option

Description

enable

Enable enforce-ipsec

disable

Disable enforce-ipsec

hello-interval

L2TP hello message interval in seconds.

integer

Minimum value: 0 Maximum value: 3600

60

lcp-echo-interval

Time in seconds between PPPoE Link Control Protocol (LCP) echo requests.

integer

Minimum value: 0 Maximum value: 32767

5

lcp-max-echo-fails

Maximum number of missed LCP echo messages before disconnect.

integer

Minimum value: 0 Maximum value: 32767

3

sip

Start IP.

ipv4-address

Not Specified

0.0.0.0

status

Enable/disable FortiGate as a L2TP gateway.

option

-

disable

Option

Description

enable

Enable setting.

disable

Disable setting.

usrgrp

User group.

string

Maximum length: 35

config vpn l2tp

config vpn l2tp

Configure L2TP.

config vpn l2tp
    Description: Configure L2TP.
    set compress [enable|disable]
    set eip {ipv4-address}
    set enforce-ipsec [enable|disable]
    set hello-interval {integer}
    set lcp-echo-interval {integer}
    set lcp-max-echo-fails {integer}
    set sip {ipv4-address}
    set status [enable|disable]
    set usrgrp {string}
end

config vpn l2tp

Parameter

Description

Type

Size

Default

compress

Enable/disable data compression.

option

-

disable

Option

Description

enable

Enable compress

disable

Disable compress

eip

End IP.

ipv4-address

Not Specified

0.0.0.0

enforce-ipsec

Enable/disable IPsec enforcement.

option

-

disable

Option

Description

enable

Enable enforce-ipsec

disable

Disable enforce-ipsec

hello-interval

L2TP hello message interval in seconds.

integer

Minimum value: 0 Maximum value: 3600

60

lcp-echo-interval

Time in seconds between PPPoE Link Control Protocol (LCP) echo requests.

integer

Minimum value: 0 Maximum value: 32767

5

lcp-max-echo-fails

Maximum number of missed LCP echo messages before disconnect.

integer

Minimum value: 0 Maximum value: 32767

3

sip

Start IP.

ipv4-address

Not Specified

0.0.0.0

status

Enable/disable FortiGate as a L2TP gateway.

option

-

disable

Option

Description

enable

Enable setting.

disable

Disable setting.

usrgrp

User group.

string

Maximum length: 35