www.hongdian.com

CLI User Manual 3G/4G Router

3G/4G Router CLI User Manual Shenzhen Hongdian Technologies Corporation provides customers with a full range of technical supports, and the users can contact headquarter of Hongdian directly.

Shenzhen Hongdian Technologies Corporation Address

F14-16,Headquarter Economic Center, Zhonghaixin Science&Tech Park, Bulan Road, Longgang District, Shenzhen 518112, China

Website

http: //www.hongdian.com

Technical Support

+86-755-88864288-5

Fax Number

+86-755-83404677

Email

[email protected]

Copyright © Shenzhen Hongdian Technologies Corporation. 2017 All rights reserved. All information in this user manual is protected by copyright law. No organization or individual shall copy or reproduce the whole or part of this user manual by any means without written authorization from Shenzhen Hongdian Technologies Corporation.

Trademarks and Permissions and DTU are the trademarks and logos of Shenzhen Hongdian Technologies Corporation. Other trademarks and logos mentioned in this manual belong to other organizations related. Shenzhen Hongdian Technologies Corporation does not own the rights of other trademarks and logos.

Caution The contents of this document will be updated at irregular intervals as a result of the product version upgrade or other reasons. Unless otherwise agreed, this document is to be used only as a guide, and all s tatements, information and recommendations in this document shall not constitute any express or implied warranty.

Doc. Version 1 .2

ii

3G/4G Router CLI User Manual

Foreword Overview This document describes Hongdian 4G Router CLI commonly used functions and commands. This document is also applicable to Hongdian 2G/3G Router products, and specific matters may consult the relevant technical staff.

Product Version The product version corresponding to this document is shown below. Product name

product version

H8922S 3G/4G Router

V12 (dual serial port with both DTU and GPS support)

H8922 3G/4G Router

V13 and V30

H8951 3G/4G Router

V21 and V30 (single mode single card, no dynamic routing and serial port, no support for DTU and GPS)

H7920 3G/4G Router

V14 and V30, single mode single cards, no WAN ports, not support dynamic routing (RIP/OSPF) (other models are optional), GPS is not supported

H7921 3G/4G Router

V14 and V30, single mode single cards, no WAN ports, not support dynamic routing (RIP/OSPF) (other models are optional), GPS is not supported

H8960 3G/4G Router

V11, single mode single card

H7960 3G/4G Router

V21, single mode dual card, without WAN port

Revision Record This revision record accumulates instructions for each document update. Doc Release Details Version Data V1.0 2011.06.13 First Release for Hongdian Router V1.1 2016.07.29 Second update base on doc. version V1.0, Added: LOOKBACK, WLAN, TCPMSS, IPFIX, LINKBACKUP, QoS, CLI account management configuration; Update: Configure the timed management configuration to the task management configuration; change the static route configuration to the route configuration and increase the policy route configuration. Delete: delete the SSH account management configuration; delete the access

Doc. Version 1 .2

iii

3G/4G Router CLI User Manual

V1.2

2017.06.05

Doc. Version 1 .2

control command profile. Third update base on doc. version V1.1, Added: increase configuration of WLAN_AC, BGP, and VRRP; Update: update Ethernet interfaces, new configurations for WLAN, Modem, DHCP, DTU, TUNNEL, IPSec, and OpenVPN.

iv

3G/4G Router CLI User Manual

Contents Foreword.................................................................................................................................................3 Overview ..........................................................................................................................................3 Product Version .................................................................................................................................3 Revision Record .................................................................................................................................3 Contents..................................................................................................................................................5 1 Instruction ............................................................................................................................................1 1.1 Feature........................................................................................................................................1 1.2 Interface......................................................................................................................................1 1.3 CLI Mode .....................................................................................................................................1 1.4 CLI Common Instruction ................................................................................................................2 1.5 Command Line Interface Feature ....................................................................................................2 1.5.1 Command Online Help ...........................................................................................................................................2 1.5.2 CLI Error Message ....................................................................................................................................................3 1.5.3 Command In History ...............................................................................................................................................3 1.5.4 CLI Display Feature ..................................................................................................................................................4

2 Login CLI ...............................................................................................................................................5 3 CLI Command Reference.........................................................................................................................7 3.1 Ethernet/Bridge Interface Config ....................................................................................................7 3.1.1 Ethernet port config ................................................................................................................................................7 3.1.2 LAN Port Config ........................................................................................................................................................8

3.2 LOOPBACK Configuration ...............................................................................................................9 3.3 WLAN Configuration .....................................................................................................................9 3.4 WLAN_AC Configuration .............................................................................................................. 11 3.5 Modem Config ........................................................................................................................... 13 3.5.1 Enable/Disable modem ....................................................................................................................................... 13 3.5.2 Modem Description ............................................................................................................................................. 13 3.5.3 Access Point Name ............................................................................................................................................... 13 3.5.4 Service Code .......................................................................................................................................................... 14 3.5.5 Set Username/Password ..................................................................................................................................... 14 3.5.6 Interval & Retry times .......................................................................................................................................... 14 3.5.7 Network Type ........................................................................................................................................................ 14 3.5.8 Config simcard....................................................................................................................................................... 15 3.5.9 PPP advanced setting........................................................................................................................................... 15 3.5.10 Delete Config....................................................................................................................................................... 16

Doc. Version 1 .2

v

3G/4G Router CLI User Manual 3.5.11 Print Modem Status ........................................................................................................................................... 16

3.6 Parameter Select ........................................................................................................................ 17 3.6.1 Description of Parameter Select ........................................................................................................................ 17 3.6.2 Config interval & retry ......................................................................................................................................... 17 3.6.3 Interface Select ..................................................................................................................................................... 17 3.6.4 Delete Config ......................................................................................................................................................... 18 3.6.5 Print Rule Select Config Mode Status ............................................................................................................... 18

3.7 DNS Config................................................................................................................................. 19 3.7.1 Config DNS IP......................................................................................................................................................... 19 3.7.2 Delete DNS IP ........................................................................................................................................................ 19

3.8 Link Backup................................................................................................................................ 19 3.9 DHCP Config............................................................................................................................... 21 3.9.1 Enable/Disable DHCP ........................................................................................................................................... 21 3.9.2 Config Lease Time................................................................................................................................................. 21 3.9.3 Config IP Pool ........................................................................................................................................................ 21 3.9.4 Config Gateway ..................................................................................................................................................... 22 3.9.5 Config DNS ............................................................................................................................................................. 22 3.9.6 Map IP..................................................................................................................................................................... 22 3.9.7 Delete Config ......................................................................................................................................................... 22 3.9.8 Print DHCP Status ................................................................................................................................................. 23

3.10 ICMP Check Config .................................................................................................................... 24 3.10.1 Enable/Disable ICMP ......................................................................................................................................... 24 3.10.2 ICMP Description................................................................................................................................................ 24 3.10.3 Config destination address ............................................................................................................................... 24 3.10.4 Config interval & retry time .............................................................................................................................. 25 3.10.5 Config Failure Interval........................................................................................................................................ 25 3.10.6 Config Source Address....................................................................................................................................... 25 3.10.7 Config Source Interface ..................................................................................................................................... 25 3.10.8 Delete Config....................................................................................................................................................... 26 3.10.9 Print ICMP Check Status .................................................................................................................................... 26

3.11 Config Interface Check ............................................................................................................... 27 3.11.1 Enable/Disable Interface Check ....................................................................................................................... 27 3.11.2 Interface Check Description ............................................................................................................................. 27 3.11.3 Config Interface to Check .................................................................................................................................. 27 3.11.4 Config Traffic Direction ...................................................................................................................................... 28 3.11.5 Config Check Interval & Retry Times ............................................................................................................... 28 3.11.6 Delete Config....................................................................................................................................................... 28 3.11.7 Print Interface Check Status ............................................................................................................................. 29

3.12 DDNS Config ............................................................................................................................. 30

Doc. Version 1 .2

vi

3G/4G Router CLI User Manual 3.12.1 Enable/Disable DDNS......................................................................................................................................... 30 3.12.2 DDNS Description............................................................................................................................................... 30 3.12.3 Config DNS of DDNS Server .............................................................................................................................. 30 3.12.4 Config Server Port .............................................................................................................................................. 30 3.12.5 Config Local Domain .......................................................................................................................................... 31 3.12.6 Config Username/Password ............................................................................................................................. 31 3.12.7 Config Check Interval ......................................................................................................................................... 31 3.12.8 Config Update Interval....................................................................................................................................... 32 3.12.9 Delete Config....................................................................................................................................................... 32 3.12.10 Print DDNS Status............................................................................................................................................. 32

3.13 DTU Config ............................................................................................................................... 34 3.13.1 Enable/Disable DTU Function .......................................................................................................................... 34 3.13.2 DTU Function Description ................................................................................................................................. 34 3.13.3 Config Working Mode........................................................................................................................................ 34 3.13.4 Config Destination Address .............................................................................................................................. 34 3.13.5 Config Destination Port ..................................................................................................................................... 35 3.13.6 Config Local Port................................................................................................................................................. 35 3.13.7 Config Local ID .................................................................................................................................................... 35 3.13.8 Config Heartbeat Interval.................................................................................................................................. 35 3.13.9 Config Reconnect Interval & Retry Times ...................................................................................................... 36 3.13.10 Config Timeout of Receiving from Internet ................................................................................................. 36 3.13.11 Config Timeout of Receiving from RS232 Port............................................................................................ 36 3.13.12 Config Serial Packet Max Length ................................................................................................................... 36 3.13.13 Config Serial Port Baud Rate .......................................................................................................................... 36 3.13.14 Config Serial Port Parity .................................................................................................................................. 37 3.13.15 Config Serial Port Data Bits............................................................................................................................. 37 3.13.16 Config Serial Port Stop Bits ............................................................................................................................. 37 3.13.17 Protocol Select.................................................................................................................................................. 37 3.13.18 Delete Config..................................................................................................................................................... 38 3.13.19 Print DTU Status ............................................................................................................................................... 38

3.14 GPS Configuration ..................................................................................................................... 38 3.15 SNMP Config ............................................................................................................................ 40 3.15.1 Enable/Disable SNMP ........................................................................................................................................ 40 3.15.2 SNMP Description .............................................................................................................................................. 40 3.15.3 Config SNMP Port ............................................................................................................................................... 40 3.15.4 Config SNMP Password ..................................................................................................................................... 40 3.15.5 Delete Config....................................................................................................................................................... 41 3.15.6 Print SNMP Status .............................................................................................................................................. 41

3.16 M2M Platfrom Access Config ...................................................................................................... 42 3.16.1 Enable/Disable M2M Access In........................................................................................................................ 42

Doc. Version 1 .2

vii

3G/4G Router CLI User Manual 3.16.2 M2M Description................................................................................................................................................ 42 3.16.3 Config Destination IP ......................................................................................................................................... 42 3.16.4 Config Max Login Retry Times .......................................................................................................................... 42 3.16.5 Config Heartbeat Interval.................................................................................................................................. 43 3.16.6 Config Max Task Retransmit Times.................................................................................................................. 43 3.16.7 Config Task Timeout........................................................................................................................................... 43 3.16.8 Config M2M Server Port.................................................................................................................................... 43 3.16.9 Delete Config....................................................................................................................................................... 43 3.16.10 Print M2M Status ............................................................................................................................................. 44

3.17 Config Timing Action ................................................................................................................. 44 3.17.1 Enable/Disable Timing Action .......................................................................................................................... 44 3.17.2 Timing Action Description................................................................................................................................. 44 3.17.3 Config Action....................................................................................................................................................... 45 3.17.4 Config time .......................................................................................................................................................... 45 3.17.5 Config Date .......................................................................................................................................................... 45 3.17.6 Config Day of the Week ..................................................................................................................................... 46 3.17.7 Delete Config....................................................................................................................................................... 46 3.17.8 Print Timing Action Status ................................................................................................................................ 46

3.18 Trigger Settings Configuration..................................................................................................... 47 3.19 VPDN Config............................................................................................................................. 48 3.19.1 Enable/Disable VPDN......................................................................................................................................... 48 3.19.2 VPDN Description............................................................................................................................................... 48 3.19.3 Config Destination Address .............................................................................................................................. 48 3.19.4 Config Protocol ................................................................................................................................................... 48 3.19.5 Config Username/Password ............................................................................................................................. 49 3.19.6 PPP Advanced Setting........................................................................................................................................ 49 3.19.7 Delete Config....................................................................................................................................................... 49 3.19.8 Print VPDN Status ............................................................................................................................................... 50

3.20 TUNNEL Config ......................................................................................................................... 51 3.20.1 Enable/Disable Tunnel....................................................................................................................................... 51 3.20.2 VPDN Description............................................................................................................................................... 51 3.20.3 Config destination address ............................................................................................................................... 51 3.20.4 Config Tunnel Mode........................................................................................................................................... 51 3.20.5 Config IP Address................................................................................................................................................ 52 3.20.6 Config Source IP Address .................................................................................................................................. 52 3.20.7 Config Source Interface ..................................................................................................................................... 52 3.20.8 Delete Config....................................................................................................................................................... 52 3.20.9 Print TUNNEL Status .......................................................................................................................................... 53

3.21 IPSEC Config ............................................................................................................................. 54 3.21.1 Phase1 .................................................................................................................................................................. 54

Doc. Version 1 .2

viii

3G/4G Router CLI User Manual 3.21.2 Phase2 .................................................................................................................................................................. 57 3.21.3 Config Interface .................................................................................................................................................. 60

3.22 OpenVPN Configuration............................................................................................................. 62 3.23 NAT Config ............................................................................................................................... 65 3.23.1 Config destination IP Address .......................................................................................................................... 65 3.23.2 Config Source IP Address .................................................................................................................................. 65 3.23.3 Config Source Interface ..................................................................................................................................... 65 3.23.4 Delete Config....................................................................................................................................................... 65

3.24 Routing Configuration................................................................................................................ 66 3.25 RIP Config ................................................................................................................................ 68 3.25.1 Enable/Disable RIP ............................................................................................................................................. 68 3.25.2 RIP Description.................................................................................................................................................... 68 3.25.3 Config IP ............................................................................................................................................................... 68 3.25.4 Set Neighbour ..................................................................................................................................................... 68 3.25.5 Set Redistribute .................................................................................................................................................. 69 3.25.6 Set Passive Interface .......................................................................................................................................... 69 3.25.7 Set distribute list................................................................................................................................................. 69 3.25.8 Set Version No..................................................................................................................................................... 69 3.25.9 Delete Config....................................................................................................................................................... 69 3.25.10 Print RIP Status ................................................................................................................................................. 70

OSPF Config .................................................................................................................................... 70 3.25.11 Enable/Disable OSPF ....................................................................................................................................... 70 3.25.12 OSPF Description .............................................................................................................................................. 70 3.25.13 Set Network ...................................................................................................................................................... 70 3.25.14 Set Neighbour ................................................................................................................................................... 71 3.25.15 Set Redistribute ................................................................................................................................................ 71 3.25.16 Set Passive Interface ........................................................................................................................................ 71 3.25.17 Set Distribute List ............................................................................................................................................. 71 3.25.18 Set Version No. ................................................................................................................................................. 72 3.25.19 Delete Config..................................................................................................................................................... 72 3.25.20 Print OSPF Status.............................................................................................................................................. 72

3.26 BGP......................................................................................................................................... 72 3.27 QoS Configuration..................................................................................................................... 78 3.28 IP Filter Configuration................................................................................................................ 79 3.29 Domain Name Filtering Configuration.......................................................................................... 80 3.30 MAC Filtering and Invalid Package Access Configuration ................................................................ 80 3.31 Syslog Config ............................................................................................................................ 82 3.31.1 Enable/Disable Syslog........................................................................................................................................ 82 3.31.2 Syslog Description .............................................................................................................................................. 82

Doc. Version 1 .2

ix

3G/4G Router CLI User Manual 3.31.3 Config destination address ............................................................................................................................... 82 3.31.4 Config Server Port .............................................................................................................................................. 82 3.31.5 Set Log File Size................................................................................................................................................... 82 3.31.6 Delete Config....................................................................................................................................................... 83 3.31.7 Print Syslog status .............................................................................................................................................. 83

3.32 NTP Config ............................................................................................................................... 83 3.32.1 Enable/Disable NTP............................................................................................................................................ 83 3.32.2 NTP Description.................................................................................................................................................. 83 3.32.3 Config destination address ............................................................................................................................... 84 3.32.4 Config Update Interval....................................................................................................................................... 84 3.32.5 Config Time Zone................................................................................................................................................ 84 3.32.6 Delete Config....................................................................................................................................................... 84 3.32.7 Print NTP Status .................................................................................................................................................. 85

3.33 User Management Configuration ................................................................................................ 85 3.34 CLI Account Management Configuration ...................................................................................... 85 3.35 IPFIX Configuration ................................................................................................................... 86 3.36 TCPMSS Configuration ............................................................................................................... 87 3.37 VRRP Settings ........................................................................................................................... 87 3.38 RAW Table Settings ................................................................................................................. 188 3.39 Access Control List .................................................................................................................... 89 3.39.1 Stand Access Control List Config...................................................................................................................... 89 3.39.2 Extensible Access Control List .......................................................................................................................... 89 3.39.3 Extensible Standard Access Control List......................................................................................................... 90 3.39.4 Extensible Access Control List Extension........................................................................................................ 90 3.39.5 Access Control List Extension With Port......................................................................................................... 90

3.40 Status ...................................................................................................................................... 92 3.40.1 Show version....................................................................................................................................................... 92 3.40.2 Show VPDN Status.............................................................................................................................................. 92 3.40.3 Show IPSec Status .............................................................................................................................................. 92 3.40.4 Show Date............................................................................................................................................................ 92 3.40.5 Show SNMP Version........................................................................................................................................... 92 3.40.6 Show CPU Utilization ......................................................................................................................................... 92

3.41 Config File ................................................................................................................................ 93 3.41.1 Erase Current Config .......................................................................................................................................... 93 3.41.2 Save Current Config............................................................................................................................................ 93

Doc. Version 1 .2

x

3G/4G Router CLI User Manual

1 Instruction

Please check 3G router user manual to get WEB UI instruction.

1.1 Feature Network Interface   

UMTS/HSUPA/HSDPA/WCDMA/EDGE/GPRS/GSM WAN support Static IP/DHCP/PPPoE IEEE 802.11b/g Wireless LAN

Function               

3G convert to LAN and WIFI VLAN divide.(optional) DHCP Support Firewall and NAT/DMZ DDNS Service SNMPv2 & WMMP(optional), management platform. RIPv2,OSPF VPN: PPTP/L2TP, GRE, IPSEC Multiple check of network availability: LCP, ICMP, interface flow, heartbeat check. Static Route Packet filter Network flow statistic WEB UI management Local/Remote Firmware backup and update. Local/Remote syslog

1.2 Interface       

Antenna: 50Ω/SMA female USB: 2.0 Serial Port: RS-232(DCE) Ethernet: 4*10/100BaseT RJ45 self-adaption Wan: 1*10/100BaseT self-adaption Config interface: WEB DEF Key: Reset router to factory mode

1.3 CLI Mode CLI have three mode:

Hongdian Corporation

1

3G/4G Router CLI User Manual   

Normal mode: only support inquiry parameters. Authorization mode: full authorization to config and manage. Configuration mode: Configure the parameters

Purpose

Command

Enter Normal mode

Instruction Run CLI window, input Password

Enter Authorization mode

enable

input Password

Enter Configuraton mode

configure terminal

Enter configuration mode.

1.4 CLI Common Instruction Hongdian provides a series CLI commands and interface to users, made the config and management easier. CLI feature:   

- input, only if command not conflict, command could be accept. For example, input “sh” to execute “show” command.

1.5 Command Line Interface Feature 1.5.1 Command Online Help CLI provide two kind of online help: full help & part help, details below:

Full help Under any view, input “?” to get all Command description of current view. hongdian-Router>? enable Turn on privileged mode command exit Exit current mode and down to previous mode help Description of the interactive help s ystem list Print command list ping send icmp echo message reboot reboot system show Show running system information telnet open a telnet connection terminal Set terminal line parameters traceroute trace route to destination who Display who is on vty

Input one Command and “?” with blank divided, key words with this Command will show if there is any. hongdian-Router> show ?

Hongdian Corporation

2

3G/4G Router CLI User Manual history interface ip ipv6 kernellog memory syslog table version

Display the session command history Interface status and configuration IP information IPv6 information show kernel log information Memory statistics show system log information default routing table to use for all clients Displays Hongdian CLI version

Part help Input one character and “?” with it, all command start with this letter will show hongdian-Router> t? telnet open a telnet connection terminal Set terminal line parameters traceroute trace route to destination

Input one Command and blank, then input one character and “?” with it, all command start with this letter will show hongdian-Router> sh i? interface Interface status and configuration ip IP information ipv6 IPv6 information

Input first keywords of Command then press key, command start with the key words, press key to switch among those commands if there are multiple match. hongdian-Router> hel+press key hongdian-Router> help

1.5.2 CLI Error Message If Command inputted has error, follow message will display Error Message

Reaspm

Unrecognized command

No such Command

No such key words Parameter type error Parameter value cross-border Incomplete command

Command not completed

Too many parameters

Too many parameters

Ambiguous command

Ambiguous command

Wrong parameter

Wrong parameter

1.5.3 Command In History CLI provide Doskey-like function, input history will be saved and could be call back to execute.

Hongdian Corporation

3

3G/4G Router CLI User Manual

Purpose

Command

Instruction

Call previous Command



Call previous Command if there is any

Call next Command



Call next Command if there is any.

1.5.4 CLI Display Feature If return message over screen coverage, CLI provide pause function and provide follow choice. Key or Command

Function

Input when pausing

Display next message

Input when pausing

Display another screen message

Input any other key when pausing

Exit display

Hongdian Corporation

4

3G/4G Router CLI User Manual

2 Login CLI

1. Connect PC with router by Ethernet cable, and configure the PC IP is in the same segment with Hongdian Router whose default IP is 192.168.8.1.

2. Run Telnet client on PC, input router IP.

Hongdian Corporation

5

3G/4G Router CLI User Manual

3. Input your password to login CLI, default password is “super”.

4. After login, you can input “enable” to enter super mode, and further enter “configure terminal” to enter the configuration mode. Wherein, press the key “Tab” to auto complete instructions. Router CLI User Access Verification Password: Router> Router> en Router# conf Router# configure t Router# configure terminal

Hongdian Corporation

6

3G/4G Router CLI User Manual

3 CLI Command Reference

3.1 Ethernet/Bridge Interface Config 3.1.1 Ethernet port config Open/Shut Ethernet interface Purpose

Command

Instruction

Enter config mode

Configure terminal

-

Enter Ethernet port config mode

interface eth+ interface-number

-

Shut Ethernet port

shutdown

Open Ethernet port

no shutdown

-

Example: Shut Ethernet 0。 hongdian-Router# configure terminal hongdian-Router(config)#interface eth0 hongdian-Router(config-if)# shutdown

Config Ethernet port IP Address Purpose

Command

Instruction

Enter config mode

Configure terminal

-

Enter Ethernet port config mode

interface eth+ interface-number

-

Config Ethernet port IP Address

Ip address A.B.C.D/M

A.B.C.D is IP address, M is subnet mask digits.

Example: Config Ethernet port IP Address hongdian-Router# configure terminal hongdian-Router(config)#interface eth0 hongdian-Router(config-if)# ip address 192.168.8.1/24

Ethernet Port Status Purpose

Command

Show Ethernet port status

show interface interface-type interface-number

Hongdian Corporation

Instruction

7

3G/4G Router CLI User Manual

Example: Show Ethernet 0 status hongdian-Router# show interface eth0 eth0 Link encap:Ethernet HWaddr 00:50:C2:1A:2B:3C UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:3217 errors:0 dropped:0 overruns:0 frame:0 TX packets:18131 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:242725 (237.0 KiB) TX bytes:1 659238 (1.5 MiB)

Interrupt:4 Base address:0x1000

3.1.2 LAN Port Config Open/Shut LAN Purpose

Command

Instruction

Enter config mode

Configure terminal

-

Enter LAN port config mode

interface br+ interface-number

-

Shut LAN port

shutdown

LAN port is up as default.

Open LAN port

no shutdown

-

Example: shut LAN port br 0 hongdian-Router# configure terminal hongdian-Router(config)#interface br0 hongdian-Router(config-if)# shutdown

Set LAN IP address Purpose

Command

Enter config mode

Configure terminal

Enter LAN port config mode

interface br+ interface-number

Config LAN IP address

Ip address A.B.C.D/M

Instruction

A.B.C.D is IP address, M is subnet mask digits.

Example: Config IP of LAN br0 hongdian-Router# configure terminal hongdian-Router(config)#interface br0 hongdian-Router(config-if)# ip address 192.168.8.1/24

LAN Port Status Purpose

Command

Show LAN port status

show interface interface-type interface-number

Hongdian Corporation

Instruction

8

3G/4G Router CLI User Manual

Example: show LAN port br 0 status. hongdian-Router# show interface br0 br0 Link encap:Ethernet HWaddr 00:50:C2:1A:2B:3C inet addr:192.168.8.1 Bcast:192.168.8.255 Mask:255.255.255.0

3.2 LOOPBACK Configuration Loopback is a loopback address on the router, which is a virtual interface. To ensure the stability of routing ID, the interface does not appear the case of link failure. And it is a fully software specified logical port that supports all platforms, and the state is always UP, which can be used as a test interface. The Loopback configuration command is shown in table below. Command format

Function description

Remark

ip address A.B.C.D/M

Configure loopback interface segment

Nothing

[Configuration example] Interface loopback //enter interface configuration for IP address 127.0.0.1/24 //add exchange interface IP address

3.3 WLAN Configuration The WLAN configuration of Hongdian 4G Router is mainly configured with related parameters of WLAN wireless network. The WLAN configuration commands are shown in table below. Command Format

Function Description

Remark

ap isolate enable

Configure AP isolation mode

The default mode is disabled.

bssid WORD

Configure the remote AP's MAC address in "repeater" mode

Valid only in "repeater" mode

Configure network mode, including: band (bgn|n|bg)

  

bgn bg n

Configure network mode, including: network(bgn|n|bg)

  

bgn bg n

Configure the WLAN network mode on the 3.0.X version using the band parameter configuration Configure the WLAN network mode on the 7.0.X version using the network parameter configuration

Configuring bandwidth, including: bandwidth (20M|40M)

 

ip address A.B.C.D/M

Hongdian Corporation

20M 40M

Configuring the IP assignment

Empty The working mode is valid

9

3G/4G Router CLI User Manual

Command Format

ip dhcp client

Function Description

Remark

address

when it is station

Configure the IP allocation mode as DHCP mode

The working mode is valid when it is station

Configuring the working mode, including: mode (ap|station|repeater)

  

ssid CODE

ssid CODE hide

security (wpa|wpa2) encryption (tkip|aes) CODE lifetime

channel |auto

ap station repeater

Configure the SSID name and the broadcast status is enabled

Configure the SSID name and the broadcast status is disabled

Configure encryption methods, algorithms, WPA keys, and update time intervals

There is no repeater schema on the 7.0.X version The maximum length is 32 bytes Broadcast status configuration is valid only in AP mode The maximum length is 32 bytes Broadcast status configuration is valid only in AP mode The key length is 8-63 bytes Actual time interval: 120-86400 Updated time interval: seconds

Configure the work channel when not qualified for the auto mode

The working mode is invalid when the station mode is used Note: the work channel is 0-11 on the 7.0.X version

[Configuration example] interface wlan // enter wlan configuration mode band bgn // Configure the network mode as bgn mode ap // Configure the operating mode to ap mode no channel // Configure the working channel to auto mode no ap isolate // Configure AP isolation to disable mode ssid test // Configure the ssid name as test and the broadcast status is enabled bandwith 20M // configured bandwidth of 20MHz security wpa encryption aes test123 lifetime 1200 // Configure the encryption mode as wpa, the algorithm is aes, the key is test123, the update interval is 1200 seconds

Hongdian Corporation

10

3G/4G Router CLI User Manual

3.4 WLAN_AC Configuration The WLAN_AC configuration of macro 4G Router is mainly configured with related parameters of WLAN_AC wireless network. The WLAN_AC configuration commands are shown in table below. Command Format

Function Description

Remark

ap isolate enable

Configure AP isolation mode

The default mode is disabled.

Configure bandwidth, including: bandwidth (20M|40M|80M)

  

20M 40M 80M

Empty

ip address A.B.C.D/M

Configure the IP assignment address

The working mode is valid when it is station

ip dhcp client

Configure the IP allocation mode as DHCP mode

The working mode is valid when it is station

mode (ap|station)

Configuring the working mode, including:  

ssid CODE

ssid CODE hide

security (wpa|wpa2) encryption (tkip|aes) CODE lifetime

ap station

Configure the SSID name and the broadcast status is enabled

Configure the SSID name and the broadcast status is disabled

Configure encryption methods, algorithms, WPA keys, and update time intervals

Empty

The maximum length is 32 bytes Broadcast status configuration is valid only in AP mode The maximum length is 32 bytes Broadcast status configuration is valid only in AP mode The key length is 8-63 bytes Actual time interval: 120-86400 Updated time interval: seconds

security wep CODE

Configure the key that encrypts the WEP

The keys support ASCII 5/13 bits and Hex digits 10/26 bits

channel |auto

Configure the work channel when not qualified for the auto mode

The working mode is invalid when the station mode is used

[Configuration example]

Hongdian Corporation

11

3G/4G Router CLI User Manual

interface wlan_ac // Enter wlan configuration mode mode ap // Configure the operating mode to ap mode channel auto // Configure the working channel to auto mode ssid test // Configure the ssid name as test and the broadcast status is enabled bandwith 40M // configured bandwidth of 40MHz security wpa encryption aes test123 lifetime 1200 // Configure the encryption mode as wpa, the algorithm is aes, the key is test123, the update interval is 1200 seconds

Hongdian Corporation

12

3G/4G Router CLI User Manual

3.5 Modem Config 3.5.1 Enable/Disable modem Purpose

Command

Instruction

Enter config mode

Configure terminal

-

Enter modemconfig mode

interface modem interface-number

-

Disable modem

shutdown

Defaule value: enable

Enable modem

no shutdown

-

Example: Disable modem 0。 hongdian-Router# configure terminal hongdian-Router(config)#interface modem 0 hongdian-Router(config-modem)# shutdown

3.5.2 Modem Description Purpose

Command

Instruction

Enter config mode

Configure terminal

-

Enter modem config mode

interface modem interface-number

-

Modem description

description

Example: Modem 0 description hongdian-Router# configure terminal hongdian-Router(config)#interface modem 0 hongdian-Router(config-modem)#description hongdian

3.5.3 Access Point Name Purpose

Command

Instruction

Enter config mode

Configure terminal

-

Enter modem config mode

interface modem interface-number

-

Set APN

access-point-name

-

Example: Set APN of modem 0 hongdian-Router# configure terminal hongdian-Router(config)#interface modem 0 hongdian-Router(config-modem)# access-point-name hongdian

Hongdian Corporation

13

3G/4G Router CLI User Manual

3.5.4 Service Code Purpose

Command

Instruction

Enter config mode

Configure terminal

-

Enter modemconfig mode

interface modem interface-number

-

Set Service code

Svc-code

-

Example: Set modem 0 service code hongdian-Router# configure terminal hongdian-Router(config)#interface modem 0 hongdian-Router(config-modem)# svc-code hongdian

3.5.5 Set Username/Password Purpose

Command

Instruction

Enter config mode

Configure terminal

-

Enter modemconfig mode

interface modem interface-number

-

Set Username/Password

username

-

password Example: Set modem 0 Username/Password hongdian-Router# configure terminal hongdian-Router(config)#interface modem 0 hongdian-Router(config-modem)# username hongdian password hongdian

3.5.6 Interval & Retry times Purpose

Command

Instruction

Enter config mode

Configure terminal

-

Enter modemconfig mode

interface modem interface-number

-

Interval & Retry times

interval

Interval& retry parameter ranger: 1-512

retry Example: Set modem 0 Interval & Retry times hongdian-Router# configure terminal hongdian-Router(config)#interface modem 0 hongdian-Router(config-modem)# interval 30 retry 5

3.5.7 Network Type Purpose

Command

Instruction

Enter config mode

Configure terminal

-

Hongdian Corporation

14

3G/4G Router CLI User Manual

Enter modemconfig mode

interface modem interface-number

-

Set network type

network-type

-

Example: Set modem 0 network type hongdian-Router# configure terminal hongdian-Router(config)#interface modem 0 hongdian-Router(config-modem)# network-type wcdma

3.5.8 Config simcard Purpose

Command

Instruction

Enter config mode

Configure terminal

-

Enter modemconfig mode

interface modem interface-number

-

Config simcard

simcard

Value range: 1 or 2

Example: Config modem 0 simcard hongdian-Router# configure terminal hongdian-Router(config)#interface modem 0 hongdian-Router(config-modem)#simcard 1

3.5.9 PPP advanced setting Purpose

Command

Instruction

Enter config mode

Configure terminal

-

Enter modemconfig mode

interface modem interface-number

-

ppp advance authentication

ppp advance authentication

Authentication value range: chap pap mschap mschap-v2

ppp advance compress

ppp advance compress

Compress value range: novj, novjccomp,nopcomp, noaccomp, noccp

ppp advance debug

ppp advance debug

-

ppp advance usepeerdns

ppp advance usepeerdns

-

ppp advance mru

ppp advance mru

mru value range: 1-65535

ppp advance mtu

ppp advance mtu

mtu value range: 1-65535

ppp advance local- ip

ppp advance local- ip

-

ppp advance peer -ip

ppp advance peer -ip

-

ppp advance lcp interval & retry

ppp advance lcp interval & retry

Interval & retry value range: 1-512

Hongdian Corporation

15

3G/4G Router CLI User Manual

Example: set modem 0 ppp local IP hongdian-Router# configure terminal hongdian-Router(config)#interface modem 0 hongdian-Router(config-modem)# ppp advance local-ip 1.1.1.1

3.5.10 Delete Config Purpose

Command

Instruction

Enter config mode

Configure terminal

-

Enter modemconfig mode

interface modem interface-number

-

no access-point-name

no access-point-name

-

Delete modem description

no description

-

Delete network-type

no network-type

-

Delete ppp advance

no ppp advance

Delete related option of ppp advanced setting.

Delete simcard

no simcard

-

Delete service code

no svc-code

-

Delete username password

no username password

-

Example: Delete modem 0 username & password hongdian-Router# configure terminal hongdian-Router(config)#interface modem 0 hongdian-Router(config-modem)# no username password

3.5.11 Print Modem Status Purpose

Command

Instruction

Enter config mode

Configure terminal

-

Enter modemconfig mode

interface modem interface-number

-

Print modem status

Print

-

Example: Print Modem 0 status hongdian-Router# configure terminal hongdian-Router(config)#interface modem 0 hongdian-Router(config-modem)#print

Hongdian Corporation

16

3G/4G Router CLI User Manual

3.6 Parameter Select 3.6.1 Description of Parameter Select Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter parameter select config mode

parameter select rule rule-number

-

Description of Parameter Select

description

-

Example: Rule 1 description of Parameter Select hongdian-Router# configure terminal hongdian-Router(config)# parameter select rule 1 hongdian-Router(config-parameter-select)#description hongdian

3.6.2 Config interval & retry Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter parameter select config mode

parameter select rule rule-number

-

Config interval & retry

check interval

interval & retry value range: 1-65535

retry Example: Config interval & retry of parameter select hongdian-Router# configure terminal hongdian-Router(config)# parameter select rule 1 hongdian-Router(config-parameter-select)#check interval 30 retry 5

3.6.3 Interface Select Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter parameter select config mode

parameter select rule rule-number

-

Interface select

select crypto-interface/interface interface-name

-

Example: select interface hongdian-Router# configure terminal

Hongdian Corporation

17

3G/4G Router CLI User Manual hongdian-Router(config)# parameter select rule 1 hongdian-Router(config-parameter-select)#select interface eth0

3.6.4 Delete Config Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter rule select config mode

parameter select rule rule-number

-

Delete description

no description

-

Delete running timeout

no running timeout

-

Delete select crypto-interface/interfac e

no select crypto-interface/interface

Cryto-interface value is WORD type. Interface value range: modem,tunnel,vpdn

Example: Delete running timeout hongdian-Router# configure terminal hongdian-Router(config)# parameter select rule 1 hongdian-Router(config-parameter-select)#no running timeout

3.6.5 Print Rule Select Config Mode Status Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter rule select config mode

parameter select rule rule-number

Value range: 0-9

Print info

print

Example: Print Rule Select Config Mode Status hongdian-Router# configure terminal hongdian-Router(config)# parameter select rule 1 hongdian-Router(config-parameter-select)#print

Hongdian Corporation

18

3G/4G Router CLI User Manual

3.7 DNS Config 3.7.1 Config DNS IP Purpose

Command

Instruction

Enter config mode

Configure terminal

-

Config DNS server IP

ip dns server

Server IP must be IP address or domain

Example: Config DNS IP。 hongdian-Router# configure terminal hongdian-Router(config)# ip dns server 192.168.8.2

3.7.2 Delete DNS IP Purpose

Command

Instruction

Enter config mode

Configure terminal

-

Delete DNS IP

no ip dns server

-

Example: Delete dns ip。 hongdian-Router# configure terminal hongdian-Router(config)# no ip dns server

3.8 Link Backup Link backup can realize mutual switchover between wireless and wireless, wired and wireless links, can quickly switch to a backup link in a link failure, security and stability of China Unicom communication link, so as to guarantee the user data service is not affected. Link backup configuration commands are shown in table Command Format

Function Description

Remark

service linkbackup rule (0|)

Configure the link backup rule name

Rule 0 can be the main chain or the backup link, and 1-9 can only be the backup link

running timeout

Configure timeout value

Unit: seconds

select interface (eth0|wlan|modem|modem 2)

Configure the link backup interface type

Empty

select interface (eth0|wlan) check (WORD|A.B.C.D) interval retry

Configure the link backup interface, detect IP or domain name, detection time interval, and the

Unit of time: seconds

Hongdian Corporation

19

3G/4G Router CLI User Manual

Command Format

Function Description

Remark



number of retransmissions

select interface (modem|modem2) WORD

Configure monitoring interface

WORD refers to the interface name for the mobile network

select interface (modem|modem2) WORD check (WORD|A.B.C.D) interval retry

Configure the link backup interface, detect IP or domain name, detection time interval, and the number of retransmissions

Unit of time: seconds

[Configuration example] service linkbackup rule 0 // Configure the link backup rule with the rule name 0 to enter the configuration mode running timeout 300 // Configure the timeout time to 300 seconds select interface modem 0 check 114.114.114.114 interval 30 retry 5 // Configure the link backup interface as modem 0, check the IP address as 114.114.114.114, and the detection interval is 30. The number of retransmission times is 5

Hongdian Corporation

20

3G/4G Router CLI User Manual

3.9 DHCP Config 3.9.1 Enable/Disable DHCP Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter dhcpconfig mode

service dhcp

-

Disable dhcp

shutdown

Default value is enabled

Enable dhcp

no shutdown

-

Example: Disable dhcp。 hongdian-Router# configure terminal hongdian-Router(config)#service dhcp hongdian-Router(config-dhcp)# shutdown

3.9.2 Config Lease Time Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter dhcpconfig mode

service dhcp

-

Config lease time

lease time

Time value range: 1-65535

Example: config lease time hongdian-Router# configure terminal hongdian-Router(config)# service dhcp hongdian-Router(config-dhcp)#lease time 3600

3.9.3 Config IP Pool Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter DHCP config mode

Service dhcp

-

Set IP pool

set ip pool

Pool value range: br0, eth0 or IP

Example: set IP pool hongdian-Router# configure terminal hongdian-Router(config)# service dhcp hongdian-Router(config-dhcp)#set ip pool br0

Hongdian Corporation

21

3G/4G Router CLI User Manual

3.9.4 Config Gateway Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter DHCP config mode

Service dhcp

-

Set gateway

set gateway

Gateway value range: br0, eth0 or IP

Example: set gateway hongdian-Router# configure terminal hongdian-Router(config)# service dhcp hongdian-Router(config-dhcp)#set gateway br0

3.9.5 Config DNS Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter DHCP config mode

Service dhcp

-

Set DNS

set dns

Dns value range: br0,eth0, modem or IP

Example: Set DNS hongdian-Router# configure terminal hongdian-Router(config)# service dhcp hongdian-Router(config-dhcp)#set dns br0

3.9.6 Map IP Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter DHCP config mode

Service dhcp

-

Map IP with MAC address

map ip

Ip value must be IP, mac value must be MAC address

mac Example: Map IP with MAC hongdian-Router# configure terminal hongdian-Router(config)# service dhcp hongdian-Router(config-dhcp)# map ip 192.168.8.1 mac 11:22:33:44:55:66

3.9.7 Delete Config Purpose

Command

Instruction

Enter config mode

configure terminal

-

Hongdian Corporation

22

3G/4G Router CLI User Manual

Enter dhcpconfig mode

service dhcp

-

Delete lease time

no lease time

Delete map ip with Mac

no map ip mac

Ip value must be IP, mac value must be MAC address

Delete dns

no set dns

-

Delete gateway

no set gateway

-

Delete ip pool

no set ip pool

-

Example: Delete IP poor setting hongdian-Router# configure terminal hongdian-Router(config)#interface modem 0 hongdian-Router(config-dhcp)#no set ip pool

3.9.8 Print DHCP Status Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter DHCPconfig mode

Service dhcp

-

Print DHCP Status

print

-

Example: Print DHCP Status hongdian-Router# configure terminal hongdian-Router(config)# service dhcp hongdian-Router(config-dhcp)#print

Hongdian Corporation

23

3G/4G Router CLI User Manual

3.10 ICMP Check Config 3.10.1 Enable/Disable ICMP Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter icmpcheckconfig mode

service icmpcheck

-

Disable icmpcheck

shutdown

-

Enable icmpcheck

no shutdown

-

Example: Disable icmpcheck。 hongdian-Router# configure terminal hongdian-Router(config)#service icmpcheck hongdian-Router(config-dhcp)# shutdown

3.10.2 ICMP Description Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter icmp check config mode

service icmpcheck

-

ICMP Description

description

Description value range: character string

3.10.3 Config destination address Config destination address Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter ICMP check config mode

service icmpcheck

-

Set destination address

destination

Destination value: IP or DNS address

Example: Set destination address hongdian-Router# configure terminal hongdian-Router(config)# service icmpcheck hongdian-Router(config-icmpcheck)#destination 192.168.8.1

Hongdian Corporation

24

3G/4G Router CLI User Manual

3.10.4 Config interval & retry time Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter icmpcheckconfig mode

service icmpcheck

-

Config interval & retry time

check interval

Check interval & retry value range: 1-65535

retry Example: Config interval & retry time hongdian-Router# configure terminal hongdian-Router(config)# service icmpcheck hongdian-Router(config-icmpcheck)#check interval 60 retry 5

3.10.5 Config Failure Interval Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter icmpcheckconfig mode

service icmpcheck

-

Config failure interval

failure interval

intervalvalue range: 1-65535

Example: Config failure interval hongdian-Router# configure terminal hongdian-Router(config)# service icmpcheck hongdian-Router(config-icmpcheck)# failure interval 600

3.10.6 Config Source Address Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter ICMP check config mode

service icmpcheck

-

Config Source Address

source

Source value: IP address

Example: Config Source Address hongdian-Router# configure terminal hongdian-Router(config)# service icmpcheck hongdian-Router(config-icmpcheck)# source 192.168.8.1

3.10.7 Config Source Interface Purpose

Command

Instruction

Enter config mode

configure terminal

-

Hongdian Corporation

25

3G/4G Router CLI User Manual

Enter ICMP check config mode

service icmpcheck

-

Config Source Interface

source interface

Interface value: WORD type string

Example: Config Source Interface hongdian-Router# configure terminal hongdian-Router(config)# service icmpcheck hongdian-Router(config-icmpcheck)# source interface br0

3.10.8 Delete Config Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter ICMP checkconfig mode

service icmpcheck

-

Delete check interval

no check interval

-

Delete destination IP

no destination

-

Delete source interface

no source interface

-

Delete ICMP check Description

no description

-

Example: Delete destination IP hongdian-Router# configure terminal hongdian-Router(config)#service icmpcheck hongdian-Router(config-icmpcheck)#no destination

3.10.9 Print ICMP Check Status Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter icmpcheckconfig mode

service icmpcheck

-

Print icmpcheck status

Print

-

Example: Print icmpcheck status hongdian-Router#configure terminal hongdian-Router(config)#service icmpcheck hongdian-Router(config-icmpcheck)#print

Hongdian Corporation

26

3G/4G Router CLI User Manual

3.11 Config Interface Check 3.11.1 Enable/Disable Interface Check Enable/Disable

模块 Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter interfacecheckconfig mode

service interfacecheck

-

Disable interfacecheck

shutdown

-

Enable interfacecheck

no shutdown

-

Example: Disable interfacecheck。 hongdian-Router# configure terminal hongdian-Router(config)#service interfacecheck hongdian-Router(config-interfacecheck)# shutdown

3.11.2 Interface Check Description Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter interfacecheckconfig mode

service interfacecheck

-

Interface Check Description

description

Description value: character string

3.11.3 Config Interface to Check Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter interface check config mode

service interfacecheck

-

Config Interface to Check

check interface

Interface value: character string

Example: Config Interface to Check hongdian-Router# configure terminal hongdian-Router(config)# service interfacecheck hongdian-Router(config-interfacecheck)# check interface br0

Hongdian Corporation

27

3G/4G Router CLI User Manual

3.11.4 Config Traffic Direction Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter interfacecheckconfig mode

service interfacecheck

-

Config Traffic Direction

traffic direction

Direction value: send or receive

Example: Config Traffic Direction hongdian-Router# configure terminal hongdian-Router(config)# service interfacecheck hongdian-Router(config-interfacecheck)# traffic direction send

3.11.5 Config Check Interval & Retry Times Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter interfacecheckconfig mode

service interfacecheck

-

Config check interval & retry times

check interval

check interval and retry value range: 1-65535

retry

Example: Config check interval & retry times hongdian-Router# configure terminal hongdian-Router(config)# service interfacecheck hongdian-Router(config-interfacecheck)# check interval 600 retry 5

3.11.6 Delete Config Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter interfacecheckconfig mode

service interfacecheck

-

Delete check interval

no check interval

-

Delete destination IP

no destination

-

Delete icmpcheck Description

no description

-

Example: Delete destination IP address hongdian-Router# configure terminal hongdian-Router(config)#service interfacecheck hongdian-Router(config-interfacecheck)# no check interval

Hongdian Corporation

28

3G/4G Router CLI User Manual

3.11.7 Print Interface Check Status Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter interfacecheckconfig mode

service interfacecheck

Print interfacecheck status

Print

Example: Print interfacecheck status hongdian-Router#configure terminal hongdian-Router(config)#service interfacecheck hongdian-Router(config-interfacecheck)#print

Hongdian Corporation

29

3G/4G Router CLI User Manual

3.12 DDNS Config 3.12.1 Enable/Disable DDNS Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter DDNS config mode

service ddns

-

Disable DDNS

shutdown

Default value is enable

Enable DDNS

no shutdown

-

Example: Disable DDNS。 hongdian-Router# configure terminal hongdian-Router(config)#service ddns hongdian-Router(config-ddns)# shutdown

3.12.2 DDNS Description Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter DDNS config mode

service ddns

DDNS Description

description

Description value: character string

3.12.3 Config DNS of DDNS Server Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter DDNS config mode

service ddns

-

Config DNS of DDNS server

server domain

Domain value: character string

Example: Config DNS of DDNS server hongdian-Router# configure terminal hongdian-Router(config)# service ddns hongdian-Router(config-ddns)# server domain hongdian

3.12.4 Config Server Port Purpose

Command

Instruction

Enter config mode

configure terminal

-

Hongdian Corporation

30

3G/4G Router CLI User Manual

Enter DDNS config mode

service ddns

-

Config server port

server port

Port value range: 1-65535

Example: Config server port hongdian-Router# configure terminal hongdian-Router(config)# service ddns hongdian-Router(config-ddns)# server port 50

3.12.5 Config Local Domain Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter DDNSconfig mode

service ddns

-

Config local domain

local domain

Domain value: character string

Example: Config local domain hongdian-Router# configure terminal hongdian-Router(config)# service ddns hongdian-Router(config-ddns)# local domain hongdian

3.12.6 Config Username/Password Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter DDNS config mode

service ddns

-

Config Username/Password

username

Username/password value:character string

password Example: Config Username/Password hongdian-Router# configure terminal hongdian-Router(config)# service ddns hongdian-Router(config-ddns)# username hongdian password hongdian

3.12.7 Config Check Interval Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter DDNS config mode

service ddns

-

Config Check Interval

check interval

interval value range: 1-65535

Example: Config Check Interval hongdian-Router# configure terminal

Hongdian Corporation

31

3G/4G Router CLI User Manual hongdian-Router(config)# service ddns hongdian-Router(config-ddns)# check interval 600

3.12.8 Config Update Interval Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter DDNSconfig mode

service ddns

-

Config Update Interval

check interval

interval value range: 1-65535

Example: Config Update Interval hongdian-Router# configure terminal hongdian-Router(config)# service ddns hongdian-Router(config-ddns)# update interval 600

3.12.9 Delete Config Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter DDNS config mode

sevice ddns

-

Delete local domain

no local domain

-

Delete server domain

no server domain

-

Delete server port

no server port

-

Delete update interval

no update interval

-

Delete username/passward

no username

-

Delete description

no description

-

Example: Delete server domain hongdian-Router# configure terminal hongdian-Router(config)#service ddns hongdian-Router(config-timing)# no server domain

3.12.10 Print DDNS Status Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter DDNS config mode

service ddns

-

Print DDNS status

print

-

Hongdian Corporation

32

3G/4G Router CLI User Manual

Example: Print DDNS status hongdian-Router#configure terminal hongdian-Router(config)#service ddns hongdian-Router(config-ddns)#print

Hongdian Corporation

33

3G/4G Router CLI User Manual

3.13 DTU Config 3.13.1 Enable/Disable DTU Function Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter dtuconfig mode

service dtu

-

Disable dtu function

shutdown

Default value is enable

Enable dtu function

no shutdown

-

Example: Disable dtu function hongdian-Router# configure terminal hongdian-Router(config)#service dtu hongdian-Router(config-dtu)# shutdown

3.13.2 DTU Function Description Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter DTU config mode

service dtu

DTU Function Description

description

Description value: character string

3.13.3 Config Working Mode Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter dtuconfig mode

service dtu

Config Working Mode

mode

mode value range: client、 server、ddpclient

Example: Config Working Mode hongdian-Router# configure terminal hongdian-Router(config)# service dtu hongdian-Router(config-dtu)# mode client

3.13.4 Config Destination Address Purpose

Command

Instruction

Enter config mode

configure

-

Hongdian Corporation

34

3G/4G Router CLI User Manual

terminal Enter dtuconfig mode

service dtu

-

Config Destination Address

destination

Destination value: IP or domain

Example: Config Destination Address hongdian-Router# configure terminal hongdian-Router(config)# service ddns hongdian-Router(config-ddns)# destination hongdian

3.13.5 Config Destination Port Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter dtu config mode

service dtu

-

Config Destination Port

server port

Port value range: 1-65536

3.13.6 Config Local Port Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter dtuconfig mode

service dtu

-

Config Local Port

local port

Port value range: 1-65536

3.13.7 Config Local ID Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter dtuconfig mode

service dtu

-

Config Local ID

local id

id value range: character string

Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter dtuconfig mode

service dtu

-

Config Heartbeat Interval

heartbeat interval

interval value range: 1-65536

3.13.8 Config Heartbeat Interval

Hongdian Corporation

35

3G/4G Router CLI User Manual

3.13.9 Config Reconnect Interval & Retry Times Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter dtuconfig mode

service dtu

-

Config Reconnect Interval & Retry Times

interval

Interval & retry value range: 1-65536

retry

3.13.10 Config Timeout of Receiving from Internet Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter dtuconfig mode

service dtu

-

Config Timeout of Receiving from Internet

receive timeout

timeout value range: 1-65536

3.13.11 Config Timeout of Receiving from RS232 Port Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter dtuconfig mode

service dtu

-

Config Timeout of Receiving from RS232 Port

serial receive timeout

timeout value range: 1-65536

3.13.12 Config Serial Packet Max Length Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter dtuconfig mode

service dtu

-

Config Serial Packet Max Length

serial packet max length

length value range: 1-65536

3.13.13 Config Serial Port Baud Rate Purpose

Command

Instruction

Enter config mode

configure terminal

-

Hongdian Corporation

36

3G/4G Router CLI User Manual

Enter dtuconfig mode

service dtu

Config Serial Port Baud Rate

serial baud rate

-

3.13.14 Config Serial Port Parity Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter dtuconfig mode

service dtu

-

Config Serial Port Parity

serial parity

Parity value range: odd,even,none

3.13.15 Config Serial Port Data Bits Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter dtuconfig mode

service dtu

-

Config Serial Port Data Bits

serial data bits

bit value range: 5,6,7,8

Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter dtuconfig mode

service dtu

-

Config Serial Port Stop Bits

serial stop bits

bits value range: 1, 2

Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter dtuconfig mode

service dtu

-

Protocol Select

protocol

protocol value: udp

3.13.16 Config Serial Port Stop Bits

3.13.17 Protocol Select

Hongdian Corporation

tcp,

37

3G/4G Router CLI User Manual

3.13.18 Delete Config Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter dtu config mode

service dtu

-

Delete destination IP

no destination

-

Delete local port

no local port

-

Delete serial baud rate

no serial baud rete

-

Delete serial data bits

no serial data bits

-

Delete serial packet max length

no serial packet max length

-

Delete serial parity

no serial parity

-

Delete serial receive timeou

no serial receive timeou

-

Delete serial stop bits

no serial stop bits

-

3.13.19 Print DTU Status Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter dtu config mode

service dtu

-

Print dtu status

print

-

3.14 GPS Configuration The Hongdian 4G Router is built-in the registration center and data center communication function, which can provide GPS positioning service. GPS services can realize the real-time positioning of macro 4G Router and facilitate management. The GPS configuration commands are shown in table below. Command Format

Function Description

Remark

destination A.B.C.D

Configure the GPS server IP address.

Empty

destination WORD

Configure the GPS server domain name address.

Empty

gps report intval

GPS information reporting interval

Unit: seconds

local id LINE

Configure the GPS local identification code

Empty

local port

Configure the GPS local port.

Empty

Hongdian Corporation

38

3G/4G Router CLI User Manual

Command Format

Function Description

Remark

mode client

Configuring router GPS working mode.

Only the client option is provided

protocol

Configure the GPS transport protocol as TCP/UDP.

Empty

send header LINE

Configure send date packet header

The maximum length is 64 bytes

server port

Configure the GPS server port.

Empty

[Configuration example] config terminal // into the cli configuration mode service gps // into gps configuration destination 192.168.8.123 // Configure the gps server IP address to 192.168.8.123 local ip 1234567890 // Configure gps ID 1234567890 local port 1000 // Configure local port 1000 mode client // Configure gps to work as client protocol tcp // Configure the gps transport protocol for tcp server port 2000 // Configure the gps service port to 2000

After you configure these commands, you need to enter the "write" command to save the configuration to the configuration file so that the trigger setting will work. The product model determines whether the GPS functionality is supported

Hongdian Corporation

39

3G/4G Router CLI User Manual

3.15 SNMP Config 3.15.1 Enable/Disable SNMP Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter snmpconfig mode

service snmp

-

Disable snmp

shutdown

Default value is enable

Enable snmp

no shutdown

-

3.15.2 SNMP Description Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter snmp config mode

service snmp

-

SNMP Description

description

Description value: character string

3.15.3 Config SNMP Port Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter SNMP config mode

service snmp

-

Config SNMP Port

snmp port

port value range: 1-65536

3.15.4 Config SNMP Password Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter snmpconfig mode

service snmp

-

Config snmp passward

Community

community value range: character string

Hongdian Corporation

40

3G/4G Router CLI User Manual

3.15.5 Delete Config Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter snmpconfig mode

service snmp

-

Delete snmp port

no snmp port

-

Delete snmp password

no community

-

3.15.6 Print SNMP Status Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter snmpconfig mode

service snmp

-

Print snmp status

print

-

Hongdian Corporation

41

3G/4G Router CLI User Manual

3.16 M2M Platfrom Access Config 3.16.1 Enable/Disable M2M Access In Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter m2m config mode

service m2m

-

Disable m2m

shutdown

Default value is enable.

Enable m2m

no shutdown

-

3.16.2 M2M Description Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter m2m config mode

service m2m

-

M2M Description

description

Description value: character string

3.16.3 Config Destination IP Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter m2m config mode

service m2m

-

Config destination IP

destination

Destination value: character string or IP

3.16.4 Config Max Login Retry Times Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter m2m config mode

service m2m

-

Config Max login retry times

login retry

login retry value range: 1-65535

Hongdian Corporation

42

3G/4G Router CLI User Manual

3.16.5 Config Heartbeat Interval Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter m2m config mode

service m2m

-

Config Heartbeat Interval

heartbeat interval

heartbeat interval value range: 1-65535

3.16.6 Config Max Task Retransmit Times Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter m2m config mode

service m2m

-

Config Max Task Retransmit Times

task retransmit

task retransmit value range: 1-5

3.16.7 Config Task Timeout Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter m2m config mode

service m2m

-

Config Task Timeout

task timeout

task timeout value range: 1-65535

3.16.8 Config M2M Server Port Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter m2m config mode

service m2m

-

Config M2M Server Port

server port

port value range: 1-65535

3.16.9 Delete Config Purpose

Command

Instruction

Enter config mode

configure terminal

-

Hongdian Corporation

43

3G/4G Router CLI User Manual

Enter m2m config mode

service m2m

Delete destination IP

no destination

Delete heartbeat interval

no heartbeat interval

Delete m2m server port

no m2m port

Delete task timeout

no task timeout

Delete task retransmit

no task retransmit

-

3.16.10 Print M2M Status Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter m2m config mode

service m2m

Print M2M Status

Print

3.17 Config Timing Action 3.17.1 Enable/Disable Timing Action Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter Timing action config mode

service timing rule 1

-

Disable timing action

shutdown

Default value is enable

Enable timing action

no shutdown

-

Example: Disable timing action hongdian-Router# configure terminal hongdian-Router(config)#service timing rule 1 hongdian-Router(config-timing)# shutdown

3.17.2 Timing Action Description Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter timing action config mode

service timing rule 1

Rule value: character string

Hongdian Corporation

44

3G/4G Router CLI User Manual

Timing action description

description

Description value: character string

3.17.3 Config Action Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter timing action config mode

service timing rule 1

Rule value: character string.

Config the action

action

Action value: dialup, dialdown, reboot

Example: config action hongdian-Router# configure terminal hongdian-Router(config)# service timing rule 1 hongdian-Router(config-timing)# action dialup

3.17.4 Config time Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter timing action config mode

service timing rule 1

-

Config time

set date

Date value form: 0000-2400

Example: Config time hongdian-Router# configure terminal hongdian-Router(config)# service timing rule 1 hongdian-Router(config-timing)# set date 0000-2400

3.17.5 Config Date Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter timing action config mode

service timing rule 1

-

Set date

set day

Day value form: 00-31

Example: Set date hongdian-Router# configure terminal hongdian-Router(config)# service timing rule 1 hongdian-Router(config-timing)# set day 00-31

Hongdian Corporation

45

3G/4G Router CLI User Manual

3.17.6 Config Day of the Week Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter timing action config mode

service timing rule 1

-

Config day of the week

set week

Week value form: 0-6

Example: Config day of the week hongdian-Router# configure terminal hongdian-Router(config)# service timing rule 1 hongdian-Router(config-timing)# set week 0-6

3.17.7 Delete Config Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter timing action config mode

service timing rule 1

-

Delete action

no action

-

Delete time

no set date

-

Delete date

no set day

-

Delete day of the week

no set week

-

Delete timng action description

no description

-

Example: Delete action hongdian-Router# configure terminal hongdian-Router(config)#service timing rule 1 hongdian-Router(config-timing)# no actionl

3.17.8 Print Timing Action Status Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter timing action config mode

service interfacecheck

-

Print timing action status

Print

-

Example: Print timing action status hongdian-Router#configure terminal hongdian-Router(config)#service timing rule 1 hongdian-Router(config-timging)#print

Hongdian Corporation

46

3G/4G Router CLI User Manual

3.18 Trigger Settings Configuration Hongdian 4G Router supports on-demand triggering of offline mode. The demand for on-demand Internet access can greatly reduce the cost of mobile network traffic. The trigger settings configuration commands are shown in table below. Command Format

Function Description

Remark

offline mode

The offline mode for configuring trigger settings is idle offline /timeout.

online time

Configure the online time of the trigger setting.

Unit: seconds

phone number WORD action

Configure phone number and task type for trigger settings.

Empty

data stream action

The type of action triggered by configuring data.

Empty

wakeup via

Configure trigger mode for trigger settings.

Trigger mode option:

 

 

Idle: offline when idle timeout: offline when timeout

SMS /voice: phone SMS /voice /data: phone &data

[Configuration example] config terminal // enter configuration mode cli service wakeup // Enter the trigger settings configuration description chufashezhi // configure the description of the trigger settings: chufashezhi offline mode timeout // set the trigger settings off the assembly line for the timeout off the assembly line online time 120 // Configure the trigger settings to be online for 120s phone number 15811826030 action dialup // configure the phone number 15811826030 task type dialup wakeup via phone // configure the trigger mode for the phone

Hongdian Corporation

47

3G/4G Router CLI User Manual

3.19 VPDN Config This Config part Includes PPTP, L2TP, PPPoe config now.

3.19.1 Enable/Disable VPDN Purpose

Command

Instruction

Enter config mode

Configure terminal

-

Enter vpdn config mode

interface vpdn interface-number

-

Disable vpdn

shutdown

Default value is enable.

Enable vpdn

no shutdown

-

3.19.2 VPDN Description Purpose

Command

Instruction

Enter config mode

Configure terminal

-

Enter vpdnconfig mode

interface vpdn interface-number

-

VPDN Description

description

3.19.3 Config Destination Address Purpose

Command

Instruction

Enter config mode

Configure terminal

-

Enter vpdnconfig mode

interface vpdn interface-number

-

Config Destination Address

destination

Destination value: IP or character string

3.19.4 Config Protocol Purpose

Command

Instruction

Enter config mode

Configure terminal

-

Enter vpdnconfig mode

Interface vpdn interface-number

-

Config Protocol

protocol

协议为 l2tp,pppoe,pptp

Hongdian Corporation

48

3G/4G Router CLI User Manual

3.19.5 Config Username/Password Purpose

Command

Instruction

Enter config mode

Configure terminal

-

Enter vpdnconfig mode

interface vpdn interface-number

-

Config Username/Password

username password

3.19.6 PPP Advanced Setting Purpose

Command

Instruction

Enter config mode

Configure terminal

-

Enter modemconfig mode

interface modem interface-number

-

ppp advance authentication

ppp advance authentication

ppp advance compress

ppp advance compress

ppp advance debug

ppp advance debug

Get PPP peer DNS

ppp advance usepeerdns

Config PPP mru

ppp advance mru

Config PPP mtu

ppp advance mtu

Config PPP local IP

ppp advance local- ip

Config PPP peer IP

ppp advance peer -ip

Config PPP LCP interval & retry times

ppp advance lcp interval

Interval & retry value range: 1-512

retry

3.19.7 Delete Config Purpose

Command

Instruction

Enter config mode

Configure terminal

-

Enter vpdnconfig mode

interface vpdn interface-number

-

Delete description

no description

Delete ppp advance

no ppp advance

Hongdian Corporation

According to your ppp advance setting, deleted related config

49

3G/4G Router CLI User Manual

Delete username & password

no username password

3.19.8 Print VPDN Status Purpose

Command

Instruction

Enter config mode

Configure terminal

-

Enter vpdnconfig mode

interface vpdn interface-number

-

Print vpdn status

print

Hongdian Corporation

50

3G/4G Router CLI User Manual

3.20 TUNNEL Config This Config part Includes GRE, IPIP config now.

3.20.1 Enable/Disable Tunnel Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter tunnel config mode

interface tunnel interface-number

-

Disable tunnel

shutdown

Default value is enable.

Enable tunnel

no shutdown

-

Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter tunnel config mode

interface tunnel interface-number

-

VPDN Description

description

Description value: character string

3.20.2 VPDN Description

3.20.3 Config destination address Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter tunnel config mode

interface tunnel interface-number

-

Config destination address

destination

destination value range: IP or character string

3.20.4 Config Tunnel Mode Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter tunnelconfig mode

interface tunnel interface-number

-

Hongdian Corporation

51

3G/4G Router CLI User Manual

Config tunnel mode

tunnel mode

mode value range: gre or ipip

3.20.5 Config IP Address Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter tunnelconfig mode

interface tunnel interface-number

-

Config IP Address

Ip address

address value: ip & mask

3.20.6 Config Source IP Address Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter tunnelconfig mode

interface tunnel interface-number

-

Config Source IP Address

source

source value: IP

3.20.7 Config Source Interface Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter tunnelconfig mode

interface tunnel interface-number

-

Config Source Interface

source interface

interface value type: character string

3.20.8 Delete Config Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter tunnelconfig mode

interface tunnel interface-number

-

Delete tunnel detination

no tunnel detination

Delete ip address

no ip address

Delete source interface

no source interface

Delete sourece

no source

Hongdian Corporation

52

3G/4G Router CLI User Manual

Delete tunnel mode

no tunnel mode

3.20.9 Print TUNNEL Status Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter tunnelconfig mode

interface tunnel interface-number

Print tunnel Status

print

Hongdian Corporation

53

3G/4G Router CLI User Manual

3.21 IPSEC Config 3.21.1 Phase1 20.1.1 Enable/Disable Phase1 Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter phase1 config mode

cryto isakmp

Input phase1 name after isakmp

Disable phase1

shutdown

Default value is enable.

Enable phase1

no shutdown

-

Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter phase1 config mode

cryto isakmp

Input phase1 name after isakmp

Description

description

Description value: character string

Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter phase1lconfig mode

cryto isakmp

Set Authentication Mode

authentication

authentication value:psk

Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter phase1llconfig mode

cryto isakmp

Set Encryption Mode

encryption

20.1.2 Phase1 Description

20.1.3 Authentication Mode

20.1.4 Encryption Mode

Hongdian Corporation

54

3G/4G Router CLI User Manual

20.1.5 Hash Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter phase1llconfig mode

cryto isakmp

Set hash

hash

20.1.6 Set Group Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter phase1llconfig mode

cryto isakmp

Set group

group

20.1.7 Set Initiate Mode Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter phase1llconfig mode

cryto isakmp

Set Initiate mode

initiate mode

20.1.8 DPD Keepalive & Retry times Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter phase1config mode

cryto isakmp

DPD Keepalive & Retry times

keepalive retry

Keepalive & retry valuerange: 1-512

Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter phase1config mode

cryto isakmp

20.1.9 Set Lifetime

Hongdian Corporation

55

3G/4G Router CLI User Manual

Set Lifetime

lifetime

20.1.10 Set Preshared Key Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter phase1config mode

cryto isakmp

Set Preshared Key

preshared key

20.1.11 Set Match Identify Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter phase1config mode

cryto isakmp

Set Match Identify

match identify

20.1.12 Set self Identify Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter phase1llconfig mode

cryto isakmp

Set self Identify

self identify

20.1.13 Delete Config Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter phase1config mode

cryto isakmp

Delete self-identity

no self-identity

Delete match-identity

no match-identity

Delete keepalive-retry

no keepalive-retry

Hongdian Corporation

56

3G/4G Router CLI User Manual

20.1.14 Print Status Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter phase1config mode

cryto isakmp

Print status

print

3.21.2 Phase2 20.2.1 Enable/Disable Phase2 Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter phase2 config mode

cryto ipsec isakmp

Input phase2 name after isakmp

Disable phase2

shutdown

Default value is enable.

Enable phase2

no shutdown

-

20.1.2 Phase2 Description Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter phase2config mode

cryto ipsec isakmp

Input phase2 name after isakmp

Description

description

Description value: character string

Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter phase2config mode

cryto ipsec isakmp

Input phase2 name after isakmp

Set encryption

encryption

20.2.3 Set Encryption

Hongdian Corporation

57

3G/4G Router CLI User Manual

20.2.4 Set Hash Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter phase2config mode

cryto ipsec isakmp

Input phase2 name after isakmp

Set Hash

hash

20.2.5 Set Lifetime Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter phase2config mode

cryto ipsec isakmp

Input phase2 name after isakmp

Set Lifetime

lifetime

20.2.6 Set Mode Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter phase2config mode

cryto ipsec isakmp

Input phase2 name after isakmp

Set Mode

mode

20.2.7 Set Protocol Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter phase2config mode

cryto ipsec isakmp

Input phase2 name after isakmp

Set Protocol

protocol

Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter phase2config mode

cryto ipsec

Input phase2 name after isakmp

20.2.8 Set pfs

Hongdian Corporation

58

3G/4G Router CLI User Manual

isakmp Set pfs

set pfs

Description value: character string

20.2.9 Set Group Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter phase2config mode

cryto ipsec isakmp

Input phase2 name after isakmp

Set Group

group

20.2.10 Set Local Subnet Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter phase2config mode

cryto ipsec isakmp

Input phase2 name after isakmp

Set local subnet

local subnet

20.2.11 Set Remote Subnet Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter phase2config mode

cryto ipsec isakmp

Input phase2 name after isakmp

Set remote subnet

remote subnet

20.2.12 Delete Config Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter phase2config mode

cryto ipsec isakmp

Input phase2 name after isakmp

Delete remote subnet

no remote subnet

Delete local subnet

no local subnet

Delete set pfs

no set pfs

Hongdian Corporation

59

3G/4G Router CLI User Manual

20.2.13 Print Status Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter phase2config mode

cryto ipsec isakmp

Input phase2 name after isakmp

Print Status

print

3.21.3 Config Interface Enable/Disable Interface Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter interfaceconfig mode

cryto interface

Set ipsec interface name

Disable interface

shutdown

Default value is enable.

Enable interface

no shutdown

-

Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter interfaceconfig mode

cryto interface

Set ipsec interface name

Description

description

Description value: character string

Description

Config destination address Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter interfaceconfig mode

cryto interface

Set ipsec interface name

Config destination address

destination

Config Source Interface address Purpose

Command

Instruction

Enter config mode

configure terminal

-

Hongdian Corporation

60

3G/4G Router CLI User Manual

Enter interfaceconfig mode

cryto interface

Set ipsec interface name

Config Source Interface address

source interface

Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter interfaceconfig mode

cryto interface

Set ipsec interface name

Match phase1

match phase1

Match phase1

Match phase2 Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter interfaceconfig mode

cryto interface

Set ipsec interface name

Match phase2

match phase2

Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter interfaceconfig mode

cryto interface

Set ipsec interface name

Delete Phase1 match

no match phase1

Delete Phase2 match

no match phase2

Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter interfaceconfig mode

cryto interface

Set ipsec interface name

Print Status

Print

Delete Config

Print Status

Hongdian Corporation

61

3G/4G Router CLI User Manual

3.22 OpenVPN Configuration OpenVPN is an application layer VPN implementation based on the OpenSSL library. The command parameters for the OpenVPN configuration are shown in figure 3 -28. The OpenVPN configuration command specification is shown in table below. Command Format

Function Description

Remark

mode (client|multi )

Configure the working mode of OpenVPN

Empty

dev (tun|tap)

Configure network interface types

Requirements are consistent with the destination

encrypt(MD5|SHA1|NONE)

Configure the encryption mode of the OpenVPN

The certificate authentication method is configured only when it is auth

keepalive

Configure the OpenVPN connection detection interval

Empty

protocol (tcp|udp)

Data transfer protocol type

Requirements are consistent with the destination

destination (A.B.C.D|WORD)

Destination IP address or domain name

Requirements are consistent with the destination

port

Destination port number

Default value: 1194 Requirements are consistent with the destination

compress ture

Open compression when VPN connected.

The default reference opens when configuring ture

nobind ture

Configure to bind a specific local port number

The default reference opens when configuring ture

username WORD password WORD

Configure the OpenVPN login user name and password.

The certificate authentication method is configured only when it is auth

authentication (auth|ssl|text)

Certificate authentication method

Auth authentication is supported only by

Hongdian Corporation

62

3G/4G Router CLI User Manual

more than 703_SE and 703_SE versions ca .LINE

Specify the file path for the client CA certificate

Empty

key .LINE

Specify the private key path for the current client

The certificate authentication is configured as SSL

cert .LINE

Specify the certificate file path for the current client

The certificate authentication is configured as SSL

tls .LINE

Configuring a secure transport layer protocol

Empty

cipher (DES-CBC|RC2-CBC|DES-EDE-CB C|DES-EDE3-CBC|DESX-CBC|BF -CBC|RC2-40-CBC|CAST5-CBC| RC2-64-CBC|AES-128-CBC|AES192-CBC|AES-256-CBC|SEED-C BC)

SSL encryption algorithm system

The certificate authentication is configured as SSL

local ip A.B.C.D

Local IP address

Work mode is configured when multi

remote ip A.B.C.D

Peer IP address

Work mode is configured when multi

secret .LINE

The secret key

Work mode is configured when multi

[Configuration example] service openvon // Enter the openvpn configuration item mode client // Configure the working mode as client mode dev tap // Configure the network interface protocol udp // Configure the protocol type as udp destination 172.16.2.56 // Configure the destination IP as port 65 // Configure port 65 compress true // enable compression authentication ssl // Certificate authentication is ssl ca / tmp / ca / // Configure the ca certificate path tls / tmp / tls / // configuration tls key tmp.key // Configure the client private key path cert tmp.cert // Configure the client certificate file path

Hongdian Corporation

63

3G/4G Router CLI User Manual cipher BF-CBC // Configure the encryption algorithm as BF-CBC

Hongdian Corporation

64

3G/4G Router CLI User Manual

3.23 NAT Config 3.23.1 Config destination IP Address Purpose

Command

Instruction

Enter config mode

configure terminal

-

Config destination IP Address

Ip nat outside destination all/icmp/udp/tcp

all/icmp/udp/tcp followed with a value: IP segment

3.23.2 Config Source IP Address Purpose

Command

Instruction

Enter config mode

configure terminal

-

Config Source IP Address

Ip nat outside source all/icmp/udp/tcp

all/icmp/udp/tcp followed with a value: IP segment

3.23.3 Config Source Interface Purpose

Command

Instruction

Enter config mode

configure terminal

-

Config Source Interface

Ip nat outside source interface

Interface value type: character string

masq

3.23.4 Delete Config Purpose

Command

Instruction

Enter config mode

configure terminal

-

Delete destination IP Address

no Ip nat outside destination all/icmp/udp/tcp

Interface value type: character string

Delete source IP address

no Ip nat outside source all/icmp/udp/tcp

all/icmp/udp/tcp followed with a value: IP segment

Delete Source Interface

no ip nat outside source interface

Interface value type: character string

Hongdian Corporation

masq

65

3G/4G Router CLI User Manual

3.24 Routing Configuration Routing refers to the routing information manually configured by the network administrator. When the network topology or link state changes, the network administrator needs to manually modify the relevant routing information in the routing table. The static routing configuration commands are shown in table below. Command Format

Function Description

Remark

ip route A.B.C.D/M

Configure the destination IP address and mask and the next hop IP address.

Empty

ip route A.B.C.D/M (A.B.C.D|INTERFACE| null0)

Configure destination IP address and mask, next hop interface.

Empty

ip route A.B.C.D/M (A.B.C.D|INTERFACE| null0)

Configuration destination, IP address and mask, next hop interface, and hops.

Empty

ip route A.B.C.D A.B.C.D (A.B.C.D|INTERFACE| null0)

Configure the destination IP address and mask, gateway, or interface.

Empty

ip route A.B.C.D A.B.C.D (A.B.C.D|INTERFACE| null0)

Configure destination IP address and mask, gateway or interface, and hops.

Empty

A.B.C.D

The policy routing configuration commands are shown in table below. Command Format

Function Description

Remark

ip route source (A.B.C.D/M|INTERFAC E) (INTERFACE|A.B.C.D)

Configure the source address, the next hop address, and the priority of the routing policy

Empty

[Configuration example] configure terminal // into configuration mode ip route 1.1.1.0/24 modem // Add static route to 1.1.1.0 network segment, next hop interface select modem ip route source 192.168.8.1/16 modem 9 // added to the 192.168.0.0 network segment of the polic y routing, the next hop interface for the modem, the priority of 9 write file // save the configuration

Hongdian Corporation

66

3G/4G Router CLI User Manual

The “null 0” is a vi rtual port on a router, also known as a drop port. All da ta a rri ving a t the port is dis ca rded di rectl y. The pri ma ry purpose is to dis card the ga rbage pa ckets in order to prevent routing l oops .

Hongdian Corporation

67

3G/4G Router CLI User Manual

3.25 RIP Config 3.25.1 Enable/Disable RIP Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter riplconfig mode

router rip

-

Disable rip

shutdown

Default value is enable.

Enable rip

no shutdown

-

Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter ripconfig mode

router rip

-

RIP Description

description

Description value: character string

Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter rip config mode

router rip

-

Config IP

nework

network value: IP

3.25.2 RIP Description

3.25.3 Config IP

3.25.4 Set Neighbour Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter ripconfig mode

router rip

-

Set neighbour

neighbor

Neighbor value: IP

Hongdian Corporation

68

3G/4G Router CLI User Manual

3.25.5 Set Redistribute Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter ripconfig mode

router rip

-

Set redistribute

redistribute

3.25.6 Set Passive Interface Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter ripconfig mode

router rip

-

Set passive interface

passive interface

3.25.7 Set distribute list Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter ripconfig mode

router rip

-

Set distribute list

distribute list

List value: character string

3.25.8 Set Version No. Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter ripconfig mode

router rip

-

Set version No.

version

Version value: 1, 2

3.25.9 Delete Config Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter ripconfig mode

router rip

-

Delete distribute list

no distribute list

List value: character string

Hongdian Corporation

69

3G/4G Router CLI User Manual

Delete nework

no nework

network value: IP

Delete neighbor

no neighbor

Neighbor value: IP

Delete passive interface

no passive interface

Delete redistribute

no redistribute

Delete version No.

no version

Version value: 1, 2

3.25.10 Print RIP Status Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter rip config mode

router rip

Print rip status

print

OSPF Config 3.25.11 Enable/Disable OSPF Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter ospflconfig mode

router ospf

-

Disable ospf

shutdown

Default value is enable.

Enable ospf

no shutdown

-

3.25.12 OSPF Description

3.25.13

Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter ospfconfig mode

router ospf

-

OSPF Description

description

Description value: character string

Set Network Purpose

Command

Instruction

Enter config mode

configure terminal

-

Hongdian Corporation

70

3G/4G Router CLI User Manual

Enter ospfconfig mode

Set network

routerospf

Ospf value:IP

area

Area value: IP or port No.

nework

network value: IP

3.25.14 Set Neighbour Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter ospfconfig mode

router ospf

-

Set neighbour

neighbor

Neighbor value: IP

3.25.15 Set Redistribute Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter ospfconfig mode

router ospf

-

Set Redistribute

redistribute

3.25.16 Set Passive Interface Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter ospfconfig mode

route ospf

-

Set Passive interface

passive interface

3.25.17 Set Distribute List Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter ospfconfig mode

router ospf

-

Set Distribute List

distribute list

List value: character string

Hongdian Corporation

71

3G/4G Router CLI User Manual

3.25.18 Set Version No. Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter ospfconfig mode

router ospf

-

Set Version No.

router id

ID value: IP

3.25.19 Delete Config Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter ripconfig mode

router rip

-

Delete distribute list

no distribute list

list value: character string

Delete nework area

no nework

Ospf value:IP

area

Area value: IP or port No. Delete neighbor

no neighbor

Delete passive interface

no passive interface

Delete redistribute

no redistribute

Delete route id

no route id

neighbor value: IP

3.25.20 Print OSPF Status Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter ospfconfig mode

routerospf

Print ospf status

print

3.26 BGP BGP (Border Gateway Protocol) is a routing protocol running on TCP. It is a protocol used to route routes between ASs. Configure BGP to enter the BPG configuration mode by entering telnet 127.0.0.1 2605 and enter zebra password into privileged mode. Table 3-34 shows the BGP dynamic routing configuration commands. Note: BGP is only supported by 703_SE and 703_SE or higher software version. Command Format

Hongdian Corporation

Function Description

Remark

72

3G/4G Router CLI User Manual

Command Format

Function Description

Remark

router bgp

Enable bgp and configure BGP AS number.

Empty

address-family ipv4 (multicast|unicast)

Configure the IPv4 address family (as multicast or unicast)

Empty

address-family vpnv4 unicast

Configure the vpnv4 address family to propagate in unicast form

Empty

aggregate-address (A.B.C.D|A.B.C.D/M) summary-only)

Configure aggregated addresses and only notify aggregated routes

Default status: no aggregated address

aggregate-address (A.B.C.D|A.B.C.D/M) as-set

Configure aggregated routes to generate AS collection path information

Default status: no aggregated address

bgp always-compare-med

Allows comparison of MED attribute values of routing paths from different AS neighbors

bgp bestpath as-path ignore

Ignore AS path information when setting BGP routing.

Default state: when selecting the best route, the default MED attribute value is only compared to routes from the same AS. Default status: AS path information is used when routing BGP.

bgp bestpath as-path confed bgp bestpath compare-routerid

Ignore router ID information when setting BGP routing.

bgp bestpath med confed

Use MED information when setting BGP routing based on routes obtained from Union neighbors.

bgp bestpath med missing-as-worst

Set the routing without the MED attribute as the worst MED routing process.

bgp client-to-client reflection

Configure route reflection from client to client.

bgp cluster-id (A.B.C.D|)

Cluster ID that configures routing reflectors.

bgp confederation identifier

Configuration alliance ID.

Hongdian Corporation

Default status: AS path information is not used when routing BGP. Default status: no MED information is used. Default state: routing without the MED attribute is used as the best MED routing process (MED=0). Default state: the routing reflector reflects a client's route to other clients after configuring the routing reflector by default. Default status: the cluster ID is the router ID of a single routing reflector in the cluster by default. Default status: no league ID.

73

3G/4G Router CLI User Manual

Command Format

Function Description

Remark

bgp confederation peer

A subsystem of an autonomous system whose configuration belongs to an alliance Configuring route attenuation

Default status: no sub autonomous system that belongs to an alliance. Default status: the default half-life, reuse, and suppress are 15 minutes, 750 and 2000, respectively, and the default max-suppress-time is 4 times the half-life.

bgp default local-preference

Configuring local priorities.

Default state: the default local priority is 100, and the default local priority can be restored using the no BGP default local-preference command.

bgp deterministic-med

Configure whether to use the MED property when comparing routes from different neighbors within the same AS.

Default status: the MED property is not used when comparing routes posted by sub AS.

bgp enforce-first-as

Check that the first path in the AS path in the receive route is the neighbor AS

Default status: no check.

bgp log-neighbor-changes

Record and display information about neighbor establishment process

Empty

bgp network import-check

Configure to check the reachability of the routing of the network command configuration.

Default status: no check.

bgp router-id A.B.C.D

Set the router identifier for BGP.

Default state: the protocol automatically selects an interface address in the currently available interface as the router identifier for the BGP.

bgp scan-time

Configure the BGP scan time

Default status: 60s

Distance bgp

Configure the routing priority of the BGP protocol

Default status: the EBGP priority defaults to 20, the IBGP priority defaults to 200, and the local routing priority defaults to 200.

bgp dampening

maximum-paths (ibgp |cr) Configure an equivalent path for load balancing

Empty

neighbor

Default state: the default state of the neighbor is

Hongdian Corporation

Activate BGP neighbors

74

3G/4G Router CLI User Manual

Command Format

Function Description

(A.B.C.D|WORD ) activate

neighbor

(A.B.C.D|WORD ) allowas-in

neighbor

(A.B.C.D|WORD )

active, and no configuration is normally required Configuration allows the BGP router to receive the number of routes that contain its own AS number.

The number indicates the number of AS numbers that can appear several times in the received routing AS_PATH attribute. The range is 1~10. According to the anti - ring principle of AS_PATH, a BGP router will discard this route when it receives a route containing its own AS

Routing update capability description for designated neighbors.

Default state: ability to issue routing refresh capability.

Send default routes to neighbors.

Default state: do not send default routes to neighbors.

Close direct connect detection function

Empty

Set routing publish filter

Default status: no filter table.

Configuration allows connections to EBGP neighbors on the network that are not directly connected

Default state: by default, only directly connected neighbors, that is, TTL=1, are allowed.

Set neighbor filter list.

Default state: by default, neighbors have no AS filter list

Build neighbors using camouflage AS

Empty

capability route-refresh neighbor

(A.B.C.D|WORD ) default-originate (route-map WORD|cr) neighbor

Remark

(A.B.C.D|WORD ) disable-connected-check neighbor

(A.B.C.D|WORD ) distribute-list {|WO RD} in|out neighbor (A.B.C.D|WORD ) ebgp-multihop (cr|) neighbor

(A.B.C.D|WORD ) filter-list WORD in|out neighbor

(A.B.C.D|WORD ) local-as numbers no-prepend replace-as neighbor (A.B.C.D|WORD )

Hongdian Corporation

Restrict the number of routes received from a neighbor or neighbor group.

Default status: unlimited.

75

3G/4G Router CLI User Manual

Command Format

Function Description

Remark

Cancel the BGP's processing of the next hop of the released route, and take your address as the next hop.

Default status: use normal routing for next hop data.

Ignore each other's ability to negotiate information and use default capability information.

Default status: negotiate information using the ability of the other party to declare.

Apply the specified prefix-list filter

Default state: no filter tables are used.

maximum-prefix {} neighbor

(A.B.C.D|WORD ) next-hop-self neighbor

(A.B.C.D|WORD ) override-capability neighbor

(A.B.C.D|WORD )prefix-list table to the specified neighbor. |WORD in|out neighbor

Configure the neighbor's Route map.

Default status: no route-map.

neighbor (A.B.C.D|WORD ) remove-private-AS

Remove private AS number

Empty

neighbor (A.B.C.D|WORD ) route-map WORD export|import|in|out

Specify the neighbor reference route-map

Empty

Configure a neighbor as a route reflector client.

Default status: non routing reflector.

The configuration passes group properties to neighbor groups.

Default status: no group properties are passed.

neighbor (A.B.C.D|WORD ) soft-reconfiguration inbound

The routing that specifies a neighbor's sending to itself is kept in the cache

Empty

neighbor (A.B.C.D|WORD ) timers

Configure the interval between neighbors to send keepalive messages and neighbor holding time.

Default status: the default Keepalive interval is 60 seconds, and the default holdtime interval is 180 seconds.

(A.B.C.D|WORD ) remote-as

neighbor

(A.B.C.D|WORD ) route-reflector-client neighbor

(A.B.C.D|WORD ) send-community both|extended|standard|c r

( |connect) (|)

Connect: configure the value of neighbor reconnection timers.

Connect: default state:

Hongdian Corporation

76

3G/4G Router CLI User Manual

Command Format

Function Description

Remark the default value of the reconnection timer is 120 seconds

neighbor

A particular detail route is missing from a particular neighbor

Empty

Configure your own update source

Empty

neighbor (A.B.C.D|WORD ) weight

Configure the neighbor's routing weights.

Default state: the routing weight received from neighbors is 0, and the internally generated routing weight is 32768.

neighbor (A.B.C.D|WORD ) peer-group WORD

Groups that configure BGP parameters and policies

Empty

The configuration matches the ability negotiation between neighbors strictly.

Default status: no strict matches are made.

Configuring the AS path to the neighbor's route does not attach its own system number.

Default status: when the BGP sends the route to the EBGP neighbor, the AS path attribute in it adds its own AS number.

The next jump property for configuring routes to neighbors does not change.

Default status: when the BGP sends the route to the EBGP neighbor, the next jump property is set to the IP address of the interface directly connected to the neighbor.

network ( | )

Configure local BGP to send network routing.

Default state: no routing to send.

redistribute {babel|batman| connected|hsls|isis|kernel |olsr|ospf|rip|static

Routing other protocols to BGP.

Default state: no routing is introduced.

(A.B.C.D|WORD ) unsuppress-map WORD neighbor

(A.B.C.D|WORD ) update-source {A.B.C.D|WORD|X:X::X:X}

neighbor

(A.B.C.D|WORD ) strict-capability-match neighbor

(A.B.C.D|WORD ) transparent-as

neighbor (A.B.C.D|WORD ) transparent-nexthop

neighbor

(A.B.C.D|WORD ) version (4|4-)

Hongdian Corporation

77

3G/4G Router CLI User Manual

Command Format

Function Description

Remark

Set BGP timer parameters.

Default state: the default keepalive and holdtime times are 60 and 180 seconds, respectively.

(metric|route-map|cr) timers bgp

[Configuration example] telnet 127.0.0.1 2605 // telent 2605 port into BGP configuration mode password: // Enter the password for BGP mode for zebra enable // Enter privileged mode configure terminal // into configuration mode router bgp 7675 // Configure BGP, AS number is 7675 bgp router-id 1.1.1.1 // Configure BGP router-id network 192.168.10.0/24 // advertised 192.168.10.0 network segment network 192.168.8.0/24 // notice 192.168.8.0 network segment Write // Save the BGP configuration

3.27 QoS Configuration QoS (Quality of Service, quality of service) refers to a network can use all kinds of basic technology, provide better service for the network communication capacity specified, is a security mechanism of the network, is a technology used to solve the network delay and congestion. When the network is overloaded or congested, QoS can ensure that important traffic is not delayed or discarded, while ensuring efficient network operation. The QoS configuration commands are shown in table below. Command Format

Function Description

Remark

service qos rule WORD

Configure the link backup rule name

Empty

interface (br0|eth0|modem|modem2)

Configure flow control interface

Empty

destination A.B.C.D/M

Configure network address

Empty

destination A.B.C.D/M port

Configure network addresses and port numbers

Empty

rate

Configure rate

Unit: kbps

rate ceil priority

Configuration rate, redundancy bandwidth, and priority

Speed and redundancy bandwidth unit: kbps

[Configuration example]

Hongdian Corporation

78

3G/4G Router CLI User Manual

service qos rule 1 // Configure the qos rule with the rule name 1 to enter the configuration mode interface br0 // Configure the flow control interface as br0 destination 192.168.8.12/24 port 300 // Configure the network address to 192.168.8.12/24 port to 300 Rate 1200 ceil 600 priority 12 // Configuration rate is 1200kbps Redundant bandwidth is 600kbps Priority 12

3.28 IP Filter Configuration IP filter is the router IP address through the filter rules to decide whether to allow external devices to access the router and allow the data packet through the router, IP filter is used to perform only a part of the host access to the Internet or prohibit a host specific access network. The IP filter configuration commands are shown in table below. Command Format

Function Description

Remark

access-list ip forward (deny|permit) (all|udp|tcp) (A.B.C.D/M|any|host A.B.C.D) [|PORTLIST] (A.B.C.D/M|any|host A.B.C.D) [PORTLIST]

Used for IP filtering of the corresponding protocol packets, filtering the type for forwarding, filtering actions for accepting or discarding.

The first set of parameters [|PORTLIST] is the configuration source port, the second group PORTLIST is the configuration destination port, and the two is optional

Protocol contains:   

access-list ip forward (deny|permit) icmp (A.B.C.D/M|any|host A.B.C.D) (A.B.C.D/M|any|host A.B.C.D)

All udp tcp

Used for IP filtering of the corresponding protocol packets, filtering the type for forwarding, filtering actions for accepting or discarding.

The port is not configured when the protocol is ICMP

Protocol: 

access-list ip input (deny|permit) (all|udp|tcp) (A.B.C.D/M|any|host A.B.C.D) [PORTLIST] (any|interface LFNAME) [PORTLIST]

icmp

Used for IP filtering of the corresponding protocol packets, filtering type as input, filtering action for accepting or discarding. Protocol contains:   

access-list ip input (deny|permit) icmp (A.B.C.D/M|any|host A.B.C.D) (any|interface LFNAME)

all udp tcp

Used for IP filtering of the corresponding protocol packets, filtering type as input, filtering action for accepting or discarding.

The first set of PORTLIST is the configuration source port, the second group PORTLIST is the configuration destination port, and the two is optional

The port is not configured when the protocol is ICMP

Agreement for:

Hongdian Corporation

79

3G/4G Router CLI User Manual

Command Format

Function Description 

Remark

icmp

[Configuration example] access-list ip forward deny tcp 192.168.8.1/24 126 192.168.10.1/24 123 // Configure the ip filtering type to be forwarded and the filtering action is discarded. The protocol type is tcp, the source address is 192.168.8.1/24, the source port is 126, the destination address is 192.168.10.1/24, and the destination port is 123 access-list ip input permit icmp 192.168.8.1/24 interface br0 // Configure ip filter filter type input, filter action to accept, protocol type icmp, source address is 192.168.8.1/24, the destination address is br0 interface

3.29 Domain Name Filtering Configuration The domain name filter supports black-and-white lists. The main purpose is to prohibit the host from accessing certain domains in the LAN or to allow access to the specified domain name. The domain filtering configuration command is shown in table below. Command Format

Function Description

Remark

access-list domain (deny|permit) (WORD|any)

Domain filtering configuration

For matching WORD access, perform receive or drop actions, or perform any receive or drop action on any domain name WORD type length is less than 64 bit characters.

[Configuration example] Access-list domain deny baidu.com // Access to the domain name exists in the keyword baidu.com the contents of the implementation of discarded action

3.30 MAC Filtering and Invalid Package Access Configuration MAC filtering also supports black and white lists, which are often used to control host access to routers. In addition to implementing this functionality, macro 4G Router also limits access to specific MAC hosts, or allows hosts with specific MAC addresses to access external networks. The MAC filter configuration commands are shown in table below. Command Format

Function Description

Remark

access-list mac (input|forward) (deny|permit) (WORD|any)

MAC filtering configuration.

Perform actions on MAC matching, WORD, or access to any address.

Hongdian Corporation

80

3G/4G Router CLI User Manual

access-list invalid package

Invalid package access configuration

Empty

[Configuration example] access-list mac input deny WORD // Dispose of data from the MAC address for WORD access-list mac forward deny any // Access to any MAC address is not forwarded

Hongdian Corporation

81

3G/4G Router CLI User Manual

3.31 Syslog Config 3.31.1 Enable/Disable Syslog Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter sysloglconfig mode

service syslog

-

Disable syslog

shutdown

Default value is enable.

Enable syslog

no shutdown

-

3.31.2 Syslog Description Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter syslogconfig mode

servce syslog

-

Syslog Description

description

Description value: character string

3.31.3 Config destination address Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter syslogfconfig mode

service syslog

Config destination address

destination

destionation value: IP

3.31.4 Config Server Port Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter syslogconfig mode

service syslog

-

Config Server Port

server port

Port value: 1-65535

3.31.5 Set Log File Size Purpose

Command

Instruction

Enter config mode

configure terminal

-

Hongdian Corporation

82

3G/4G Router CLI User Manual

Enter syslogconfig mode

service syslog

Set File Size

file size

-

3.31.6 Delete Config Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter syslogconfig mode

service syslog

-

Delete destination

no destination

Delete server port

no server port

Delete file size

no file size

3.31.7 Print Syslog status Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter syslogconfig mode

service syslog

Print syslog Status

print

3.32 NTP Config 3.32.1 Enable/Disable NTP Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter ntplconfig mode

service ntp

-

Disable ntp

shutdown

Default value is enable.

Enable ntp

no shutdown

-

3.32.2 NTP Description Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter ntpconfig mode

servce ntp

-

Hongdian Corporation

83

3G/4G Router CLI User Manual

NTP Description

description

Description value: character string

3.32.3 Config destination address Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter ntpfconfig mode

service ntp

Config primary destination

primary destination

Config secondary destination

secondary destination

3.32.4 Config Update Interval Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter ntpconfig mode

service ntp

-

Config update interval

Update interval

Interval value range: 1-65535

3.32.5 Config Time Zone Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter ntpconfig mode

service ntp

-

Config time zone

time zone

3.32.6 Delete Config Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter syslogconfig mode

service syslog

-

Delete destination domain

no destination domain

-

Delete ntp interval

no ntp interval

-

Delete time zone

no time zone

-

Hongdian Corporation

84

3G/4G Router CLI User Manual

3.32.7 Print NTP Status Purpose

Command

Instruction

Enter config mode

configure terminal

-

Enter ntpconfig mode

service ntp

-

Print ntp status

Print

-

3.33 User Management Configuration The WEB user management configuration is used primarily to configure WEB users to log in to related parameters. Contains login users and passwords. Mainly divided into WEB management users and WEB guest users. The WEB user management corresponds to the CLI configuration command as "service webadmin". The WEB user management configuration commands are shown in table below Command Format

Function Description

Remark

admin username WORD password CODE

Configure WEB to manage the user's login name and password.

The login name and password are 64 bytes long

guest username WORD password CODE

Configure the login name and password of the WEB guest user.

The login name and password are 64 bytes long

port

Configure WEB to access port numbers.

Empty

[Configuration example] service webadmin // Enter SSH user management configuration description WEB Configuration // Add descriptive information to the WEB user management configuration admin username admin password admin // Configure the login and password for the web administration user guest username guest password guest // Configure the login name and password for the WEB guest user port 80 // Configure the WEB access port number

WEB user mana gement onl y provides the user's modi fica tion function a nd does not provide the add, delete, and other functi ons .

3.34 CLI Account Management Configuration The CLI account management configuration is used primarily to configure user login CLI parameters. Contains login user name and password. The CLI account management configuration commands are shown in table below. Command Format

Function Description

Remark

hostname WORD

Configure system network name

The maximum length is

Hongdian Corporation

85

3G/4G Router CLI User Manual

Command Format

Function Description

Remark 64 bytes

password 8 WORD

Configure the CLI login password

The maximum length is 64 bytes

password LINE

Configure the CLI login password

The maximum length is 64 bytes

enable password 8 WORD

Configure the password for entering privileged mode in CLI

The maximum length is 64 bytes

enable password LINE

Configure the password for entering privileged mode in CLI

The maximum length is 64 bytes

service advanced-vty

After configuration, CLI enters the privileged mode directly after login

Empty

[Configuration example] configure terminal // into configuration mode hostname Router // Configure the router system name as Router password super123 // Configure the CLI login password to super123 enable password 654321 // Configure the password to enter privileged mode service advance-vty // configuration does not enter the user mode, directly into the privileged mode

3.35 IPFIX Configuration IPFIX is called “IP Flow Information Export”, that is IP data stream information output, which is a standard protocol published by the IETF for stream information measurement in the network. The IPFIX configuration commands are shown in table below. Command Format

Function Description

Remark

collector address A.B.C.D

Configure the IP address for IPfix detection

Empty

collector port

Configure the port number for IPfix detection

Empty

export interval

Configuring the IPfix analysis interval

Unit: seconds

odid

Configure the observation field IPfix of ID

Empty

probe WORD

Configuration monitoring interface

Empty

[Configuration example] service ipfix // into the ipfix configuration mode

Hongdian Corporation

86

3G/4G Router CLI User Manual collector address 192.168.8.123 // Configure ipfix to monitor the IP address to 192.168.8.123 collector port 7000 // Configure ipfix to monitor port number 7000 export interval 30 // Configure the interval to 30 seconds odid 5 // configure ipfix to view the domain ID of 5 probe br0 // configuration monitoring interface for br0

3.36 TCPMSS Configuration TCPMSS configuration is to configure the maximum segment size of data segments in the TCP transmission, thereby reducing the failure of data transmission due to the mismatch of data segments in data transmission, and the network can not communicate. The TCPMSS configuration commands are shown in table below. Command Format

Function Description

Remark

tcpmss destination A.B.C.D mss (|MRU)

Configure the destination of the IP, the tcpmss address, and the maximum segment size of the packet

The units of MSS are: bytes

tcpmss destination A.B.C.D port mss (|MRU)

Configure the destination, IP address, port number, and MSS value of the tcpmss

Empty

tcpmss port mss (|MRU)

Configure the port number and the MSS value of the tcpmss

Empty

[Configuration example] ip tcpmss destination 192.168.8.1 port 53 mss 1452 // Configure the maximum segment size of the tcp transmission with the destination address of 192.168.8.1 port number 53 to 1452 bytes

3.37 VRRP Settings Virtual Router Redundancy Protocol (VRRP) is a gateway redundancy protocol. The protocol number in the IP packet is 112, and the multicast address is 224.0.0.18, which is divided into the master router and the backup router. There is only one main router, and the other routers are available. If the primary router is down, the standby router with the highest priority becomes the primary router. In the global configuration mode, service vrrp enters the VRRP configuration mode. The VRRP configuration commands are shown in table below. Command Format

Function Description

Remark

delay

Set the VRRP timer

The timer refers to the Hello time

virtual id

Set the ID for VRRP

ID refers to the number of virtual routers (backup group)

virtual interface WORD

Set up the virtual interface for VRRP

Empty

Hongdian Corporation

87

3G/4G Router CLI User Manual

Command Format

Function Description

Remark

virtual ip A.B.C.D

Set up the virtual IP for VRRP

Empty

virtual priority

Sets the priority of the VRRP

Empty

[Configuration example] service vrrp virtual ip 192.168.8.3 // set the virtual IP to 192.168.8.3 virtual id 2 // set the virtual ID to 2 virtual interface br0 // set the virtual interface to br0 virtual priority 100 // Set the priority of VRRP to 100 delay 30 Sets the timer for VRRP to 30s

3.38 RAW Table Settings RAW table is one of the IPTABLES table, the highest priority. There are two chains in the RAW table, PREROUTING and OUTPUT, which are the highest priority, so that the received packets can be processed before the connection trace. Once the user uses the RAW table, in a chain, RAW table after processing, will skip the NAT table and ip_conntrack processing, that is no longer address translation and packet tracking processing. RAW tables can be used in situations where you do not need to do nat, such as ipsec. Configure the RAW table in global configuration mode. The RAW configuration commands are shown in table below. Command Format

Function Description

Remark

ip raw prerouting A.B.C.D/M E.F.G.H/M accept

Configure the RAW table PREROUTING chain to allow packets to be passed to the E.F.G.H/M in A.B.C.D/M

Empty

ip raw prerouting A.B.C.D/M E.F.G.H/M drop

Configure the A.B.C.D/M in the RAW table PREROUTING chain to discard the packets to the E.F.G.H/M

Empty

ip raw prerouting A.B.C.D/M E.F.G.H/M notrack

Configure the RAW table PREROUTING chain. The A.B.C.D/M to E.F.G.H/M packet is not tracked

Empty

ip raw prerouting A.B.C.D/M E.F.G.H/M return

Data packets skip the RAW table, PREROUTING chain, A.B.C.D/M go to E.F.G.H/M rules

Empty

ip raw output A.B.C.D/M E.F.G.H/M accept

Configure the RAW table OUTPUT chain to allow packets to be passed to the E.F.G.H/M in A.B.C.D/M

Empty

ip raw output E.F.G.H/M A.B.C.D/M drop

Configure the A.B.C.D/M in the RAW table OUTPUT chain to discard the packets to the E.F.G.H/M

Empty

ip raw output A.B.C.D/M

Configure the RAW table OUTPUT

Empty

Hongdian Corporation

88

3G/4G Router CLI User Manual

Command Format

Function Description

E.F.G.H/M notrack

chain. The A.B.C.D/M to E.F.G.H/M packet is not tracked

ip raw output A.B.C.D/M E.F.G.H/M return

Data packets skip the RAW table, OUTPUT chain, A.B.C.D/M go to E.F.G.H/M rules

Remark

Empty

[Configuration example] configure terminal to enter privileged mode ip raw prerouting 192.168.8.0/24 192.168.88.0/24 notrack // configuration RAW table PREROUTING chain 192.1638.8.0/24 packets to 192.168.88.0/24 do not track ip raw output 192.168.8.0/24 192.168.88.0/24 notrack // configuration RAW table OUTPUT chain 192.1638.8.0/24 packets to 192.168.88.0/24 do not track

3.39 Access Control List 3.39.1 Stand Access Control List Config Purpose

Command

Enter config mode

configure terminal

Config standard access control list

access-list deny/permit A.B.C.D

A.B.C.D

or any or host

A.B.C.D

3.39.2 Extensible Access Control List Purpose

Command

Enter config mode

configure terminal

Config extansible access control list

access-list deny/permit

all/udp/tcp/icmp

A.B.C.D A.B.C.D (A.B.C.D A.B.C.D/any/host A.B.C.D) Or any (A.B.C.D A.B.C.D/any/host A.B.C.D) Or host A.B.C.D(A.B.C.D A.B.C.D/any/host A.B.C.D)

Hongdian Corporation

89

3G/4G Router CLI User Manual

3.39.3 Extensible Standard Access Control List Purpose

Command

Enter config mode

configure terminal

Config extensible standard access control list

access-list deny/permit A.B.C.D

A.B.C.D

Or any Or host

A.B.C.D

3.39.4 Extensible Access Control List Extension Purpose

Command

Enter config mode

configure terminal

Extensible access control list extension

access-list deny/permit

all/udp/tcp/icmp

A.B.C.D A.B.C.D (A.B.C.D A.B.C.D/any/host A.B.C.D) Or any (A.B.C.D A.B.C.D/any/host A.B.C.D) Or host A.B.C.D(A.B.C.D A.B.C.D/any/host A.B.C.D)

3.39.5 Access Control List Extension With Port Purpose

Command

Enter config mode

configure terminal

Access control list extension with port

access-list deny/permit

udp/tcp

A.B.C.D A.B.C.D sport port_num(A.B.C.D A.B.C.D deport port_num/none) Or A.B.C.D A.B.C.D (A.B.C.D A.B.C.D deport port_num)

Hongdian Corporation

90

3G/4G Router CLI User Manual UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2348 errors:0 dropped:0 overruns:0 frame:0 TX packets:10674 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:146027 (142.6 KiB) TX bytes:1483298 (1.4 MiB)

Hongdian Corporation

91

3G/4G Router CLI User Manual

3.40 Status 3.40.1 Show version Purpose

Command

Instruction

show version

show version

-

3.40.2 Show VPDN Status Purpose

Command

Instruction

show interface vpdn

show interface vpdn

-

3.40.3 Show IPSec Status Purpose

Command

Instruction

Show IPSec Status

show interface crypto interface

-

3.40.4 Show Date Purpose

Command

Instruction

Show Date

show date

-

3.40.5 Show SNMP Version Purpose

Command

Instruction

Show SNMP version

show snmp version

-

3.40.6 Show CPU Utilization Purpose

Command

Instruction

Show CPU Utilization

show cpu utilization

-

Hongdian Corporation

92

3G/4G Router CLI User Manual

3.41 Config File 3.41.1 Erase Current Config Purpose

Command

Instruction

Erase current config

erase current- config

-

3.41.2 Save Current Config Purpose

Command

Instruction

Save current config

save current-config

-

Hongdian Corporation

93

Create smart things

F14 - F16, Tower A, Building 14, No.12, Ganli 6th Road, Longgang District, Shenzhen 518112, China. +86-755-88864288-5

+86-755-83404677

hongdianchina

www.hongdian.com

[email protected]

Hongdian_China