Fortinet white logo
Fortinet white logo

CLI Reference

config system modem

config system modem

Note

This command is available for model(s): FortiGate 1000D, FortiGate 100D, FortiGate 100EF, FortiGate 100E, FortiGate 100F, FortiGate 101E, FortiGate 101F, FortiGate 1100E, FortiGate 1101E, FortiGate 1200D, FortiGate 140D-POE, FortiGate 140D, FortiGate 140E-POE, FortiGate 140E, FortiGate 1500DT, FortiGate 1500D, FortiGate 2000E, FortiGate 200E, FortiGate 201E, FortiGate 2200E, FortiGate 2201E, FortiGate 2500E, FortiGate 3000D, FortiGate 300E, FortiGate 301E, FortiGate 30E 3G4G GBL, FortiGate 30E 3G4G INTL, FortiGate 30E 3G4G NAM, FortiGate 30E, FortiGate 3100D, FortiGate 3200D, FortiGate 3300E, FortiGate 3301E, FortiGate 3400E, FortiGate 3401E, FortiGate 3600E, FortiGate 3601E, FortiGate 3700D, FortiGate 3800D, FortiGate 3810D, FortiGate 3815D, FortiGate 3960E, FortiGate 3980E, FortiGate 400D, FortiGate 400E Bypass, FortiGate 400E, FortiGate 401E, FortiGate 40F 3G4G, FortiGate 40F, FortiGate 5001D, FortiGate 5001E1, FortiGate 5001E, FortiGate 500D, FortiGate 500E, FortiGate 501E, FortiGate 50E, FortiGate 51E, FortiGate 52E, FortiGate 600D, FortiGate 600E, FortiGate 601E, FortiGate 60E DSL, FortiGate 60E-POE, FortiGate 60E, FortiGate 60F, FortiGate 61E, FortiGate 61F, FortiGate 800D, FortiGate 80E-POE, FortiGate 80E, FortiGate 80F Bypass, FortiGate 80F-POE, FortiGate 80F, FortiGate 81E-POE, FortiGate 81E, FortiGate 81F-POE, FortiGate 81F, FortiGate 900D, FortiGate 90E, FortiGate 91E, FortiGate 92D, FortiGateRugged 30D, FortiGateRugged 60F 3G4G, FortiGateRugged 60F, FortiGateRugged 90D, FortiWiFi 30E 3G4G INTL, FortiWiFi 30E 3G4G NAM, FortiWiFi 30E, FortiWiFi 40F 3G4G, FortiWiFi 40F, FortiWiFi 50E 2R, FortiWiFi 50E, FortiWiFi 51E, FortiWiFi 60E DSL, FortiWiFi 60E, FortiWiFi 61E, FortiWiFi 61F, FortiWiFi 80F 2R, FortiWiFi 81F 2R-POE, FortiWiFi 81F 2R.

It is not available for: FortiGate VM64.

Configure MODEM.

config system modem
    Description: Configure MODEM.
    set action [dial|stop|...]
    set altmode [enable|disable]
    set authtype1 {option1}, {option2}, ...
    set authtype2 {option1}, {option2}, ...
    set authtype3 {option1}, {option2}, ...
    set auto-dial [enable|disable]
    set connect-timeout {integer}
    set dial-cmd1 {string}
    set dial-cmd2 {string}
    set dial-cmd3 {string}
    set dial-on-demand [enable|disable]
    set distance {integer}
    set dont-send-CR1 [enable|disable]
    set dont-send-CR2 [enable|disable]
    set dont-send-CR3 [enable|disable]
    set extra-init1 {string}
    set extra-init2 {string}
    set extra-init3 {string}
    set holddown-timer {integer}
    set idle-timer {integer}
    set interface {string}
    set lockdown-lac {string}
    set mode [standalone|redundant]
    set network-init {string}
    set passwd1 {password}
    set passwd2 {password}
    set passwd3 {password}
    set peer-modem1 [generic|actiontec|...]
    set peer-modem2 [generic|actiontec|...]
    set peer-modem3 [generic|actiontec|...]
    set phone1 {string}
    set phone2 {string}
    set phone3 {string}
    set pin-init {string}
    set ppp-echo-request1 [enable|disable]
    set ppp-echo-request2 [enable|disable]
    set ppp-echo-request3 [enable|disable]
    set priority {integer}
    set redial [none|1|...]
    set reset {integer}
    set status [enable|disable]
    set traffic-check [enable|disable]
    set username1 {string}
    set username2 {string}
    set username3 {string}
    set wireless-port {integer}
end

config system modem

Parameter

Description

Type

Size

action

Dial up/stop MODEM.

option

-

Option

Description

dial

Dial up number.

stop

Stop dialup.

none

No action.

altmode

Enable/disable altmode for installations using PPP in China.

option

-

Option

Description

enable

Enable setting.

disable

Disable setting.

authtype1

Allowed authentication types for ISP 1.

option

-

Option

Description

pap

PAP

chap

CHAP

mschap

MSCHAP

mschapv2

MSCHAPv2

authtype2

Allowed authentication types for ISP 2.

option

-

Option

Description

pap

PAP

chap

CHAP

mschap

MSCHAP

mschapv2

MSCHAPv2

authtype3

Allowed authentication types for ISP 3.

option

-

Option

Description

pap

PAP

chap

CHAP

mschap

MSCHAP

mschapv2

MSCHAPv2

auto-dial

Enable/disable auto-dial after a reboot or disconnection.

option

-

Option

Description

enable

Enable setting.

disable

Disable setting.

connect-timeout

Connection completion timeout.

integer

Minimum value: 30 Maximum value: 255

dial-cmd1

Dial command (this is often an ATD or ATDT command).

string

Maximum length: 63

dial-cmd2

Dial command (this is often an ATD or ATDT command).

string

Maximum length: 63

dial-cmd3

Dial command (this is often an ATD or ATDT command).

string

Maximum length: 63

dial-on-demand

Enable/disable to dial the modem when packets are routed to the modem interface.

option

-

Option

Description

enable

Enable setting.

disable

Disable setting.

distance

Distance of learned routes.

integer

Minimum value: 1 Maximum value: 255

dont-send-CR1

Do not send CR when connected (ISP1).

option

-

Option

Description

enable

Enable setting.

disable

Disable setting.

dont-send-CR2

Do not send CR when connected (ISP2).

option

-

Option

Description

enable

Enable setting.

disable

Disable setting.

dont-send-CR3

Do not send CR when connected (ISP3).

option

-

Option

Description

enable

Enable setting.

disable

Disable setting.

extra-init1

Extra initialization string to ISP 1.

string

Maximum length: 127

extra-init2

Extra initialization string to ISP 2.

string

Maximum length: 127

extra-init3

Extra initialization string to ISP 3.

string

Maximum length: 127

holddown-timer

Hold down timer in seconds.

integer

Minimum value: 1 Maximum value: 60

idle-timer

MODEM connection idle time.

integer

Minimum value: 1 Maximum value: 9999

interface

Name of redundant interface.

string

Maximum length: 63

lockdown-lac

Allow connection only to the specified Location Area Code (LAC).

string

Maximum length: 127

mode

Set MODEM operation mode to redundant or standalone.

option

-

Option

Description

standalone

Standalone.

redundant

Redundant for an interface.

network-init

AT command to set the Network name/type (AT+COPS=<mode>,[<format>,<oper>[,<AcT>]]).

string

Maximum length: 127

passwd1

Password to access the specified dialup account.

password

Not Specified

passwd2

Password to access the specified dialup account.

password

Not Specified

passwd3

Password to access the specified dialup account.

password

Not Specified

peer-modem1

Specify peer MODEM type for phone1.

option

-

Option

Description

generic

All other modem type.

actiontec

ActionTec modem.

ascend_TNT

Ascend TNT modem.

peer-modem2

Specify peer MODEM type for phone2.

option

-

Option

Description

generic

All other modem type.

actiontec

ActionTec modem.

ascend_TNT

Ascend TNT modem.

peer-modem3

Specify peer MODEM type for phone3.

option

-

Option

Description

generic

All other modem type.

actiontec

ActionTec modem.

ascend_TNT

Ascend TNT modem.

phone1

Phone number to connect to the dialup account (must not contain spaces, and should include standard special characters).

string

Maximum length: 63

phone2

Phone number to connect to the dialup account (must not contain spaces, and should include standard special characters).

string

Maximum length: 63

phone3

Phone number to connect to the dialup account (must not contain spaces, and should include standard special characters).

string

Maximum length: 63

pin-init

AT command to set the PIN (AT+PIN=<pin>).

string

Maximum length: 127

ppp-echo-request1

Enable/disable PPP echo-request to ISP 1.

option

-

Option

Description

enable

Enable setting.

disable

Disable setting.

ppp-echo-request2

Enable/disable PPP echo-request to ISP 2.

option

-

Option

Description

enable

Enable setting.

disable

Disable setting.

ppp-echo-request3

Enable/disable PPP echo-request to ISP 3.

option

-

Option

Description

enable

Enable setting.

disable

Disable setting.

priority

Priority of learned routes.

integer

Minimum value: 0 Maximum value: 4294967295

redial

Redial limit.

option

-

Option

Description

none

Forever.

1

One attempt.

2

Two attempts.

3

Three attempts.

4

Four attempts.

5

Five attempts.

6

Six attempts.

7

Seven attempts.

8

Eight attempts.

9

Nine attempts.

10

Ten attempts.

reset

Number of dial attempts before resetting modem (0 = never reset).

integer

Minimum value: 0 Maximum value: 10

status

Enable/disable Modem support (equivalent to bringing an interface up or down).

option

-

Option

Description

enable

Enable setting.

disable

Disable setting.

traffic-check

Enable/disable traffic-check.

option

-

Option

Description

enable

Enable setting.

disable

Disable setting.

username1

User name to access the specified dialup account.

string

Maximum length: 63

username2

User name to access the specified dialup account.

string

Maximum length: 63

username3

User name to access the specified dialup account.

string

Maximum length: 63

wireless-port

Enter wireless port number, 0 for default, 1 for first port, ...

integer

Minimum value: 0 Maximum value: 4294967295

config system modem

config system modem

Note

This command is available for model(s): FortiGate 1000D, FortiGate 100D, FortiGate 100EF, FortiGate 100E, FortiGate 100F, FortiGate 101E, FortiGate 101F, FortiGate 1100E, FortiGate 1101E, FortiGate 1200D, FortiGate 140D-POE, FortiGate 140D, FortiGate 140E-POE, FortiGate 140E, FortiGate 1500DT, FortiGate 1500D, FortiGate 2000E, FortiGate 200E, FortiGate 201E, FortiGate 2200E, FortiGate 2201E, FortiGate 2500E, FortiGate 3000D, FortiGate 300E, FortiGate 301E, FortiGate 30E 3G4G GBL, FortiGate 30E 3G4G INTL, FortiGate 30E 3G4G NAM, FortiGate 30E, FortiGate 3100D, FortiGate 3200D, FortiGate 3300E, FortiGate 3301E, FortiGate 3400E, FortiGate 3401E, FortiGate 3600E, FortiGate 3601E, FortiGate 3700D, FortiGate 3800D, FortiGate 3810D, FortiGate 3815D, FortiGate 3960E, FortiGate 3980E, FortiGate 400D, FortiGate 400E Bypass, FortiGate 400E, FortiGate 401E, FortiGate 40F 3G4G, FortiGate 40F, FortiGate 5001D, FortiGate 5001E1, FortiGate 5001E, FortiGate 500D, FortiGate 500E, FortiGate 501E, FortiGate 50E, FortiGate 51E, FortiGate 52E, FortiGate 600D, FortiGate 600E, FortiGate 601E, FortiGate 60E DSL, FortiGate 60E-POE, FortiGate 60E, FortiGate 60F, FortiGate 61E, FortiGate 61F, FortiGate 800D, FortiGate 80E-POE, FortiGate 80E, FortiGate 80F Bypass, FortiGate 80F-POE, FortiGate 80F, FortiGate 81E-POE, FortiGate 81E, FortiGate 81F-POE, FortiGate 81F, FortiGate 900D, FortiGate 90E, FortiGate 91E, FortiGate 92D, FortiGateRugged 30D, FortiGateRugged 60F 3G4G, FortiGateRugged 60F, FortiGateRugged 90D, FortiWiFi 30E 3G4G INTL, FortiWiFi 30E 3G4G NAM, FortiWiFi 30E, FortiWiFi 40F 3G4G, FortiWiFi 40F, FortiWiFi 50E 2R, FortiWiFi 50E, FortiWiFi 51E, FortiWiFi 60E DSL, FortiWiFi 60E, FortiWiFi 61E, FortiWiFi 61F, FortiWiFi 80F 2R, FortiWiFi 81F 2R-POE, FortiWiFi 81F 2R.

It is not available for: FortiGate VM64.

Configure MODEM.

config system modem
    Description: Configure MODEM.
    set action [dial|stop|...]
    set altmode [enable|disable]
    set authtype1 {option1}, {option2}, ...
    set authtype2 {option1}, {option2}, ...
    set authtype3 {option1}, {option2}, ...
    set auto-dial [enable|disable]
    set connect-timeout {integer}
    set dial-cmd1 {string}
    set dial-cmd2 {string}
    set dial-cmd3 {string}
    set dial-on-demand [enable|disable]
    set distance {integer}
    set dont-send-CR1 [enable|disable]
    set dont-send-CR2 [enable|disable]
    set dont-send-CR3 [enable|disable]
    set extra-init1 {string}
    set extra-init2 {string}
    set extra-init3 {string}
    set holddown-timer {integer}
    set idle-timer {integer}
    set interface {string}
    set lockdown-lac {string}
    set mode [standalone|redundant]
    set network-init {string}
    set passwd1 {password}
    set passwd2 {password}
    set passwd3 {password}
    set peer-modem1 [generic|actiontec|...]
    set peer-modem2 [generic|actiontec|...]
    set peer-modem3 [generic|actiontec|...]
    set phone1 {string}
    set phone2 {string}
    set phone3 {string}
    set pin-init {string}
    set ppp-echo-request1 [enable|disable]
    set ppp-echo-request2 [enable|disable]
    set ppp-echo-request3 [enable|disable]
    set priority {integer}
    set redial [none|1|...]
    set reset {integer}
    set status [enable|disable]
    set traffic-check [enable|disable]
    set username1 {string}
    set username2 {string}
    set username3 {string}
    set wireless-port {integer}
end

config system modem

Parameter

Description

Type

Size

action

Dial up/stop MODEM.

option

-

Option

Description

dial

Dial up number.

stop

Stop dialup.

none

No action.

altmode

Enable/disable altmode for installations using PPP in China.

option

-

Option

Description

enable

Enable setting.

disable

Disable setting.

authtype1

Allowed authentication types for ISP 1.

option

-

Option

Description

pap

PAP

chap

CHAP

mschap

MSCHAP

mschapv2

MSCHAPv2

authtype2

Allowed authentication types for ISP 2.

option

-

Option

Description

pap

PAP

chap

CHAP

mschap

MSCHAP

mschapv2

MSCHAPv2

authtype3

Allowed authentication types for ISP 3.

option

-

Option

Description

pap

PAP

chap

CHAP

mschap

MSCHAP

mschapv2

MSCHAPv2

auto-dial

Enable/disable auto-dial after a reboot or disconnection.

option

-

Option

Description

enable

Enable setting.

disable

Disable setting.

connect-timeout

Connection completion timeout.

integer

Minimum value: 30 Maximum value: 255

dial-cmd1

Dial command (this is often an ATD or ATDT command).

string

Maximum length: 63

dial-cmd2

Dial command (this is often an ATD or ATDT command).

string

Maximum length: 63

dial-cmd3

Dial command (this is often an ATD or ATDT command).

string

Maximum length: 63

dial-on-demand

Enable/disable to dial the modem when packets are routed to the modem interface.

option

-

Option

Description

enable

Enable setting.

disable

Disable setting.

distance

Distance of learned routes.

integer

Minimum value: 1 Maximum value: 255

dont-send-CR1

Do not send CR when connected (ISP1).

option

-

Option

Description

enable

Enable setting.

disable

Disable setting.

dont-send-CR2

Do not send CR when connected (ISP2).

option

-

Option

Description

enable

Enable setting.

disable

Disable setting.

dont-send-CR3

Do not send CR when connected (ISP3).

option

-

Option

Description

enable

Enable setting.

disable

Disable setting.

extra-init1

Extra initialization string to ISP 1.

string

Maximum length: 127

extra-init2

Extra initialization string to ISP 2.

string

Maximum length: 127

extra-init3

Extra initialization string to ISP 3.

string

Maximum length: 127

holddown-timer

Hold down timer in seconds.

integer

Minimum value: 1 Maximum value: 60

idle-timer

MODEM connection idle time.

integer

Minimum value: 1 Maximum value: 9999

interface

Name of redundant interface.

string

Maximum length: 63

lockdown-lac

Allow connection only to the specified Location Area Code (LAC).

string

Maximum length: 127

mode

Set MODEM operation mode to redundant or standalone.

option

-

Option

Description

standalone

Standalone.

redundant

Redundant for an interface.

network-init

AT command to set the Network name/type (AT+COPS=<mode>,[<format>,<oper>[,<AcT>]]).

string

Maximum length: 127

passwd1

Password to access the specified dialup account.

password

Not Specified

passwd2

Password to access the specified dialup account.

password

Not Specified

passwd3

Password to access the specified dialup account.

password

Not Specified

peer-modem1

Specify peer MODEM type for phone1.

option

-

Option

Description

generic

All other modem type.

actiontec

ActionTec modem.

ascend_TNT

Ascend TNT modem.

peer-modem2

Specify peer MODEM type for phone2.

option

-

Option

Description

generic

All other modem type.

actiontec

ActionTec modem.

ascend_TNT

Ascend TNT modem.

peer-modem3

Specify peer MODEM type for phone3.

option

-

Option

Description

generic

All other modem type.

actiontec

ActionTec modem.

ascend_TNT

Ascend TNT modem.

phone1

Phone number to connect to the dialup account (must not contain spaces, and should include standard special characters).

string

Maximum length: 63

phone2

Phone number to connect to the dialup account (must not contain spaces, and should include standard special characters).

string

Maximum length: 63

phone3

Phone number to connect to the dialup account (must not contain spaces, and should include standard special characters).

string

Maximum length: 63

pin-init

AT command to set the PIN (AT+PIN=<pin>).

string

Maximum length: 127

ppp-echo-request1

Enable/disable PPP echo-request to ISP 1.

option

-

Option

Description

enable

Enable setting.

disable

Disable setting.

ppp-echo-request2

Enable/disable PPP echo-request to ISP 2.

option

-

Option

Description

enable

Enable setting.

disable

Disable setting.

ppp-echo-request3

Enable/disable PPP echo-request to ISP 3.

option

-

Option

Description

enable

Enable setting.

disable

Disable setting.

priority

Priority of learned routes.

integer

Minimum value: 0 Maximum value: 4294967295

redial

Redial limit.

option

-

Option

Description

none

Forever.

1

One attempt.

2

Two attempts.

3

Three attempts.

4

Four attempts.

5

Five attempts.

6

Six attempts.

7

Seven attempts.

8

Eight attempts.

9

Nine attempts.

10

Ten attempts.

reset

Number of dial attempts before resetting modem (0 = never reset).

integer

Minimum value: 0 Maximum value: 10

status

Enable/disable Modem support (equivalent to bringing an interface up or down).

option

-

Option

Description

enable

Enable setting.

disable

Disable setting.

traffic-check

Enable/disable traffic-check.

option

-

Option

Description

enable

Enable setting.

disable

Disable setting.

username1

User name to access the specified dialup account.

string

Maximum length: 63

username2

User name to access the specified dialup account.

string

Maximum length: 63

username3

User name to access the specified dialup account.

string

Maximum length: 63

wireless-port

Enter wireless port number, 0 for default, 1 for first port, ...

integer

Minimum value: 0 Maximum value: 4294967295