2023年12月6日发(作者:)

Q:如何对网关进行基本配置

A:以下是基本配置流程

(1) 设置WAN口IP

(2) 设置出口网关地址

(3) 设置线路

(4) 设置拨号规则

(5) 注册网守服务器

Login:root

Password: // 注释:密码centnet

Centnet Cos [Software Version V03.01.r4.330 For CNG300 4FXS]

Copyright (C) By 1999-2004 Centnet Technologies Co..Ltd All rights reserved.

Centnet>con

Please input the Password: // 注释:该处密码为空,直接回车

Centnet/Conf>

Centnet/Conf>sh e0 // 设置E0口IP地址

-------------------------------------------------------------------------

Interface IP_address IP_mask MAC

E0 192.168.0.48 255.255.255.0 04:ab:01:e0:19:77

-------------------------------------------------------------------------

Proxy : Disable

Hostname : Centnet@

tos : 5

DHCP : Disable

PPPoE : Disable

NAT : Disable

TCP port base : 30000

Range : 300

UDP port base : 5000

-------------------------------------------------------------------------

Centnet/Conf>e0

Centnet/Conf/E0>ip 192.168.0.77 255.255.255.0

Centnet/Conf/E0>qu

Centnet/Conf>sh e0

-------------------------------------------------------------------------

Interface IP_address IP_mask MAC

E0 192.168.0.77 255.255.255.0 04:ab:01:e0:19:77

-------------------------------------------------------------------------

Proxy : Disable

Hostname : Centnet@

tos : 5

DHCP : Disable

PPPoE : Disable

NAT : Disable TCP port base : 30000

Range : 300

UDP port base : 5000

-------------------------------------------------------------------------

Centnet/Conf>show route 注释:设置路由

destination mask gateway flags Refcnt Use Interface

--------------------------------------------------------------------------------

192.168.0.0 255.255.255.0 192.168.0.77 101 0 0 cpm0

192.169.4.0 255.255.255.0 192.169.4.245 101 0 0 motfec0

Centnet/Conf>route add default 192.168.0.1

Centnet/Conf>sh route

destination mask gateway flags Refcnt Use Interface

--------------------------------------------------------------------------------

0.0.0.0 0.0.0.0 192.168.0.1 103 0 0 cpm0

192.168.0.0 255.255.255.0 192.168.0.77 101 1 0 cpm0

192.169.4.0 255.255.255.0 192.169.4.245 101 0 0 motfec0

Centnet/Conf>

Centnet/Conf>sh line 注释:设置线路

The configuration of lines:----------------------------------------

lineNo. Type Status Mode AudioCode Nob Answer Prefix(called)

0 FXS IDLE Rel/UP G723/6 2 Normal T

1 FXS IDLE Rel/UP G723/6 2 Normal T

2 FXS IDLE Rel/UP G723/6 2 Normal T

3 FXS IDLE Rel/UP G723/6 2 Normal T

Centnet/Conf>line

Centnet/Conf/LineALL>ter

Centnet/Conf/LineALL>pre del t

Centnet/Conf/LineALL>qu

Centnet/Conf>wr

Writing data into flash

(343Bytes) Writen successfully.

Centnet/Conf>sh l 0

-------------------------------------------------------------------------

Line : 0 status : IDLE

-------------------------------------------------------------------------

type : FXS mode : Terminal

active : UP codec : G723/6 2

sce : Disable vad : Disable

answer : Normal dtmf : InBand

inVol(D) : 32 outVol(D) : 32

inVol(A) : 32 outVol(A) : 32

handdown time : 300 ms flash time : 350ms

sdtmf wait time : 1000 ms sdtmf interval : 150ms rdtmf time out : 30000ms rdtmf end time : 5000ms

faststart : Enable h245tunnel : Enable

busy check : Enable Invert check : Disable

round trip : Disable Faxmode : T38

faxrate : 14400 faxredundancy : 1

faxVolume : 6 dtmfVolume : 27

msd : Disable h245 timeout : Disable

handup time : 200 ms hotline :

billing : Disable JitterFactor : 7

display called : Disable findvoice : 0

card :

H323ID :

(calling)Number : ******

-------------------------------------------------------------------------

Centnet/Conf>line 0

Centnet/Conf/Line0>pre add 1001

Centnet/Conf/Line0>qu

Centnet/Conf>line 1

Centnet/Conf/Line1>pre add 1002

Centnet/Conf/Line1>qu

Centnet/Conf>line 2

Centnet/Conf/Line2>pre add 1003

Centnet/Conf/Line2>qu

Centnet/Conf>wr

Writing data into flash

(400Bytes) Writen successfully.

Centnet/Conf>sh line

The configuration of lines:----------------------------------------

lineNo. Type Status Mode AudioCode Nob Answer Prefix(called)

0 FXS IDLE Ter/UP G723/6 2 Normal 1001

1 FXS IDLE Ter/UP G723/6 2 Normal 1002

2 FXS IDLE Ter/UP G723/6 2 Normal 1003

3 FXS IDLE Ter/UP G723/6 2 Normal

Centnet/Conf>sh dial

Centnet/Conf>dial t 注释:设置拨号规则

Centnet/Conf/Dial T>qu

Centnet/Conf>wr

Writing data into flash

(441Bytes) Writen successfully.

Centnet/Conf>sh dial

----dial T---------------------------------------

Map : 0.0.0.0(0) Codec : g723/6 2

vad : Disable sce : Disable

dtmf : inband Faxmode : t38

Trip : Disable msd : Disable

Faststart : Enable H245tunnel : Enable

Alerttime(s) : 60

Timeout(s) : 60

dialmode : normal prefix : -1 + /

alertmode : Relay JitterFactor: 7

pstn : Disable

Centnet/Conf>sup

Please input the Password:

Password wrong

Please input the Password:

Centnet/Conf>h323

Centnet/Conf/H323>show

--H323 Settings-------------------------------------------

RAS port : 1719

RAS port base : 1719

RAS range : 6

Q931 port : 1720

Retry interval : 6

Retry times : 6

GateKeeper : Disable

Alternative GK : Disable

GateKeeper ID :

GateWay ID :

Card Number : 8

Card Password : 8

Aliase_name :

RAS password :

Prefix :

H323id :

Type : cisco

UpdtRtpRmtAddr : Enable

----------------------------------------------------------

Centnet/Conf/H323>h323id 12334

Centnet/Conf/H323>gk 222.111.244.10

Centnet/Conf/H323>GK Registration[36] UP!

Centnet/Conf/H323>show

--H323 Settings-------------------------------------------

RAS port : 1720 RAS port base : 1719

RAS range : 6

Q931 port : 1720

Retry interval : 6

Retry times : 6

GateKeeper : 222.111.244.10 1719(UP) 注释:服务器地址

Alternative GK : Disable

GateKeeper ID :

GateWay ID :

Card Number : 8

Card Password : 8

Aliase_name :

RAS password :

Prefix :

H323id : 12334 注释:服务器提供的H323ID

Type : cisco

UpdtRtpRmtAddr : Enable

----------------------------------------------------------

Centnet/Conf/H323>qu

Centnet/Conf/wr