add internet-connection interface WAN

In the R81.10.X releases, this command is available starting from the R81.10.00 version.

Description

Adds a new internet connection using the WAN physical interface (multiple internet connection can engage in High Availability/Load Sharing).

WAN - DHCP

Syntax

add internet-connection name "<name>" interface WAN type dhcp

Parameters

Parameter

Description

name

Connection name

interface

Interface name

Press TAB to see available options

type

Connection type

Press TAB to see available options

vlan-id

VLAN ID

A number with no fractional part (integer)

conn-test-timeout

Connection test timeout - When configuring a connection you can define that the command does not return until the connection was established successfully or when a timeout is reached (on failure). The conn-test-timeout is the maximum amount of time (in seconds) to wait until checking the status of the configured Internet connection.

  • If the Internet connection status is "Connected" - The output is "Connection successful."

  • If the Internet connection status is not connected - The output is "Connection failed."

By default, there is no check and the output is "Skipped connection test."

WAN - Static IP Address

Syntax

add internet-connection name "<name>" interface WAN type static default-gw <default-gw> ipv4-address <ipv4-address> mask-length <mask-length>

add internet-connection name "<name>" interface WAN type static default-gw <default-gw> ipv4-address <ipv4-address> subnet-mask <subnet-mask> { dns-primary <dns-primary>dns-secondary <dns-secondary> dns-tertiary <dns-tertiary>} { use-connection-as-vlan vlan-id <vlan-id>} { conn-test-timeout <conn-test-timeout> }

Parameters

Parameter

Description

name

Connection name

interface

Interface name

Press TAB to see available options

type

Connection type

Press TAB to see available options

default-gw

WAN default gateway (in the advanced section of PPTP and L2TP)

ipv4-address

IP address field (for static IP and bridge settings)

mask-length

Subnet mask length

subnet-mask

Subnet mask

A subnet mask, or 255.255.255.255

dns-primary

First DNS server IP address

dns-secondary

Second DNS server IP address

dns-tertiary

Third DNS server IP address

vlan-id

VLAN ID

A number with no fractional part (integer)

conn-test-timeout

Connection test timeout

A number with no fractional part (integer)

WAN - L2TP

Syntax

add internet-connection name "<name>" interface WAN type l2tp server <server> password-hash <password-hash>

add internet-connection name "<name>" interface WAN type l2tp server <server> password <password> username <username> { local-ipv4-address <local-ipv4-address> wan-ipv4-address <wan-ipv4-address> wan-mask-length <wan-mask-length> }

add internet-connection name "<name>" interface WAN type l2tp server <server> password <password> username <username> { local-ipv4-address <local-ipv4-address> wan-ipv4-address <wan-ipv4-address> wan-subnet-mask <wan-mask-length> default-gw <default-gw>} { local-ipv4-address <local-ipv4-address> }

Parameters

Parameter

Description

name

Connection name

interface

Interface name

Press TAB to see available options

type

Connection type

Press TAB to see available options

server

Server IP address

password

Password for PPP connection or cellular modem settings

password-hash

The hash of the user password

username

User name for PPP connection or cellular modem settings

Usually <username>@<ISP>

local-ipv4-address

Local tunnel IP address or Auto for automatic

An IP address, or 'auto'

wan-ipv4-address

WAN IP address wrapper

An IP address, or 'auto'

wan-mask-length

WAN subnet mask length

wan-subnet-mask

WAN subnet mask (in the advanced section)

default-gw

WAN default gateway (in the advanced section of PPTP and L2TP)

vlan-id

VLAN ID

A number with no fractional part (integer)

conn-test-timeout

Connection test timeout

A number with no fractional part (integer)

WAN - PPPoE

Syntax

add internet-connection name < name> interface WAN type pppoe username <username> password-hash <password-hash>

add internet-connection name "<name>" interface WAN type pppoe username <username> password <password-hash> { is-unnumbered-pppoe {true | false} local-ipv4-address <local-ipv4-address> }

Parameters

Parameter

Description

name

Connection name

interface

Interface name

Press TAB to see available options

type

Connection type

Press TAB to see available options

is-unnumbered-pppoe

Unnumbered PPPoE lets you manage a range of IP addresses and dial only once

Type: Boolean (true/false)

local-ipv4-address

Local tunnel IP address or Auto for automatic

An IP address, or 'auto'

password

Password for PPP connection or cellular modem settings

password-hash

The hash of the user password

username

User name for PPP connection or cellular modem settings

Usually <username>@<ISP>

vlan-id

VLAN ID

A number with no fractional part (integer)

conn-test-timeout

Connection test timeout

A number with no fractional part (integer)

WAN - PPTP

Syntax

add internet-connection name "<name>" interface WAN type pptp server <server> password-hash <password-hash>

command_synadd internet-connection name "<name>" interface WAN type pptpserver <server> password <password > username <username> { { local-ipv4-address <local-ipv4-address> wan-ipv4-address <wan-ipv4-address> wan-mask-length <wan-mask-length>

add internet-connection name "<name>" interface WAN type pptp server <server> password <password> username <username> { local-ipv4-address <local-ipv4-address> wan-ipv4-address <wan-ipv4-address> wan-subnet-mask <wan-subnet-mask> default-gw <default-gw>} { local-ipv4-address <local-ipv4-address> }

Parameters

Parameter

Description

name

Connection name

interface

Interface name

Press TAB to see available options

type

Connection type

Press TAB to see available options

server

Server IP address

password

Password for PPP connection or cellular modem settings

password-hash

The hash of the user password

username

User name for PPP connection or cellular modem settings

Usually <username>@<ISP>

local-ipv4-address

Local tunnel IP address or Auto for automatic

An IP address, or 'auto'

wan-ipv4-address

WAN IP address wrapper

An IP address, or 'auto'

wan-mask-length

WAN subnet mask length

wan-subnet-mask

WAN subnet mask (in the advanced section)

default-gw

Default Gateway

vlan-id

VLAN ID

conn-test-timeout

Connection test timeout (in seconds)

Example Command

add internet-connection name "My connection" interface WAN true vlan-id 200 type static ipv4-address 192.168.1.1 subnet-mask 255.255.255.0 default-gw 192.168.1.1 dns-primary 192.168.1.1 dns-secondary 192.168.1.1 dns-tertiary 192.168.1.1 conn-test-timeout 50