笔者最近在准备三网大赛,前边还写过一篇名为《SoftCo9500 常用维护命令实例浅析》的文章作为笔记,这里,再写一篇与之配套的EPON配置排错浅析。EPON是“以太无源光学网络”的简写,华为的MA5680T就是一款EPON的OLT,这里相关术语不做赘述,默认读者有一定的相关知识水平,下面,我就来简单根据实例为大家介绍一下我常用的几个排错命令。
这里的命令与华为系列是相通的,我想习惯配置华为设备的朋友应该不会特别陌生,但对于像路由这种之前只玩过思科的人=。=||……
1、查看当前所有vlan(config)#display vlan all
功能简述:使用这个命令可以快速查看当前机内所有VLAN,包括类型属性和相关联的业务端口数量等。以三网比赛程度来看Attribute栏应当均为common,否则配错。在详细信息中还可查看关联到此VLAN的业务端口,以及此VLAN所在端口的本征VLAN。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
MA5680T(config)#display vlan all { |vlanattr|vlantype<mux,standard,smart,super> }: Command: display vlan all --------------------------------------------------------- VLAN Type Attribute STND-Port NUM SERV-Port NUM --------------------------------------------------------- 1 smart common 2 0 10 smart common 1 0 16 smart QinQ 1 0 20 smart common 0 0 50 smart common 1 3 60 smart QinQ 0 0 88 smart common 1 0 100 smart common 1 7 101 smart common 1 0 102 smart common 1 0 105 smart common 0 0 107 smart common 0 0 108 smart common 1 0 --------------------------------------------------------- Total: 13 Note : STND-Port--standard port, SERV-Port--service virtual port |
查看上表中某一vlan(88)的详细信息
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
MA5680T(config)#display vlan 88 { <cr>|to<K> }: Command: display vlan 88 VLAN ID: 88 VLAN type: smart VLAN attribute: common VLAN description: VLAN forwarding mode: vlan-mac VLAN broadcast packet forwarding policy: forward VLAN multicast packet forwarding policy: forward VLAN unknown unicast packet forwarding policy: forward VLAN bind service profile ID: - VLAN priority: - ------------------------------ F/S /P Native VLAN State ------------------------------ 0/18/0 100 up ------------------------------ Standard port number: 1 Service virtual port number: 0 |
2、查看所有的DBA模板(config)#display dba-profile all
功能简述:使用此命令可快速查看当前DBA(动态带宽分配)模板列表,通过ID或者NAME字段,还可以进一步查看目标模板的详细信息。从而确定模板的值,另外在业务模板中也会需要与对应DBA模板关联。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
MA5680T(config)#display dba-profile all ---------------------------------------------------------------------------- Profile-ID type Bandwidth Fix Assure Max Bind compensation (kbps) (kbps) (kbps) times ---------------------------------------------------------------------------- 1 1 No 5120 0 0 1 2 1 No 1024 0 0 0 3 4 No 0 0 32768 0 4 1 No 1024000 0 0 0 5 1 No 32768 0 0 0 6 1 No 102400 0 0 0 7 2 No 0 32768 0 0 8 2 No 0 102400 0 0 9 3 No 0 32768 65536 5 10 2 No 0 102400 0 1 12 3 No 0 1984 3968 2 13 4 No 0 0 4096 0 15 4 No 0 0 409600 1 16 4 No 0 0 4096 0 20 4 No 0 0 4096 0 44 4 No 0 0 4096 0 88 3 No 0 9984 40000 2 101 2 No 0 102400 0 0 ---------------------------------------------------------------------------- |
查看上表中某个模板101的详细内容,可使用id或name关键字来查看。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
MA5680T(config)#display dba-profile ? --------------------------------------------- Command of privilege Mode: --------------------------------------------- all All DBA profile profile-id DBA profile ID profile-name DBA profile name MA5680T(config)#display dba-profile profile-id 101 ----------------------------------------------------------------- Profile-name : dba-profile_101 Profile-ID: 101 type: 2 Bandwidth compensation: No Fix(kbps): 0 Assure(kbps): 102400 Max(kbps): 0 bind-times: 0 ----------------------------------------------------------------- |
3、查看所有的线路模板(config)#display ont-lineprofile epon all
功能简述:使用此命令可快速查看存在的线路模板,以比赛的程度应当只涉及了EPON,在详细内容中可查看与之绑定的DBA模板以及流量模板。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
MA5680T(config)#display ont-lineprofile epon all --------------------------------------------------------------------- Profile-ID Profile-name Binding times --------------------------------------------------------------------- 1 line-profile_1 1 2 line-profile_2 1 3 line-profile_3 0 4 myontlp 1 5 line-profile_5 0 10 line-profile_10 0 13 line-profile_13 0 14 line-profile_14 0 15 wj-line 0 20 MDU 0 44 line-profile_44 1 88 qqqq 1 --------------------------------------------------------------------- Total: 12 |
可以根据name或者id关键字来查看上表中的某个模板(4)详细内容
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
MA5680T(config)#display ont-lineprofile epon profile-name myontlp --------------------------------------------------------------------- Profile-ID :4 Profile-name :myontlp Access-type :EPON --------------------------------------------------------------------- FEC switch :Disable Encrypt type :off DBA Profile-ID :1 //DBA模板ID Traffic-table-index :6 //流量模板序号 Dba-threshold : --------------------------------------------------------------------- Queue-set-index Q1 Q2 Q3 Q4 Q5 Q6 Q7 Q8 --------------------------------------------------------------------- 1 - - - - - - - - 2 - - - - - - - - 3 - - - - - - - - --------------------------------------------------------------------- Binding times :1 --------------------------------------------------------------------- |
4、查看当前所有业务模板(config)#display ont-srvprofile epon all
功能简述:查看所有业务模板,并且可以在详细内容中查看详细的设定,避免配错,配漏等。查看ONT的端口配置,VLAN设定,标签设定,多播VLAN等,一旦错配漏配,可以快速命中。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
MA5680T(config)#display ont-srvprofile epon all --------------------------------------------------------------------- Profile-ID Profile-name Binding times --------------------------------------------------------------------- 1 srv-profile_1 1 3 srv-profile_3 1 4 srv-profile_4 1 5 srv-profile_5 1 6 myontsp 1 10 srv-profile_10 0 13 wj 0 16 srv-profile_16 0 --------------------------------------------------------------------- Total: 8 |
查看上表中某一模板(6)的详细内容
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
MA5680T(config)#display ont-srvprofile epon profile-name myontsp --------------------------------------------------------------------- Profile-ID : 6 Profile-name: myontsp Access-type : EPON --------------------------------------------------------------------- Port-type Port-number --------------------------------------------------------------------- POTS 0 ETH 4 //ONT的以太网口数量 TDM 0 --------------------------------------------------------------------- TDM type : E1 Multicast fast leave switch : Unconcern Ring check switch : Unconcern --------------------------------------------------------------------- Port-ID Up-traffic Down-traffic MAC-learning Classification Multicast CAR-ID CAR-ID count profile-ID tag-stripe --------------------------------------------------------------------- 1 Unconcern Unconcern Unlimited - Tag 2 Unconcern Unconcern Unlimited - Untag 3 Unconcern Unconcern Unlimited - Tag 4 Unconcern Unconcern Unlimited - Tag --------------------------------------------------------------------- Port-ID Multicast-VLAN --------------------------------------------------------------------- 1 - 2 100 //多播VLAN 3 - 4 - --------------------------------------------------------------------- Port-ID Service-type Index S-VLAN C-VLAN --------------------------------------------------------------------- 1 - - - - 2 Translation 1 30 30 //ONT端口VLAN标签 3 Translation 1 10 10 4 Translation 1 20 20 --------------------------------------------------------------------- Binding times : 1 --------------------------------------------------------------------- |
5、查看ONT自动发现名单(config-if-epon-0/1)#display ont autofind 0
功能简述:在配置初始,可以使用此命令快速发现接入OLT的ONT。
1 2 |
MA5680T(config-if-epon-0/1)#display ont autofind 0 Failure: The automatically found ONTs do not exist |
6、查看某接口下的所有ONT设备(config-if-epon-0/1)#display ont info 0 all
功能简述:根据接口来查看ONT列表,快速判断ONT状态,Config state栏应当为normal才对。在详细信息内容中可以查看此ONT所绑定的线路模板和业务模板,以便发现问题时候可以快速命中。
1 2 3 4 5 6 7 8 9 10 11 12 |
MA5680T(config-if-epon-0/1)#display ont info 0 all ------------------------------------------------------------------------------ F/S/P ONT-ID MAC Control Run Config Match flag state state state ------------------------------------------------------------------------------ 0/ 1/0 0 0000-0010-1111 active down initial initial 0/ 1/0 3 001F-A4D8-730D active up normal match 0/ 1/0 9 001F-A4A3-8829 active up normal match 0/ 1/0 11 001F-A4AF-EC64 active up normal match 0/ 1/0 16 001F-A4D8-460D active up normal match ------------------------------------------------------------------------------ In port 0, the total of ONTs are: 5 |
查看当前列表(0)中某ONT(11)的详细信息
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
MA5680T(config-if-epon-0/1)#display ont info 0 11 --------------------------------------------------------------------- F/S/P : 0/1/0 ONT-ID : 11 Control flag : active Run state : up Config state : normal Match state : match ONT LLID : 15364 Authentic type : MAC-auth MAC : 001F-A4AF-EC64 Management mode : OAM Multicast mode : IGMP-Snooping //注意这里不是proxy模式 Description : ONT_NO_DESCRIPTION Last down cause : re-register Last up time : 2014-02-18 12:34:22 Last down time : 2014-02-18 12:34:18 Last dying gasp time : - --------------------------------------------------------------------- Line profile ID : 4 //线路模板 Line profile name : myontlp --------------------------------------------------------------------- FEC switch :Disable Encrypt type :off DBA Profile-ID :1 Traffic-table-index :6 Dba-threshold : --------------------------------------------------------------------- Queue-set-index Q1 Q2 Q3 Q4 Q5 Q6 Q7 Q8 --------------------------------------------------------------------- 1 - - - - - - - - 2 - - - - - - - - 3 - - - - - - - - --------------------------------------------------------------------- Service profile ID : 6 //业务模板 Service profile name : myontsp --------------------------------------------------------------------- Port-type Port-number --------------------------------------------------------------------- POTS 0 ETH 4 TDM 0 --------------------------------------------------------------------- TDM type : E1 Multicast fast leave switch : Unconcern Ring check switch : Unconcern --------------------------------------------------------------------- Port-ID Up-traffic Down-traffic MAC-learning Classification Multicast CAR-ID CAR-ID count profile-ID tag-stripe --------------------------------------------------------------------- 1 Unconcern Unconcern Unlimited - Tag 2 Unconcern Unconcern Unlimited - Untag 3 Unconcern Unconcern Unlimited - Tag 4 Unconcern Unconcern Unlimited - Tag --------------------------------------------------------------------- Port-ID Multicast-VLAN --------------------------------------------------------------------- 1 - 2 100 3 - 4 - --------------------------------------------------------------------- Port-ID Service-type Index S-VLAN C-VLAN --------------------------------------------------------------------- 1 - - - - 2 Translation 1 30 30 //ont端口VLAN标签 3 Translation 1 10 10 4 Translation 1 20 20 --------------------------------------------------------------------- |
7、查看某ONT硬件能力信息(0口11号)(config-if-epon-0/1)#display ont capability 0 11
功能简述:命令中前边的“0”是板卡中第一个端口,“11”是ONT-ID。使用此命令可以快速访问目标ONT的物理信息,以防止写出与实际不符的配置内容。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
MA5680T(config-if-epon-0/1)#display ont capability 0 11 -------------------------------------------------------- ONT Hardware Capability / Status Information -------------------------------------------------------- PON port ID: 0 ONT ID: 11 Number of POTS ports: - Number of FE ports: 4 Number of GE ports: - Number of TDM ports: - SupportFEC: support Supportbackupbattery: not support UpQueueNum: 8 UpQueueNumPerPort: 8 DownQueueNum: 4 DownQueueNumPerPort: 4 FePortList: 1-4 GePortList: - Multicast Fast Leave: support -------------------------------------------------------- |
8、查看某ONT接口的本征vlan(native-vlan)(config-if-epon-0/1)#display ont port attribute 0 11 eth
功能简述:“0”是板卡下第一个接口,“11”是ont的id号,使用此命令能够快速排除ONT本征VLAN配置错误,一般本征VLAN应当与对应ONT的接口VLAN标签对应,否则网络不通。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
MA5680T(config-if-epon-0/1)#display ont port attribute 0 11 eth { <cr>|ont-portid<U><1,8> }: Command: display ont port attribute 0 11 eth ---------------------------------------------------------------- ONT ONT ONT Auto-neg Speed Duplex Port Flow Native port port-type (Mbps) switch control VLAN ---------------------------------------------------------------- 11 1 ETH auto auto auto on off - 11 2 ETH auto auto auto on off - 11 3 ETH auto auto auto on off 10 11 4 ETH auto auto auto on off 20 ---------------------------------------------------------------- |
9、查看某接口(0)下某ONT(11)的流量信息(config-if-epon-0/1)#display ont traffic 0 11
功能简述:使用此命令可快速确定ONT健康状况,还可根据下级关键字针对ONT上单个接口查看流量,十分有利于错误命中!
1 2 3 4 5 6 7 8 9 10 11 12 13 |
MA5680T(config-if-epon-0/1)#display ont traffic 0 11 { <cr>|ontportid<U><1,8> }: Command: display ont traffic 0 11 MA5680T(config-if-epon-0/1)# ------------------------------------------------------- Traffic Information ------------------------------------------------------- Up traffic (kbps) : 0 Down traffic (kbps) : 0 ------------------------------------------------------- |
10、查看当前所有组播用户(config)#display igmp user all
功能简述:查看所有的组播用户,可快速确定组播状态;详细信息中还可验证igmp版本是否错配等等。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
MA5680T(config)#display igmp user all { <cr>||<K> }: Command: display igmp user all Command is being executed, please wait... ------------------------------------------------------------------------------ User Port Bind State Auth Quick IGMP Video Log Available profiles leave flow ID flow ID switch programs ------------------------------------------------------------------------------ 0/1/0/5 - offline no-auth MAC-based 5 - enable 8 0/1/0/15 - offline no-auth MAC-based 15 - enable 8 0/1/0/89 - offline no-auth MAC-based 89 - enable 8 0/1/0/11 - offline no-auth MAC-based 11 - enable no-limit ------------------------------------------------------------------------------ Total: 4 |
根据业务端口查看某一用户(0/1/0/11)的详细信息
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
MA5680T(config)#display igmp user service-port 11 User : 0/1/0/11 State : offline Authentication : no-auth Quick leave : MAC-based IGMP flow ID : 11 Video flow ID : - Log switch : enable Bind profiles : - IGMP version : IGMP v3 Available programs : no-limit Global Leave : disable User MaxBandWidth : no-limit Used bandwidth(kbps) : 0 Used bandwidth to max bandwidth(%) : - Total video bandwidth : - Mcast video bandwidth : - |
11、查看所有组播上行链路(config)#display igmp uplink-port all
功能简述:查看当前设置的组播上行链路以及对应VLAN等
1 2 3 4 5 6 7 8 |
MA5680T(config)#display igmp uplink-port all --------------------------------------------- Port | Vlan | IGMP | V2 Router Present | | version | Timer (s) --------------------------------------------- 0/18/0 100 IGMP V3 0 --------------------------------------------- Total: 1 |
12、根据业务端口查看组播报文记录(config)#display igmp statistic service-port 11
[warning]
功能简述:此命令及其重要!使用此命令可以快速查看igmp报文收发计数,从而确定排错方向,增加命中率!
[/warning]
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
MA5680T(config)#display igmp statistic service-port 11 The data of service-port 11 IGMP statistic: -------------------------------------------------------- Receive V1 total report packets number : 0 Receive unsuccessful V1 report packets number : 0 Receive V2 total report packets number : 345 Receive successful V2 report packets number : 161 Receive unsuccessful V2 report packets number : 184 Receive V3 total report packets number : 18 Receive successful V3 report packets number : 18 Receive unsuccessful V3 report packets number : 0 Receive successful V2 leave packets number : 9 Send general query number : 63 Send specific query number : 0 Receive invalid igmp packets : 0 -------------------------------------------------------- |
13、根据组播vlan来查看当前IPTV节目信息(config)#display igmp program vlan 100
功能简述:快速查看某组播VLAN下已经定义的电视节目,以及组播地址;详细信息中可以查看源IP
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
MA5680T(config)#display igmp program vlan 100 { <cr>|ip<K>||<K> }: Command: display igmp program vlan 100 ------------------------------------------------------------------------------ Index| Create | IP | Program |User |VLAN |Prejoin|Priority | Flag | Address | name |num | ID | | ------------------------------------------------------------------------------ 0 S 226.0.0.26 dianying 0 100 disable 7 1 S 226.0.0.27 english 0 100 disable 7 ------------------------------------------------------------------------------ Total: 2 program(s) (Static/Dynamic: 2/0) Note : # The program data is valid, but it is no license. |
根据编号来查看某一节目的详细设置
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
MA5680T(config)#display igmp program index 0 { <cr>||<K> }: Command: display igmp program index 0 --------------------------------------------- Program index : 0 Create mode : static Program name : dianying IP address : 226.0.0.26 VLAN ID : 100 Host attribute : enable Log attribute : enable Prejoin attribute : disable Unsolicited attribute : disable Priority : 7 Host IP : 0.0.0.0 Bandwidth(kbps) : 5000 SourceIP : - Preview Profile : 0 Numbers of watching : 0 Program Grade : - --------------------------------------------- |
14、查看某业务端口的组播权限(config)#display igmp policy service-port 11
功能简述:用处单一,但某些时候也很有用。唯一的用处就是查看这条命令是否已配置!
1 2 |
MA5680T(config)#display igmp policy service-port 11 Igmp policy of service-port 11 is normal |
15、查看某业务端口加入的组播vlan(config)#display igmp multicast-vlan member service-port 11
功能简述:使用这个快速定位业务端口加入的广播VLAN!
1 2 3 4 5 6 |
MA5680T(config)#display igmp multicast-vlan member service-port 11 Multicast vlan(s) the user joined : ------------------------------------------------- 100 ------------------------------------------------- Total: 1 |
本文由 落格博客 原创撰写:落格博客 » 华为MA5680T常用排错命令实例浅析
转载请保留出处和原文链接:https://www.logcg.com/archives/473.html