104
CLI User Manual 3G/4G Router www.hongdian.com

CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

  • Upload
    lynhan

  • View
    237

  • Download
    0

Embed Size (px)

Citation preview

Page 1: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

CLI User Manual

3G/4G Router

www.hongdian.com

Page 2: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Doc. Version 1 .2 ii

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.

Page 3: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Doc. Version 1 .2 iii

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 Version

Release Data

Details

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

Page 4: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Doc. Version 1 .2 iv

3G/4G Router CLI User Manual

control command profile.

V1.2 2017.06.05 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.

Page 5: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Doc. Version 1 .2 v

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

Page 6: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Doc. Version 1 .2 vi

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

Page 7: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Doc. Version 1 .2 vii

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

Page 8: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Doc. Version 1 .2 viii

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

Page 9: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Doc. Version 1 .2 ix

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

Page 10: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Doc. Version 1 .2 x

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

Page 11: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 1

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:

Page 12: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 2

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 Instruction

Enter Normal

mode

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 system

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 ?

Page 13: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 3

3G/4G Router CLI User Manual

history Display the session command history

interface Interface status and configuration

ip IP information

ipv6 IPv6 information

kernellog show kernel log information

memory Memory statistics

syslog show system log information

table default routing table to use for all clients

version 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 <Tab> key, command start with the key words, press <Tab> key to switch among those commands if there are multiple match.

hongdian-Router> hel+press <Tab> 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.

Page 14: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 4

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 <Enter> when pausing Display next message

Input <blank> when pausing Display another screen message

Input any other key when pausing Exit display

Page 15: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 5

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.

Page 16: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 6

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

Page 17: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 7

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 Instruction

Show Ethernet port status

show interface interface-type interface-number

Page 18: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 8

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:1659238 (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 Instruction

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 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 Instruction

Show LAN port status show interface interface-type

interface-number

Page 19: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 9

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

band (bgn|n|bg)

Configure network mode, including:

bgn bg n

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

network(bgn|n|bg)

Configure network mode, including:

bgn bg n

Configure the WLAN network mode on the 7.0.X version using the

network parameter configuration

bandwidth (20M|40M)

Configuring bandwidth, including:

20M 40M

Empty

ip address A.B.C.D/M Configuring the IP assignment The working mode is valid

Page 20: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 10

3G/4G Router CLI User Manual

Command Format Function Description Remark

address 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|repeater)

Configuring the working mode, including:

ap station repeater

There is no repeater schema on the 7.0.X version

ssid CODE Configure the SSID name and the broadcast status is enabled

The maximum length is 32

bytes

Broadcast status configuration is valid only in AP mode

ssid CODE hide Configure the SSID name and the

broadcast status is disabled

The maximum length is 32

bytes

Broadcast status configuration is valid only in AP mode

security (wpa|wpa2)

encryption (tkip|aes) CODE

lifetime <1-86400>

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

The key length is 8-63 bytes

Actual time interval: 120-86400

Updated time interval: seconds

channel <0-13>|auto 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

Page 21: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 11

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.

bandwidth (20M|40M|80M)

Configure bandwidth, including:

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:

ap station

Empty

ssid CODE Configure the SSID name and the broadcast status is enabled

The maximum length is 32 bytes

Broadcast status configuration is valid only

in AP mode

ssid CODE hide Configure the SSID name and the broadcast status is disabled

The maximum length is 32

bytes

Broadcast status configuration is valid only in AP mode

security (wpa|wpa2)

encryption (tkip|aes) CODE

lifetime <1-86400>

Configure encryption methods,

algorithms, WPA keys, and update time intervals

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 <36-165>|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]

Page 22: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 12

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

Page 23: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 13

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

Page 24: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 14

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

retry

Interval& retry parameter

ranger: 1-512

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 -

Page 25: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 15

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

Page 26: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 16

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

Page 27: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 17

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

retry

interval & retry value

range: 1-65535

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

Page 28: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 18

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/interface

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

Page 29: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 19

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|<1-9>)

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 <1-65535> Configure timeout value Unit: seconds

select interface (eth0|wlan|modem|modem2)

Configure the link backup interface type

Empty

select interface (eth0|wlan)

check (WORD|A.B.C.D) interval <1-65535> retry

Configure the link backup interface,

detect IP or domain name, detection time interval, and the

Unit of time: seconds

Page 30: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 20

3G/4G Router CLI User Manual

Command Format Function Description Remark

<1-65535> 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 <1-65535> retry <1-65535>

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

Page 31: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 21

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

Page 32: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 22

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

mac

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

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

-

Page 33: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 23

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

Page 34: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 24

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

Page 35: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 25

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

retry

Check interval & retry

value range: 1-65535

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 -

Page 36: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 26

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

Page 37: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 27

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

Page 38: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 28

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

retry

check interval and retry value range: 1-65535

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

Page 39: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 29

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

Page 40: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 30

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 -

Page 41: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 31

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

password

Username/password value:character string

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

Page 42: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 32

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 -

Page 43: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 33

3G/4G Router CLI User Manual

Example: Print DDNS status hongdian-Router#configure terminal

hongdian-Router(config)#service ddns

hongdian-Router(config-ddns)#print

Page 44: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 34

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 -

Page 45: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 35

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

3.13.8 Config Heartbeat Interval Purpose Command Instruction

Enter config mode configure terminal -

Enter dtuconfig mode service dtu -

Config Heartbeat Interval heartbeat interval interval value range: 1-65536

Page 46: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 36

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

retry

Interval & retry value range: 1-65536

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 -

Page 47: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 37

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

3.13.16 Config Serial Port Stop Bits 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

3.13.17 Protocol Select Purpose Command Instruction

Enter config mode configure terminal -

Enter dtuconfig mode service dtu -

Protocol Select protocol protocol value: tcp,

udp

Page 48: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 38

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 <1-65535> GPS information reporting interval Unit: seconds

local id LINE Configure the GPS local identification code

Empty

local port <1-65535> Configure the GPS local port. Empty

Page 49: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 39

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 <tcp|udp> 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 <1-65535> 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

Page 50: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 40

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

Page 51: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 41

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 -

Page 52: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 42

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

Page 53: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 43

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 -

Page 54: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 44

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

Page 55: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 45

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

Page 56: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 46

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

Page 57: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 47

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 <idle|timeout> The offline mode for configuring

trigger settings is idle offline /timeout.

Idle: offline when idle timeout: offline when

timeout

online time <0-86400> Configure the online time of the trigger setting.

Unit: seconds

phone number WORD action <modem-down|modem-up|modem2-down|modem2-up|

reboot>

Configure phone number and task type for trigger settings.

Empty

data stream action

<modem-all-up|modem-up|modem2-up>

The type of action triggered by

configuring data.

Empty

wakeup via <phone|phone&data>

Configure trigger mode for trigger settings.

Trigger mode option:

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

Page 58: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 48

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

Page 59: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 49

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

retry

Interval & retry value range:

1-512

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 According to your ppp advance setting, deleted related config

Page 60: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 50

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

Page 61: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 51

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 -

3.20.2 VPDN Description 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.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

-

Page 62: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 52

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

Page 63: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 53

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

Page 64: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 54

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 -

20.1.2 Phase1 Description

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

20.1.3 Authentication Mode

Purpose Command Instruction

Enter config mode configure terminal -

Enter phase1lconfig mode cryto isakmp

Set Authentication Mode authentication authentication value:psk

20.1.4 Encryption Mode

Purpose Command Instruction

Enter config mode configure terminal -

Enter phase1llconfig mode cryto isakmp

Set Encryption Mode encryption

Page 65: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 55

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

20.1.9 Set Lifetime

Purpose Command Instruction

Enter config mode configure terminal -

Enter phase1config mode cryto isakmp

Page 66: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 56

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

Page 67: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 57

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

20.2.3 Set Encryption

Purpose Command Instruction

Enter config mode configure terminal -

Enter phase2config mode cryto ipsec isakmp Input phase2 name after isakmp

Set encryption encryption

Page 68: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 58

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

20.2.8 Set pfs

Purpose Command Instruction

Enter config mode configure

terminal

-

Enter phase2config mode cryto ipsec Input phase2 name after isakmp

Page 69: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 59

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

Page 70: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 60

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 -

Description

Purpose Command Instruction

Enter config mode configure terminal -

Enter interfaceconfig mode cryto interface Set ipsec interface name

Description description Description value: character string

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 -

Page 71: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 61

3G/4G Router CLI User Manual

Enter interfaceconfig mode cryto interface Set ipsec interface name

Config Source Interface

address

source interface

Match phase1

Purpose Command Instruction

Enter config mode configure terminal -

Enter interfaceconfig mode cryto interface Set ipsec interface name

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

Delete Config

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

Print Status

Purpose Command Instruction

Enter config mode configure terminal -

Enter interfaceconfig mode cryto interface Set ipsec interface name

Print Status Print

Page 72: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 62

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<1-65535> 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 <1-65535> 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

Page 73: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 63

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-CBC|DES-EDE3-CBC|DESX-CBC|BF-CBC|RC2-40-CBC|CAST5-CBC|RC2-64-CBC|AES-128-CBC|AES-192-CBC|AES-256-CBC|SEED-CBC)

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

Page 74: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 64

3G/4G Router CLI User Manual

cipher BF-CBC // Configure the encryption algorithm as BF-CBC

Page 75: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 65

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

masq

Interface value type: character string

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

masq

Interface value type:

character string

Page 76: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 66

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

A.B.C.D

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) <5-255>

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) <5-255>

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

Empty

The policy routing configuration commands are shown in table below.

Command Format Function Description Remark

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

<3-252>

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

Page 77: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 67

3G/4G Router CLI User Manual

The “null0” is a vi rtual port on a router, also known as a drop port. All data arriving at the port is

discarded directly. The primary purpose is to discard the garbage packets in order to prevent routing loops .

Page 78: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 68

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 -

3.25.2 RIP Description Purpose Command Instruction

Enter config mode configure terminal -

Enter ripconfig mode router rip -

RIP Description description Description value: character string

3.25.3 Config IP

Purpose Command Instruction

Enter config mode configure terminal -

Enter rip config mode router rip -

Config IP nework network value: 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

Page 79: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 69

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

Page 80: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 70

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 Purpose Command Instruction

Enter config mode configure terminal -

Enter ospfconfig mode router ospf -

OSPF Description description Description value: character

string

3.25.13 Set Network Purpose Command Instruction

Enter config mode configure terminal -

Page 81: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 71

3G/4G Router CLI User Manual

Enter ospfconfig mode routerospf

area

Ospf value:IP

Area value: IP or port No.

Set network 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

Page 82: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 72

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 area Ospf value:IP

Area value: IP or port No.

Delete neighbor no neighbor neighbor value: IP

Delete passive interface no passive interface

Delete redistribute no redistribute

Delete route id no route id

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 Function Description Remark

Page 83: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 73

3G/4G Router CLI User Manual

Command Format Function Description Remark

router bgp <1-4294967295>

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

Default state: when selecting the best route, the default MED attribute value is only compared to routes from the same AS.

bgp bestpath as-path ignore

Ignore AS path information when setting BGP routing.

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.

Default status: AS path

information is not used when routing BGP.

bgp bestpath med confed Use MED information when setting BGP routing based on routes obtained

from Union neighbors.

Default status: no MED information is used.

bgp bestpath med

missing-as-worst

Set the routing without the MED

attribute as the worst MED routing process.

Default state: routing without the MED attribute

is used as the best MED routing process (MED=0).

bgp client-to-client reflection

Configure route reflection from client to client.

Default state: the routing reflector reflects a client's route to other clients after configuring the routing reflector by default.

bgp cluster-id (A.B.C.D|<1-4294967295>)

Cluster ID that configures routing reflectors.

Default status: the cluster ID is the router ID of a single routing reflector in the cluster by default.

bgp confederation identifier

Configuration alliance ID. Default status: no league ID.

Page 84: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 74

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

Default status: no sub autonomous system that belongs to an alliance.

bgp dampening <1-45>

<1-20000> <1-20000> <1-255>

Configuring route attenuation 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 <1-4294967295>

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 <5-60> Configure the BGP scan time Default status: 60s

Distance bgp <1-255> <1-255> <1-255>

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.

maximum-paths (ibgp |cr)

<1-255>

Configure an equivalent path for load

balancing

Empty

neighbor Activate BGP neighbors Default state: the default state of the neighbor is

Page 85: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 75

3G/4G Router CLI User Manual

Command Format Function Description Remark

(A.B.C.D|WORD) activate active, and no configuration is normally required

neighbor

(A.B.C.D|WORD) allowas-in <1-10|cr>

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

neighbor

(A.B.C.D|WORD) capability route-refresh

Routing update capability description for designated neighbors.

Default state: ability to issue routing refresh capability.

neighbor

(A.B.C.D|WORD)default-originate

(route-map WORD|cr)

Send default routes to neighbors. Default state: do not send

default routes to neighbors.

neighbor

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

Close direct connect detection function Empty

neighbor

(A.B.C.D|WORD)distribute-list <1-199>|<1300-2699>WORD in|out

Set routing publish filter Default status: no filter table.

neighbor

(A.B.C.D|WORD)ebgp-multihop (cr|<1-255>)

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.

neighbor

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

WORD in|out

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

neighbor

(A.B.C.D|WORD) local-as <1-4294967295> no-prepend replace-as

Build neighbors using camouflage AS

numbers

Empty

neighbor

(A.B.C.D|WORD)

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

Default status: unlimited.

Page 86: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 76

3G/4G Router CLI User Manual

Command Format Function Description Remark

maximum-prefix <1-100|restart|warning-only>

neighbor

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

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.

neighbor

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

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.

neighbor

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

Apply the specified prefix-list filter

table to the specified neighbor.

Default state: no filter

tables are used.

neighbor

(A.B.C.D|WORD)remote-as <1-4294967295>

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

neighbor

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

Configure a neighbor as a route reflector client.

Default status: non routing reflector.

neighbor

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

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

( <0-65535>|connect) (<0-65535>|<0-65535>)

Configure the interval between

neighbors to send keepalive messages and neighbor holding time.

Connect: configure the value of neighbor reconnection timers.

Default status: the default

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

Connect: default state:

Page 87: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 77

3G/4G Router CLI User Manual

Command Format Function Description Remark

the default value of the reconnection timer is 120 seconds

neighbor

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

A particular detail route is missing from a particular neighbor

Empty

neighbor

(A.B.C.D|WORD)update-source

A.B.C.D|WORD|X:X::X:X

Configure your own update source Empty

neighbor

(A.B.C.D|WORD) weight <0-65535>

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

neighbor

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

The configuration matches the ability negotiation between neighbors strictly.

Default status: no strict matches are made.

neighbor

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

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.

neighbor

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

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.

neighbor

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

network (<A.B.C.D/M> | <A.B.C.D> )

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.

Page 88: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 78

3G/4G Router CLI User Manual

Command Format Function Description Remark

(metric|route-map|cr)

timers bgp <0-65535> <0-65535>

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

[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 <1-65535>

Configure network addresses and port numbers

Empty

rate <1-65535> Configure rate Unit: kbps

rate <1-65535> ceil

<1-65535> priority <1-30>

Configuration rate, redundancy

bandwidth, and priority

Speed and redundancy

bandwidth unit:

kbps

[Configuration example]

Page 89: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 79

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) [<1-65535>|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.

Protocol contains:

All udp tcp

The first set of

parameters [<1-65535>|PORTLIST] is the configuration source port, the second group PORTLIST is the configuration

destination port, and the two is optional

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)

Used for IP filtering of the

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

Protocol:

icmp

The port is not

configured when the protocol is ICMP

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]

Used for IP filtering of the

corresponding protocol packets, filtering type as input, filtering action for accepting or discarding.

Protocol contains:

all udp tcp

The first set of

PORTLIST is the configuration source port, the second group PORTLIST is the configuration destination port, and the two is optional

access-list ip input (deny|permit)

icmp (A.B.C.D/M|any|host A.B.C.D) (any|interface LFNAME)

Used for IP filtering of the

corresponding protocol packets, filtering type as input, filtering action for accepting or discarding.

Agreement for:

The port is not

configured when the protocol is ICMP

Page 90: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 80

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.

Page 91: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 81

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

Page 92: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 82

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 -

Page 93: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 83

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 -

Page 94: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 84

3G/4G Router CLI User Manual

NTP Description description Description value: character string

3.32.3 Config destination address

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 -

Purpose Command Instruction

Enter config mode configure terminal -

Enter ntpfconfig mode service ntp

Config primary destination

primary destination

Config secondary destination

secondary destination

Page 95: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 85

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 <1-65535> 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 management only provides the user's modification function and does not provide the add,

delete, and other functions .

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

Page 96: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 86

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 <1-65535> Configure the port number for IPfix detection

Empty

export interval <1-65535> Configuring the IPfix analysis interval

Unit: seconds

odid <1-65535> Configure the observation field IPfix of ID

Empty

probe WORD Configuration monitoring interface Empty

[Configuration example]

service ipfix // into the ipfix configuration mode

Page 97: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 87

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 (<1-65535>|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 <1-65535> mss (<1-65535>|MRU)

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

Empty

tcpmss port <1-65535> mss (<1-65535>|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 <1-65535> Set the VRRP timer The timer refers to the Hello time

virtual id <1-255> 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

Page 98: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 88

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 <1-255> 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

Page 99: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 89

3G/4G Router CLI User Manual

Command Format Function Description Remark

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

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)

Page 100: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 90

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)

Page 101: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 91

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)

Page 102: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 92

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 -

Page 103: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

Hongdian Corporation 93

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 -

Page 104: CLI User Manual 3G/4G Routerimg.hongdian.com/UploadFiles/Files/Product_Manual/Router...Doc. Version 1.2 iii 3G/4G Router CLI User Manual Foreword Overview This document describes Hongdian

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

Create smart things