set internet-connection dmz-connection rj45/sfp-fiber / sfp-dsl

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

Description

Configure an RJ45/SFP-Fiber or SFP-DSL internet connection.

Syntax for RJ45/SFP-Fiber

set internet-connection "<Name>" dmz-connection rj45/sfp-fiber

      type

            bridge bridge-name <Name> bridge-type

                  dhcp

                  static

                        default-gw <IPv4-of-Default-Gateway>

                        [ dns-primary <Primary-DNS-Server> ]

                        [ dns-secondary <Secondary-DNS-Server> ]

                        [ dns-tertiary <Tertiary-DNS-Server> ]

            dhcp

            ds-lite

                  aftr-address <IPv6-Tunnel-Address>

                  linked-ipv6-connection <Name>

                  [ dns-primary <Primary-DNS-Server> ]

                  [ dns-secondary <Secondary-DNS-Server>]

                  [ dns-tertiary <Tertiary-DNS-Server> ]

                  [ probe-servers {on | off} ]

            ipip

                  ipv4-address <IPv4-Address>

                        mask-length <Subnet-Mask-Length>

                        subnet-mask <Subnet-Mask> }

                  aftr-address <IPv6-Tunnel-Address>

                  linked-ipv6-connection <Name>

                  vne-service-name

                        [ transix ]

                              vne-update-server-password <VNE-Update-Password>

                              vne-update-server-url <VNE-Update-URL> ]

                              vne-update-server-username <VNE-Update-Username>

                        [ v6-connect

                              vne-update-server-password <VNE-Update-Password>

                              vne-update-server-url <VNE-Update-URL> ]

                              vne-update-server-username <VNE-Update-Username>

                        [ xpass ]

                              enable-vne-unnumbered-ip {on | off}

                              vne-ddns-id <DDNS-ID>

                              vne-ddns-password <DDNS-Password>

                              vne-fqdn <FQDN>

                              vne-update-server-password <VNE-Update-Password>

                              vne-update-server-url <VNE-Update-URL>

                              vne-update-server-username <VNE-Update-Username>

                  [ dns-primary <Primary-DNS-Server> ]

                  [ dns-secondary <Secondary-DNS-Server>]

                  [ dns-tertiary <Tertiary-DNS-Server> ]

                  [ probe-servers {on | off} ]

            l2tp

                  username <Username>

                  password <Password>

                  password-hash <Password-Hash>

                  server <IPv4-Address>

                  [ local-ipv4-address { <Local-IPv4-Address> | auto} ]

                  [ wan-ipv4-address <IPv4-Address> ]

                        wan-mask-length <Subnet-Mask-Length>

                        wan-subnet-mask <Subnet-Mask> }

                        default-gw <IPv4-of-Default-Gateway>

            pppoe

                  username <Username>

                  { password <Password> | password-hash <Password-Hash> }

                  [ is-unnumbered-pppoe {true | false} ]

                  [ local-ipv4-address { <Local-IPv4-Address> | auto }]

                  [ wan-ipv4-address ]

                         auto

                        <IPv4-Address>

                              wan-mask-length <Subnet-Mask-Length>

                              wan-subnet-mask <Subnet-Mask>

                              default-gw <IPv4-of-Default-Gateway>

            pptp

                  username <Username>

                  { password <Password> | password-hash <Password-Hash> }

                  server <IPv4-Address>

                  [ local-ipv4-address { <Local-IPv4-Address> | auto }]

                  [ wan-ipv4-address

                       auto

                       <IPv4-Address>

                              wan-mask-length <Subnet-Mask-Length>

                              wan-subnet-mask <Subnet-Mask>

                              default-gw <IPv4-of-Default-Gateway>

            static

                  ipv4-address <IPv4-Address>

                  mask-length <Subnet-Mask-Length>

                  subnet-mask <Subnet-Mask>

                  default-gw <IPv4-of-Default-Gateway>

                  [ dns-primary <Primary-DNS-Server> ]

                  [ dns-secondary <Secondary-DNS-Server>]

                  [ dns-tertiary <Tertiary-DNS-Server> ]

                  [ probe-next-hop {on | off} ]

                  [ probe-servers {on | off} ]

      [ use-connection-as-vlan vlan-id <VLAN-ID> ]

      [ conn-test-timeout <Timeout> ]

Syntax for SFP-DSL

set internet-connection "<Name>" dmz-connection sfp-dsl

      type

            ipoe-dynamic

                  [ encapsulation {llc | vcmux} ]

                  [ vci <0-65535> ]

                  [ vpi <0-255> ]

            ipoe-static

                  ipv4-address <IPv4-Address>

                  mask-length <Subnet-Mask-Length>

                  subnet-mask <Subnet-Mask> }

                  default-gw <IPv4-of-Default-Gateway>

                  [ dns-primary <Primary-DNS-Server> ]

                  [ dns-secondary <Secondary-DNS-Server>]

                  [ dns-tertiary <Tertiary-DNS-Server> ]

                  [ encapsulation {llc | vcmux} ]

                  [ vci <0-65535> ]

                  [ vpi <0-255> ]

            pppoe

                  username <Username>

                  password <Password>

                  password-hash <Password-Hash>

                  [ encapsulation {llc | vcmux} ]

                  [ idle-time <0-1440> ]

                  [ is-unnumbered-pppoe {true | false} ]

                  [ local-ipv4-address { <Local-IPv4-Address> | auto } ]

                  [ method {auto | chap | pap} ]

                  [ standard <ADSL-standard> ]

                  [ vci <0-65535> ]

                  [ vpi <0-255> ]

      [ use-connection-as-vlan vlan-id <VLAN-ID> ]

Parameters

Parameter

Description

internet-connection

The name of the Internet connection.

Press the TAB key to see the available options.

dmz-connection

The type of the Internet connection:

  • rj45/sfp-fiber

  • sfp-dsl

type

The type of the connection:

  • bridge - Bridge

  • dhcp - DHCP IPv4

  • ds-lite - Dual-Stack Lite (DS-Lite)

  • ipip - IPv4 over IPv6 (IPIP)

  • l2tp - L2TP

  • pppoe - PPPoE

  • pptp - PPTP

  • static - Static IPv4 address

bridge-name

The name of the Bridge connection.

A bridge name should from br0 to br9.

bridge-type

The type of the bridge for this connection:

  • dhcp - IP address is assigned automatically by a DHCP server

  • static - IP address is assigned manually

ipv4-address

IPv4 address (for a static IP configuration).

mask-length

IPv4 subnet mask length.

subnet-mask

IPv4 subnet mask (X.X.X.X, or 255.255.255.255).

default-gw

IPv4 address of the default gateway.

dns-primary

IPv address of the Primary DNS server.

dns-secondary

IPv address of the Secondary DNS server.

dns-tertiary

IPv address of the Tertiary DNS server.

aftr-address

IPv6 address or Hostname for the DS-Lite / IPIP tunnel.

linked-ipv6-connection

IPv6 internet connection name, on which the DS-Lite / IPIP tunnel is configured.

Press the TAB key to see the available options.

probe-next-hop

Enables (on) or disables (off) automatic detection of connectivity to the default gateway.

probe-servers

Enables (on) or disables (off) automatic detection of connectivity to one or more specified servers on the Internet.

You configure these servers with this command:

set internet-connection <Name> {probe-icmp-servers | probe-icmp6-servers}

vne-service-name

The VNE provider name:

  • transix - Transix

  • v6-connect - v6 Connect

  • xpass - Xpass

enable-vne-unnumbered-ip

Enables (on) or disables (off) the assignment of a public IP address to a single LAN interface or to a LAN switch.

vne-ddns-id

DDNS ID of the VNE provider.

vne-ddns-password

DDNS password of the VNE provider.

vne-fqdn

FQDN of the VNE provider.

vne-update-server-password

The password for the VNE provider update server.

vne-update-server-url

The URL for the VNE provider update server.

vne-update-server-username

The username for the VNE provider update server.

server

Server IPv4 address.

username

User name.

password

User password in plain text.

password-hash

The hash of the user password

local-ipv4-address

Local IPv4 address for the tunnel.

The option "auto" assigns an IP address automatically.

is-unnumbered-ppoe

Enables (true) or disables (false) the unnumbered tunnel.

With an unnumbered PPPoE you can manage a range of IP addresses and dial only once.

wan-ipv4-address

WAN wrapper IPv4 address.

The option "auto" assigns an IP address automatically.

wan-mask-length

WAN wrapper subnet mask length.

wan-subnet-mask

WAN wrapper subnet mask.

encapsulation

Encapsulation type for the ADSL connection:

  • llc - LLC

  • vcmux - VCMUX

idle-time

Disconnect idle time 0-1440 seconds.

method

Authentication protocol:

  • auto - Auto

  • chap - CHAP

  • pap - PAP

standard

The ADSL standard to use:

  • adsl2 - ADSL2

  • adsl2+ - ADSL2+

  • gdmt - G.DMT

  • glite - G.lite

  • multimode - Multimode

  • t1413 - T.1413

vci

The VCI value (0-65535) for the ADSL connection.

vpi

The VPI value (0-255) for the ADSL connection.

use-connection-as-vlan vlan-id

Configures this connection as VLAN.

conn-test-timeout

Connection test timeout in seconds.

Example Commands

  • Configure a static IPv4 address:

    set internet-connection Internet1 dmz-connection rj45/sfp-fiber type static ipv4-address 192.168.20.33 subnet-mask 255.255.255.0 default-gw 192.168.20.1

  • Configure a VLAN:

    set internet-connection "My connection" dmz-connection rj45/sfp-fiber true vlan-id 200 type dhcp conn-test-timeout 50