9806H配置脚本
- 格式:pdf
- 大小:1.33 MB
- 文档页数:4
注:蓝色为需要输入的命令,红色为需要修改的数据。
一:打开FTP软件,设置FTP用户名和密码,设置好需要升级的软件下载路径。
然后按以下命令操作升级:登陆设备:Login:adminPassword:admin9806>enPlease input password:admin下载软件:9806# downloadIP address of the host where the file resides:[0.0.0.0]10.62.5.10―――输入FTP服务器IP(10.62.5.101为设备带外IP,需要把电脑IP设置为同一网段)Name of the file(include path) for programming FLASH:[] SCCF_FW.BIN―――输入版本文件名Ftp UserName:[]target―――输入FTP用户名Ftp Password:[]target―――输入FTP密码SCCFPlease select one:[]sccf下载成功提示:..........................................Download version success! 清空数据:erase config重起:reboot二:配置数据(修改IP,VLAN数据后,可复制粘贴命令)configuplink-mode cascade master-port 5/1exconfigure add-vlan 65 (管理VLAN)configure ip subnet 172.17.73.46 255.255.248.0 65 (配置带内管理IP地址,掩码)con vlan 65 5/1 tagconfigure add-vlan 1175(业务VLAN)con vlan 1175 5/1 tagconinterface range adsl 1/1-24atm pvc 1 vpi 0 vci 35pvid 1175 pvc 1exvlan 1175 1/1-24 untagip route 0.0.0.0 0.0.0.0 172.17.72.1(注意!网关设置为上联OLT网关。
9806自动调速运行工具:secureCRT 6.7 作者:鲍继川程序语言:vbs 邮箱:bc5367@1.原理1,通过9806 表找到svlan,telnet进去2通过cvlan找到端口3输入带宽,激活,保存即完成2 9806.xl s文件987 1.1.1.1988 2.2.2.23运行效果图4实际运行效果:5实际运行脚本###################################################################### # # # Welcome to ZTE 9806H # # # # Press Return to get started ## # # Copyright 2005-2010 , ZTE Co.,Ltd. ## # ###################################################################### Login:adminPassword:1.1.1.1_9806>enPlease input password:1.1.1.1_9806# config1.1.1.1_9806(config)# show vlan 154VLANID : 154VLANName : VLAN154EncapType : allMember-limit : disableSLOT PVC Egress/UnTag PORTLIST ------------------------------------------------------------1 1 Egress 3UnTag 3------------------------------------------------------------5 Egress 1UnTag------------------------------------------------------------1.1.1.1_9806(config)# interface adsl 1/31.1.1.1_9806(cfg-if-adsl-1/3)# adsl profile 8M.PRF1.1.1.1_9806(cfg-if-adsl-1/3)# exit1.1.1.1_9806(config)# exit1.1.1.1_9806# save6程序代码# $language = "VBScript"# $interface = "1.0"Sub mainConst ForReading = 1, ForWriting = 2, ForAppending = 8 strx="et.exe"KillProc(strx)crt.screen.synchronous = trueDim app, wb, wsSet app = CreateObject("et.Application")Set wb = app.Workbooks.Open ("C:9806.xls",1,false) Set ws = wb.Sheets("宽带") '选择指定Sheet1iRowCount = edRange.Rows.Countapp.Visible = false'wb.Save'wb.Close'app.Quitdim svlandim cvlandim banddim profilesvlan=inputbox("请输入svlan","第一个端口值:","911")cvlan=inputbox("请输入cvlan","第二个端口值:","154")band=inputbox("请输入带宽M","带宽:","8")Select case bandcase 2 profile="E2.PRF"case 4 profile="4M.PRF"case 4.5 profile="ITV.PRF"case 6.5 profile="NEW6-5M.PRF"case 7 profile="7.PRF"case 8 Profile="8M.PRF"case 8.5 Profile="8-5.PRF"case 9 Profile="9.PRF"case else exit subend selectDim objTabFor iLoop = 1 To iRowCountexs = Trim(ws.Cells(iLoop,3)) '取Cells中的值if(exs=svlan) thenexc =Trim(ws.Cells(iLoop,4))ex=Split(exc)ic=UBound(ex)'msgbox(iLoop)select case iccase 0c=Split(ex(0),"-")if cvlan>=c(0) and cvlan<=c(1) thenre=ws.Cells(iLoop,6)'msgbox(re)Set objTab = crt.GetScriptTabobjTab.Screen.Synchronous = TrueobjTab.session.LogFileName = "log\" & Date() & "\" & ip & ".txt"objTab.session.Log(true)objTab.Session.Connect "/telnet " & reif objTab.Session.Connected=false thenexit subend ifobjTab.Screen.Send chr(13)objTab.Screen.WaitForString "Login:"objTab.Screen.Send "admin" & chr(13)objTab.Screen.WaitForString "Password:"objTab.Screen.Send "admin" & chr(13)objTab.Screen.WaitForString ">"objTab.Screen.Send "en" & chr(13)objTab.Screen.Send "admin" & chr(13)objTab.Screen.WaitForString "#"objTab.Screen.Send "config" & chr(13)objTab.Screen.WaitForString "(config)#"objTab.Screen.Send "show vlan "&cvlan&chr(13)objTab.Screen.WaitForString "(config)#"nrow=objTab.Screen.CurrentRow'msgbox(nrow)str2=objTab.Screen.Get(nrow-7,0,nrow-7,60)l=Left(Trim(str2),2)r=Right(Trim(str2),2)objTab.Screen.Send "interface adsl "&Trim(l)&"/"&Trim(r)&chr(13) objTab.Screen.WaitForString "#"objTab.Screen.Send "adsl profile "&profile&chr(13)objTab.Screen.WaitForString "#"objTab.Screen.Send "exit"&chr(13)objTab.Screen.WaitForString "#"objTab.Screen.Send "exit"&chr(13)objTab.Screen.WaitForString "#"'objTab.Screen.Send "copr r s "&chr(13)'objTab.Screen.WaitForString "#"objTab.Screen.Send "save "&chr(13)objTab.Screen.WaitForString "#", 3Call objTab.Session.Log(False)objTab.Screen.Synchronous = FalseobjTab.Session.Disconnectexit subend ifcase 1c=Split(ex(0),"-")e=Split(ex(1),"-")if (cvlan>=c(0) and cvlan<=c(1))or(cvlan>=e(0) and cvlan<=e(1)) then re=ws.Cells(iLoop,6)Set objTab = crt.GetScriptTabobjTab.Screen.Synchronous = TrueobjTab.session.LogFileName = "log\" & Date() & "\" & ip & ".txt"objTab.session.Log(true)objTab.Session.Connect "/telnet " & reif objTab.Session.Connected=false thenexit subend ifobjTab.Screen.Send chr(13)objTab.Screen.WaitForString "Login:"objTab.Screen.Send "admin" & chr(13)objTab.Screen.WaitForString "Password:"objTab.Screen.Send "admin" & chr(13)objTab.Screen.WaitForString ">="objTab.Screen.Send "en" & chr(13)objTab.Screen.Send "admin" & chr(13)objTab.Screen.WaitForString "#"objTab.Screen.Send "config" & chr(13)objTab.Screen.WaitForString "(config)#"objTab.Screen.Send "show vlan "&cvlan&chr(13)objTab.Screen.WaitForString "(config)#"nrow=objTab.Screen.CurrentRow'msgbox(nrow)str2=objTab.Screen.Get(nrow-7,0,nrow-7,60)l=Left(Trim(str2),2)r=Right(Trim(str2),2)objTab.Screen.Send "interface adsl "&Trim(l)&"/"&Trim(r)&chr(13) objTab.Screen.WaitForString "#"objTab.Screen.Send "adsl profile "&profile&chr(13)objTab.Screen.WaitForString "#"objTab.Screen.Send "exit"&chr(13)objTab.Screen.WaitForString "#"objTab.Screen.Send "exit"&chr(13)objTab.Screen.WaitForString "#"'objTab.Screen.Send "copr r s "&chr(13)'objTab.Screen.WaitForString "#"objTab.Screen.Send "save "&chr(13)objTab.Screen.WaitForString "#", 3Call objTab.Session.Log(False)objTab.Screen.Synchronous = FalseobjTab.Session.Disconnectend ifcase 2c=Split(ex(0),"-")e=Split(ex(1),"-")f=Split(ex(2),"-")if((cvlan>=c(0) and cvlan<=c(1))or(cvlan>=e(0) and cvlan<=e(1))or (cvlan>=f(0) and cvlan<=f(1))) thenre=ws.Cells(iLoop,6)Set objTab = crt.GetScriptTabobjTab.Screen.Synchronous = TrueobjTab.session.LogFileName = "log\" & Date() & "\" & ip & ".txt"objTab.session.Log(true)objTab.Session.Connect "/telnet " & reif objTab.Session.Connected=false thenexit subend ifobjTab.Screen.Send chr(13)objTab.Screen.WaitForString "Login:"objTab.Screen.Send "admin" & chr(13)objTab.Screen.WaitForString "Password:"objTab.Screen.Send "admin" & chr(13)objTab.Screen.WaitForString ">="objTab.Screen.Send "en" & chr(13)objTab.Screen.Send "admin" & chr(13)objTab.Screen.WaitForString "#"objTab.Screen.Send "config" & chr(13)objTab.Screen.WaitForString "(config)#"objTab.Screen.Send "show vlan "&cvlan&chr(13)objTab.Screen.WaitForString "(config)#"nrow=objTab.Screen.CurrentRow'msgbox(nrow)str2=objTab.Screen.Get(nrow-7,0,nrow-7,60)l=Left(Trim(str2),2)r=Right(Trim(str2),2)objTab.Screen.Send "interface adsl "&Trim(l)&"/"&Trim(r)&chr(13)objTab.Screen.WaitForString "#"objTab.Screen.Send "adsl profile "&profile&chr(13)objTab.Screen.WaitForString "#"objTab.Screen.Send "exit"&chr(13)objTab.Screen.WaitForString "#"objTab.Screen.Send "exit"&chr(13)objTab.Screen.WaitForString "#"'objTab.Screen.Send "copr r s "&chr(13)'objTab.Screen.WaitForString "#"objTab.Screen.Send "save "&chr(13)objTab.Screen.WaitForString "#", 3Call objTab.Session.Log(False)objTab.Screen.Synchronous = FalseobjTab.Session.Disconnectend ifcase 3c=Split(ex(0),"-")e=Split(ex(1),"-")f=Split(ex(2),"-")g=Split(ex(3),"-")if((cvlan>=c(0) and cvlan<=c(1))or(cvlan>=e(0) and cvlan<=e(1)) or (cvlan>=f(0) and cvlan<=f(1)) or (cvlan>=g(0) and cvlan<=g(1))) thenre=ws.Cells(iLoop,6)Set objTab = crt.GetScriptTabobjTab.Screen.Synchronous = TrueobjTab.session.LogFileName = "log\" & Date() & "\" & ip & ".txt"objTab.session.Log(true)objTab.Session.Connect "/telnet " & reif objTab.Session.Connected=false thenexit subend ifobjTab.Screen.Send chr(13)objTab.Screen.WaitForString "Login:"objTab.Screen.Send "admin" & chr(13)objTab.Screen.WaitForString "Password:"objTab.Screen.Send "admin" & chr(13)objTab.Screen.WaitForString ">="objTab.Screen.Send "en" & chr(13)objTab.Screen.Send "admin" & chr(13)objTab.Screen.WaitForString "#"objTab.Screen.Send "config" & chr(13)objTab.Screen.WaitForString "(config)#"objTab.Screen.Send "show vlan "&cvlan&chr(13)objTab.Screen.WaitForString "(config)#"nrow=objTab.Screen.CurrentRow'msgbox(nrow)str2=objTab.Screen.Get(nrow-7,0,nrow-7,60)l=Left(Trim(str2),2)r=Right(Trim(str2),2)objTab.Screen.Send "interface adsl "&Trim(l)&"/"&Trim(r)&chr(13) objTab.Screen.WaitForString "#"objTab.Screen.Send "adsl profile "&profile&chr(13)objTab.Screen.WaitForString "#"objTab.Screen.Send "exit"&chr(13)objTab.Screen.WaitForString "#"objTab.Screen.Send "exit"&chr(13)objTab.Screen.WaitForString "#"'objTab.Screen.Send "copr r s "&chr(13)'objTab.Screen.WaitForString "#"objTab.Screen.Send "save "&chr(13)objTab.Screen.WaitForString "#", 2Call objTab.Session.Log(False)objTab.Screen.Synchronous = FalseobjTab.Session.Disconnectend ifcase elseend selectend ifNextwb.CloseSet wb=NothingSet ws=NothingSet app=Nothing'app.Quitcrt.screen.synchronous = falseEnd SubFunction KillProc(strProcName)On Error Resume NextSet objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2")Set arrProcesses = objWMIService.ExecQuery( "select * from win32_process where Name ='"&strProcName&"'" )For Each proccess In arrProcessesproccess.Terminate 0NextEnd Function。
9806H的一些命令添加访控列表:manage-access-list 11 permit source-ipmanage-access-list 12 permit source-ipmanage-access-list 13 permit source-ipmanage-access-list 14 permit source-ipmanage-access-list 15 permit source-ipmanage-access-list 16 deny any更换语音IP:mod-voip-ipaddr mgid 1 oldipaddr 192.168.1.10 newipaddr 10.64.28.142 submask 255.255.255.192更改下一跳路由:mod-voip-route mgid 1 type 1 nexthop 10.64.28.129 arptime 109806H修改长短定时器:mod-mgcapabili matchtype 2长匹配定时器:mod-mgcattr mgctype 2 dmlong 5短匹配定时器:mod-mgcattr mgctype 2 dmshort 3P6版本部分命令:show voice h248 h248state 查看语音协议show voice h248 mgc mgcid 1 查看软交换地址show voice global timer 查看定时器数据查看slc状态show voic mguser slc status slot 1show voic mguser slc tid slot 3show voic mguser slc phonenum slot 1show voic mguser slc attribute slot 3删除slc数据mguser slc tid del slot 2 num 48查看RTP状态show voice rtp statusshow voice rtp tid查看语音协议类型show voip license查看语音配置 show voice global voip-configure查看定时器类型 show voice global flag短定时器匹配voiceglobal flag modify matchtype short_matchglobal timer modify mgctype 2 dmlong 5 dmshort 3长定时器匹配voiceglobal flag modify matchtype longglobal timer modify mgctype 2 dmlong 5 dmshort 3 dmstart 3添加软交换地址voiceh248 mgc add mgcid 1 mgcip (软交换地址) mgctype 2 mgcport 2944h248 mg add mgid 1 mgport 29442次拨号问题:get-expar 查看mod-expar parid 1 dtmfrelaymode 1 修改P6版本更改语音数据前必须删除原始数据应先删除ip route信息,然后删除ip subnet删除RTP信息:rtp tid del更改软交换地址:h248 mgc modify mgcid 1 mgcip (软交换地址) mgctype 2 mgcport 2944。
9806H设备开局数据配置(ONU侧)9806H本地配置或telnet 配置方法(网管、宽带业务)现场通过串口或带外网口进入配置界面Login:admin(帐号)Password:admin(密码)9806>enable(进入超级管理模式)Please input password:admin(超级管理模式密码)9806#show card (查看单板状态,看单板是否工作正常)Slot Shelf Type Port HardVer SoftVer Status----------------------------------------------------------------------1 1 ASTEB 24 070100 V2.0.0P2T3 Inservice --正常状态2 1 ASTEB 24 070100 V2.0.0P2T3 Inservice3 1 ATLC 48 080500 V2.0.0P2T3 Inservice5 1 SCCB 2 080100 V2.0.0P2T3 Inservice----------------------------------------------------------------------一。
现场配置网管及宽带数据9806# configure ---进入配置模式9806(config)# add-vlan 220 (增加网管VLAN)9806(config)# add-vlan 2333-2380 (增加业务VLAN)9806(config)# vlan 220 5/1-2 tag (网管VLAN加上行端口,9806上联口包括5/1-2)9806(config)# vlan 2333-2380 5/1-2 tag (业务VLAN加上行端口)9806(config)# vlan 2333-2380 1-2/1-24 untag one-to-one pvc 1 (在1、2板位增加1-24口业务VLAN,并设置端口PVC值为1)9806(config)# uplink-mode cascade master-port 5/1 (EPON口上行,此命令照做不用修改)9806(config)# ip subnet 10.20.0.81 255.255.255.0 220 (增加设备网管IP地址)9806(config)# ip route 10.0.0.0 255.0.0.0 10.20.0.1 (增加网管路由)设置9806H宽带用户端口限速模板9806(config)# adsl-profile SS4096K (创建4M限速文件,限速文件的名字为SS4096K) 9806(config)# adsl-profile SS4096K (更改限速文件参数)AtucConfRateMode(1-fixed,2-adaptAtStartup,3-adaptAtRuntime):[2] AtucConfRateChanRatio(0..100):[0]AtucConfTargetSnrMgn(0..310(0.1dB)):[80]AtucConfMaxSnrMgn(80..310(0.1dB)):[310]AtucConfMinSnrMgn(0..80(0.1dB)):[0]AtucConfDownshiftSnrMgn(0..310):[0]AtucConfUpshiftSnrMgn(0..310):[0]AtucConfMinUpshiftTime(0..16383):[0]AtucConfMinDownshiftTime(0..16383):[0]ConfProfileLineType(1-fast-only,2-interleaved-only):[2]2 (更改为快速信道或者交织信道,根据实际情况选择1(快速)或2(交织))AtucChanConfFastMaxTxRate(0..102400kbps):[1028]4096 (更改下行快速信道速率,此时修改速率为4M)AtucChanConfFastMinTxRate(0..1024kbps):[32] AtucChanConfInterleaveMaxTxRate(0..102400kbps):[1028]4096 (更改下行交织信道速率,此时修改速率为4M)AtucChanConfInterleaveMinTxRate(0..1024kbps):[32] AtucChanConfMaxInterleaveDelay(0..255ms):[16]AturConfRateMode(1-fixed,2-adaptAtStartup,3-adaptAtRuntime):[2] AturConfRateChanRatio(0..100):[0]AturConfTargetSnrMgn(0..310(0.1dB)):[80]AturConfMaxSnrMgn(80..310(0.1dB)):[310]AturConfMinSnrMgn(0..80(0.1dB)):[0]AturConfDownshiftSnrMgn(0..310(0.1dB)):[0]AturConfUpshiftSnrMgn(0..310(0.1dB)):[0]AturConfMinUpshiftTime(0..16383):[0]AturConfMinDownshiftTime(0..16383):[0]AturChanConfFastMaxTxRate(0..10240kbps):[512] 384 (快速下行速率)AturChanConfFastMinTxRate(0..512kbps):[32]AturChanConfInterleaveMaxTxRate(0..10240kbps):[512]384 (交织下行速率)AturChanConfInterleaveMinTxRate(0..512kbps):[32] AturChanConfMaxInterleaveDelay(0..255ms):[16] AtucDMTConfFreqBinsOperType(1-open,2-cancel):[2] AturDMTConfFreqBinsOperType(1-open,2-cancel):[2]LineDMTConfEOC(1-byte ,2-streaming ):[1]LineDMTConfTrellis(1-on,2-off):[1]AtucConfMaxBitsPerBin(0..15):[15]AtucConfTxStartBin(6..511):[32]AtucConfTxEndBin(32..511):[511]AtucConfRxStartBin(6..63):[6]AtucConfRxEndBin(6..63):[31]AtucConfUseCustomBins(1-on,2-off):[2]AtucConfDnBitSwap(1-on,2-off):[2]AtucConfUpBitSwap(1-on,2-off):[2]AtucConfREADSL2Enable(1-on,2-off):[2]AtucConfPsdMaskType(1-DMT_PSD_MSK,2-ADSL2_PSD_MSK,3-ADSL2_READSL_WIDE_PSD_MSK,4 -ADSL2_READSL_NARROW_PSD_MSK):[3]AtucConfPMMode(1-DISABLE,2-L2_ENABLE,3-L3_ENABLE,4-L3_ENABLE | L2_ENABLE):[1] AtucConfPML0Time(0..255s):[240]AtucConfPML2Time(0..255s):[120]AtucConfPML2ATPR(0..31db):[3]AtucConfPML2Rate(512..1024kbps):[512]Press M or m key to modify, or the other key to complete?[C]9806(config)# interface range adsl 1-2/1-24 (进入1-2槽共48端口批量配置模式) 9806(cfg-if-range-adsl)# pvid 2333-2380 one-to-one pvc 1 (批量增加PVID,PVID 值与VLAN号一样)9806(cfg-if-range-adsl)# atm pvc 1 vpi 8 vci 81 common (批量配置业务PVC,修改PVC值为8 81 ,该值根据局方MODEN所支持的PVC进行修改)9806(cfg-if-range-adsl)# adsl profile SS4096k (批量配置限速文件)9806(cfg-if-range-adsl)# no shutdown (批量激活端口)9806(cfg-if-range-adsl)# ex (退出)9806(config)#ex(退出)9806#save(保存)9806#logout(退出9806H)其它命令9806# erase configuring(清空数据)9806# reboot(重启)9806# show ip route (查询网管IP及路由)9806# show interface 1/1-24 (查看9806H设备1板1-24用户端口状态)Interface : 1/1PVCID PVID AcceptFrames SvlanMode TLS PSVID DHCPSourceGuard1 2049 admitall disable disable 1 disable8 1 admitall disable disable 1 disableSC_ID PVC_ID SC_TYPE1 1 ALLPortLockStatus : unlockAdminStatus : enableTrapControl : disableLinkStatus : down (查看UP或DOWN)MaxMacLearn : 8IfType : ADSL_PORT_TYPEDHCP Option82 : disableDHCP Access Type : china-telecomRemote ID : disableRemote ID Name :PPPoE plus : disableDHCP Snooping : disableDHCP Snooping Limit : 8DHCP Packet Limit : 16 ppsIGMP Packet Limit : 16 ppsModem IP : 192.168.2.1二。
ZXDSL 9806H V1.2宽带简明开局(PON口上联或者以太口上联实际在9806H上配置没有任何区别)1. 串口登陆设备,串口线序RS232的325====RJ45的365,同9210/9203/8203/2500S. Login:adminPassword:admin9806>enablePlease input password:admin2. 建议清除配置数据重启9806#erase config9806#reboot3. 启动后察看配置,看mac是否存在(老版本mac会被清掉,需要手工重新设置)9806>show runadd-card ASTEB 1add-card ASTEB 2add-card VSTDC 3add-card VSTDC 4endconfigureip host 10.61.86.158 255.255.252.0ip modem 192.168.2.2 255.255.255.0mac inband 00:D0:D0:81:94:E7mac outband 00:15:EB:F0:E5:C04. 察看单板状态,建议开通时升级为最新版本。
9806>show cardSlot Shelf Type Port HardVer SoftVer Status----------------------------------------------------------------------1 1 ASTEB 24 070100 V1.2.0P1T1 Inservice2 1 ASTEB 24 070100 V1.2.0 P1T1 Inservice3 1 VSTDC 16 061201 V1.2.0 P1T1 Inservice4 1 VSTDC 16 061201 V1.2.0 P1T1 Inservice5 1 SCCF 2 070304 V1.2.0 P1T1 Inservice----------------------------------------------------------------------9806>enaPlease input password:5.如果MAC被清掉,或者局方另有规划,则可以根据实际情况设置网元MAC,注意一般以00:d0:d0或者00:15:eb开头。