




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、同维电子有限公司测试部拟制人时间冉启阳2009年5月7日华为smartax ma5606t 光接入设备操作指南华为smartax ma5606t 光接入设备是目前已成熟商用的pon局端设备,下面主要介绍epon终端产品在此局端下注册的应用配置。一、操作控制台 smartax ma5606t 光接入设备(简称ma5606t)提供基于命令行方式的操作控制台,操作控制台可分为五种配置方式。常用的三种配置方式为:1、配置本地串口方式通过配置本地串口登陆方式时,控制软件波特率的设置必须与ma5606t 系统的串口波特率参数一致。系统默认串口波特率为9600bit/s。如果登录后超级终端界面输入字符出现乱
2、码,一般是由于终端的波特率设置与ma5606t 系统的波特率设置不一致导致,可尝试使用其他波特率登录系统。系统支持的波特率包括9600bit/s、19200bit/s、38400bit/s、57600bit/s、115200bit/s。用网口转串口的配置线连接局端的con口到pc,在超级终端界面中敲击回车键,出现输入用户名的提示符。huawei integrated access software.copyright(c) huawei technologies co., ltd. 1998-2007. all rights reserved.user name:rootuser passwo
3、rd:admin /控制台上不显示根据提示输入用户名和密码进行用户注册(系统缺省的超级用户名为:root,密码为:admin),直到出现命令行提示符(如ma5606t)。2、配置带外管理接口方式 如果通过本地串口登陆控制局端,那么只有一个用户能操作,为了方便管理,可以配置带外管理ip,实现某一时刻多用户同时登陆的目的。在本地串口登录条件下,使用如下命令可设置带外管理ip:ma5606tenablema5606t#configma5606t(config)#interface meth 0ma5606t(config-if-meth0)#ip address 172.16.30.200 24 |
4、sub : 可通过如下命令查看配置是否生效:ma5606t(config-if-meth0)#quitma5606t(config)#display interface meth 0meth0 current state : upline protocol current state : updescription : huawei, quidway series, meth0 interfacethe maximum transmit unit is 1500 bytesinternet address is 172.16.30.200/24ip sending frames format
5、is pktfmt_ethnt_2, hardware address is 00e0-fc28-1821auto-duplex(full), auto-speed(100m) 5 minutes input rate 640 bytes/sec, 8 packets/sec 5 minutes output rate 129 bytes/sec, 1 packets/sec 234983 packets input, 18424249 bytes 51599 packets output, 3703747 bytesma5606t(config)# 用网线将局端的带外管理网口eth连接到pc
6、,pc网卡地址设为同一网段。在pc上运行telnet程序,输入telnet 172.16.30.200则可访问系统,系统默认只能有一个root的超级用户,可以通过root用户使用terminal user name 命令增加操作用户,然后就可以通过操作用户登录了,不过操作用户的权限较root低一些,有些命令不会显示出来。如增加一个操作用户帐号:用户名为huawei,密码为huawei123,绑定默认的root 用户模板,级别为操作员,可重复登录次数为3 次,操作用户附加信息为user。ma5606t(config)#terminal user name user profile name(=1
7、5 chars)root:root /模板名称 user name(=15 chars):huawei /用户名 user password(=15 chars):huawei123 /控制台上不显示 confirm password(=15 chars):huawei123 /控制台上不显示 users level: 1. common user 2. operator 3. administrator:2 /用户级别 permitted reenter number(0-4):3 /同时登陆次数 users appended info(=30 chars):user /操作用户附加信息 t
8、his user has been added repeat this operation? (y/n)n:nma5606t(config)# 通过如下命令可查看局端上的所有用户信息:ma5606t(config)#display terminal user all - name level status reenter profile append num info - root super online 1 root - ran operator offline 4 root user peng operator offline 4 root user hou operator offli
9、ne 4 root user huawei operator offline 3 root user - total record(s) number: 5 3、配置带内管理接口方式 telnet 方式通过局域网带内管理接口登录配置命令如下:ma5606t(config)#vlan 333 smart /创建网管vlanma5606t(config)#port vlan 333 0/1 0 /添加该vlan到局端上联口0/1/0,sw板在主控板上,主控板号为0/1, sw上联口分0和1号口ma5606t(config)#interface mcu 0/1 /进入主控板ma5606t(confi
10、g-if-mcu-0/1)#native-vlan 0 vlan 333 /配置native-vlanma5606t(config-if-mcu-0/1)#quitma5606t(config)#interface vlanif 333 /进入三层接口ma5606t(config-if-vlanif333)#! event major 2009-05-07 09:53:32 alarm name :l3 interface link up parameters :interface type: vlanif, interface number: 333ma5606t(config-if-vla
11、nif333)#ip address 10.10.10.10 255.255.0.0 /配置带内管理ip用网线连接上联口0/1/0到千兆vlan交换机(交换机上需要设置vlan 333),然后连接到pc,pc网卡设置ip和带内管理ip在同一网段,运行telnet 10.10.10.10即可登录操作局端命令行。二、cli操作基础ma5606t 提供多种命令模式,以实现分级保护,防止未授权用户的非法侵入。ma5606t 命令模式主要包括:l 普通用户模式(user mode) l 特权模式(privilege mode)l 全局配置模式(global config mode)l 接口/端口模式(i
12、nterface config mode)l rip 模式l ospf 模式l btv 模式各种模式的关系图如下: 有如下知识点需要了解:1、命令模式的逐级退出一般使用quit 命令;快速退出到特权模式使用return 命令;从特权模式返回普通用户模式使用disable 命令。命令行提示符默认以设备名ma5606t 作为前缀(可以使用命令sysname 更改),括号中内容表明当前的配置模式。如:ma5606t(config)#sysname huaweihuawei(config)#huawei(config)#sysname ma5606tma5606t(config)# 2、为了避免输入长
13、串的关键字,方便用户使用,ma5606t 支持输入不完整的命令关键字加空格键得到关键字的自动匹配结果,如(在普通用户模式下)键入en或ena 加空格键即可得到完整的enable 命令。如果用户无法输入空格时,说明有以下两种可能:l 用户输入的命令错误,应该重新输入正确的命令。举例:在特权模式下输入display 时,误输为“dip”,导致不能再输入空格。l 用户输入的关键字冲突。举例:在特权模式下仅输入dis 后不能进行自动匹配,这是因为有两条以“dis”开头的命令disable 和display。 3、删除光标前所有字符,光标回到行首。 删除光标后所有字符,光标回到行末。 按两次可取消当前输
14、入。暂停显示时键入“q”或“ctrl+c”停止显示并终止命令的执行。 使用cls 命令将屏幕内容清除。使用display version 命令查询版本信息。使用“?”显示所有命令集。 4、在任意目录下使用switch language-mode 命令切换到另一种语言。 ma5606t#switch language-mode 当前语言模式已切换到本地语种ma5606t#switch language-mode the current language has been switched to general language 5、通过本任务设置终端的超时退出的时间。配置终端超时退出时间后,如果
15、在所设置的时间内,终端无任何输入,则该终端自动退出。缺省情况下,5 分钟内终端无任何输入,该终端便被强制退出系统。使用idle-timeout 命令配置终端的超时退出时间。使用display idle-timeout 命令查询设置的终端超时退出时间。举例:配置终端的超时退出时间为255 分钟。ma5606t#idle-timeout 255ma5606t#display idle-timeout the timeout value is set to 255 minutes currently. if there is no input from terminal during this ti
16、me, the user will be disconnected6、可用time命令修改系统时间,如:ma5606t#display time |dst|time-stamp : command: display time 2009-05-07 10:10:59+08:00三、epon产品终端配置 epon 终端管理通过扩展的oam 管理功能实现。扩展oam 是ctc 定义的ont 管理和控制接口协议,该协议定义了olt 和ont 之间交互消息的格式和机制。 ma5606t 通过oam(operation, administration and maintenance)协议对ont 进行管理
17、和配置,并支持对ont 的离线配置,ont 上线后的配置恢复。通过这种机制,ont 本地不需要保存配置信息,便于业务发放和终端维护。 1、自动发现ma5606t里的frameid: 0代表局端标识,一般为0;slotid: 3代表局端的板卡代号,我们使用的局端里面有两张板卡,1代表主控板,3代表pon板(epfa板或单板); portid: 2代表pon板上面的pon口号,共有0、1、2、3四个pon口;ontid :0,1,2,363代表某个pon口下面的onu的llid。 当我们需要将某个ont连接到某个pon口下面注册时,先要检查该pon口的配置是否正常,通过如下命令可显示:ma5606
18、t(config)#interface epon 0/3ma5606t(config-if-epon-0/3)#display port info 2 - f/s/p 0/3/2 max distance(km) 20 left bandwidth(kb) 959040 autofind enable laser switch on loopback status disable tag attribute tag-based-ont low-time-lapse disable -这里的2代表pon口号,实际应用中作相应变化即可。autofind设置为enable,laser switch设
19、置为on,这两点是必须的,否则激光器关闭、自动发现关闭的情况下ont无法完成自动发现。通过如下命令可修改这两个参数值:ma5606t(config-if-epon-0/3)#port 2 ont-auto-find enablema5606t(config-if-epon-0/3)#port 2 laser-switch on另外值得注意的是,max distance(km)要根据链路环境作适当选择,默认支持20km的光纤链路,但若已知链路中连接了20km的光纤,那么实际上光纤长度已大于20km,则需要选择40km的参数值,ont才能完成自动发现。当搭建ont通过光纤到ma5606t注册的环境
20、时,一般来讲,ont第一次注册,在局端上没有对应的mac绑定信息,那么ont与olt的交互过程称为自动发现,或者说局端对该非法ont开启了静默功能。不管在什么操作条件下,一旦有ont完成自动发现,则会提示如下命令行信息,该命令行信息是onu主动上报的。event warning 2009-05-07 09:31:32 alarm name :the onu is in auto-find state parameters :frameid: 0, slotid: 3, portid: 2, mac: 001e-e3c3-0601, password : dsfa6fgjh8rgddfcv776
21、iiopuio890yr通过如下命令可查看自动发现的ont信息:ma5606t(config-if-epon-0/3)#display ont autofind 2 - number f/s/p mac password - 1 0/ 3/ 2 001e-e3c3-0601 dsfa6fgjh8rgddfcv776iiopuio890yr -2、ont注册当ont自动发现以后,需配置下面两点才能完成ont的注册过程:1)配置ont 能力级模板模板配置必须与将要绑定ont 的硬件能力级匹配,否则直接导致ont不能正常注册。配置能力级模板实例:ma5606t(config)#ont-profile
22、 add epon profile-id 77 / 创建能力级模板 |profile-name : command: ont-profile add epon profile-id 77 press q or q to quit input ont manage mode 3: is uni configuration concerned? 2:/ 关 注表示配置的ont模板需要设置ont的各个端口属性。 不关注表示不需要关注ont的实际能力级,不需要设置ont模板的端口信息。以下信息均不需要设置,用于不知道ont的具体配置信息或暂不设置ont的情况下。 ont fe ports list(f
23、ormat: 1,3-5,7 ) -:1-4/此处直接回车不输入数据表示不存在fe口 如果输入“1-4”表示 ont的fe端口编号为1-4 ont ge ports list(format: 1,3-5,7 ) -: number of pots ports 0: tdm port type 1: number of tdm ports 0: number of rf ports 0: adding an ont profile succeeded profile-id : 77 profile-name : ont-profile_77 可通过如下命令查询能力级模板配置: ma5606t(c
24、onfig)#display ont-profile epon profile-id 77 - profile-id : 77 profile-name: ont-profile_77 - ont manage mode: oam uni configuration concerned or not: concerned number of pots ports: 0 number of fe ports: 4 number of ge ports: 0 tdm port type: e1 number of rf ports: 0 number of tdm ports: 0 feportl
25、ist: 1-4 geportlist: - - binding times: 0 -2)增加ont:绑定ont 能力集模板77,可以选择是mac认证或者是key认证方式。注意:能力级模板一定要和ont的硬件能力级相符合,否则会造成ont绑定模板失败。离线添加ont可使用ont add命令,而ont完成自动发现的情况下,可使用ont confirm来添加ont,ontid若不手动指定,则局端会按照顺序号自动分配。ma5606t(config)#interface epon 0/3ma5606t(config-if-epon-0/3)#ont confirm 2 ontid 4 mac-auth
26、 001e-e3c3-0601 profile-id|profile-name :profile-id 77 |multicast-mode|multicast-fast-leave|description|fec|dba-profile|encrypt|cir : command: ont confirm 2 ontid 4 mac-auth 001e-e3c3-0601 profile-id 77ma5606t(config-if-epon-0/3)# number of onts that can be added: 1, success: 1 portid :2, ontid :4ma
27、5606t(config-if-epon-0/3)#! event warning 2009-05-07 10:44:55 alarm name :the auto-find onu is deleted parameters :frameid: 0, slotid: 3, portid: 2, mac: 001e-e3c3-0601然后出现如下打印信息,说明ont已成功注册上线:ma5606t(config-if-epon-0/3)#! event warning 2009-05-07 10:36:17 alarm name :the onu is in up state parameter
28、s :frameid: 0, slotid: 3, portid: 2, onuid: 4ma5606t(config-if-epon-0/3)#! event warning 2009-05-07 10:36:22 alarm name :onu configuration recovery success alarm parameters :frameid: 0, slotid: 3, portid: 2, onuid: 4通过如下命令查询ont注册状态:ma5606t(config-if-epon-0/3)#display ont info 2 all - f/s/p ont-id ma
29、c control run config match loopback flag state state state state - 0/ 3/2 0 0073-0448-0814 active down initial initial disable 0/ 3/2 1 0074-0417-c787 active down initial initial disable 0/ 3/2 2 0073-0448-0811 active up normal match disable 0/ 3/2 3 0074-0417-cced active down initial initial disabl
30、e 0/ 3/2 4 001e-e3c3-0601 active up normal match disable - in port 2, the total of onts are: 5 说明:control flag : active【 ont处于激活状态,如果是非激活状态则为deactive 】 run state : up 【 ont已经上线,不在线时显示down 】 config state : normal 【ont配置恢复正常,不正常时为initial】 match state : match 【ont的实际能力级和绑定的模板相匹配,不匹配时会显示mismatch】ma5606t
31、(config-if-epon-0/3)#display ont info 2 4 - f/s/p : 0/3/2 ont-id : 4 control flag : active run state : up config state : normal match state : match ont profile id : 77 authentic type : mac-auth mac : 001e-e3c3-0601 description : ont_no_description dba profile id : 9 cir value (kbps) : off encrypt :
32、off fec : disable manage mode : oam multicast fast leave : disable multicast mode : default -通过如下命令查询ont能力级状态:ma5606t(config-if-epon-0/3)#display ont capability 2 4ma5606t(config-if-epon-0/3)# - ont hardware capability / status information - pon port id: 2 ont id: 4 number of pots ports: 0 number of
33、 fe ports: 4 number of ge ports: 0 number of tdm ports: 0 number of rf ports: 0 supportfec: support supportbackupbattery: not support upqueuenum: 4 upqueuenumperport: 4 downqueuenum: 4 downqueuenumperport: 4 feportlist: 1-4 geportlist: - multicast fast leave: support -通过如下命令查询ont版本信息:ma5606t(config-
34、if-epon-0/3)#display ont version 2 4ma5606t(config-if-epon-0/3)# - f/s/p : 0/3/2 ont-id : 4 venderid : 2011 ontmodel : 813e ontmac : 0x00-0x1e-0xe3-0xc3-0x06-0x01 onthardwareversion : hg813e ontsoftwareversion : v100r001c01b055 ontchipvenderid : e6 ontchipmodel : 6301 ontchiprevision : 0 ontchipdesi
35、gndate : (y)06(m)9(d)27 ontfirmwareversion : 104 -若需要修改已绑定的ont的模板,那么只能先将模板所绑定的ont删除掉以后,再绑定其他模板,删除ont的命令为:ma5606t(config-if-epon-0/3)#ont delete 2 4ma5606t(config-if-epon-0/3)# number of onts that can be deleted: 1, success: 1 3、dba设置系统默认所有ont的dba绑定模板是profile-id 9,且profile-id 9不能被更改。ma5606t(config)#d
36、isplay dba-profile profile-id 9 - profile-name : dba-profile_9 profile-id: 9 type: 3 bandwidth compensation: no fix(kbps): 0 assure(kbps): 10240 max(kbps): 15360 bind-times: 3 -如果需要更改ont的dba模板,则可通过如下命令实现: 1)新建dba模板ma5606t(config)#dba-profile add profile-id 77 type3 assure 200000 max 200000 command:
37、dba-profile add profile-id 77 type3 assure 200000 max 200000ma5606t(config)#display dba-profile profile-id 77 - profile-name : dba-profile_77 profile-id: 77 type: 3 bandwidth compensation: no fix(kbps): 0 assure(kbps): 200000 max(kbps): 200000 bind-times: 0 -2)修改或绑带dba模板ma5606t(config-if-epon-0/3)#o
38、nt modify 2 4 authtype|discovery-mode|desc|mac|password|multicast-mode|multicast-fast-leave|fec|dba-profile|encrypt|cir :dba-profile profile-id :77 |multicast-mode|multicast-fast-leave|fec|encrypt|cir : command: ont modify 2 4 dba-profile 77ma5606t(config-if-epon-0/3)# modify ont succeeded4、ont流量、vl
39、an配置 华为局端对所有不带vlan的流都会采取丢弃处理,因此不管是上行还是下行业务流经过局端时必须要携带vlan。 1)ont vlan配置 对ont而言,端口有3种工作模式:transparent、tag和translation。而华为局端上定义了4种工作模式,但其实和ctc定义的三种vlan模式是相对应的。(1)配置ont port1为transparent模式,和ctc定义的transparent相同。ma5606t(config-if-epon-0/3)#ont port vlan 2 4 fe|ge :fe 1 s-vlanid|transparent|translation :t
40、ransparent command: ont port vlan 2 4 fe 1 transparentma5606t(config-if-epon-0/3)# success to set the vlan configuration of the ont port (2)配置ont port2为tag标记模式,和ctc定义的translation 自己转换成自己的情况相同。ma5606t(config-if-epon-0/3)#ont port vlan 2 4 fe|ge :fe 2 s-vlanid|transparent|translation :100 command: ont
41、 port vlan 2 4 fe 2 100ma5606t(config-if-epon-0/3)# success to set the vlan configuration of the ont port (3)配置ont port3为tag模式,和ctc定义的tag模式相同,但在华为局端下,若要配置端口处于tag模式时,须先配置端口为tag标记模式。ma5606t(config-if-epon-0/3)#ont port vlan 2 4 fe 3 200ma5606t(config-if-epon-0/3)# success to set the vlan configuration
42、 of the ont portma5606t(config-if-epon-0/3)#ont port native-vlan 2 4 fe 3 vlan :vlan 200 command: ont port native-vlan 2 4 fe 3 vlan 200ma5606t(config-if-epon-0/3)# setting the native vlan for the specified port succeeded (4)配置ont port4为translation模式,和ctc定义的translation模式相同,但区别在于不需要配置default vlan。ma5606t(config-if-epon-0/3)#ont port vlan 2 4 fe 4 s-vlanid|transparent|translation :tr
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
评论
0/150
提交评论