关键词不能为空

当前您在: 主页 > 英语 >

中兴OLT(C220 C300)ONU(9806 F822)抓包方法

作者:高考题库网
来源:https://www.bjmy2z.cn/gaokao
2021-02-12 08:32
tags:

-

2021年2月12日发(作者:批准证书)


C300


内联口抓包法,需要上联板有以太网口。同时在


OLT


侧能看到用户上来的


mac




ROS10



bcmshell-------------------------


此处是进入


9999


端口,并输入


密码


ZTEzte123


BCM.0> l2 show /*


找到对应


MAC


学到的


PORT */


,找到包上来的内


联口。如



BCM.1> l2 show


mac=c8:3a:35:9c:1c:04 vlan=3501 modid=2 port=8/xe3------


带有


xe3


标记,


这个


xe3


就是内联口




若是


SX CL


板,还需到第二个芯片上看一下


MAC

地址



BCM.0>1




BCM.1>



镜像使用的上联口可 以看下面的表格,同时可以通过插拔网线然后


ps


查看一个


哪个端口的状态发生过变化来确定。


-----

找到镜像上联口所对应的内联口



BCM.0>ps



镜像命令:



举例:把端口


xe5


出口包镜像到< /p>


xe0




BCM.0>dmirror xe5 mode=egress dp=xe0 dm=1




BCM.1> l2 show


mac=c8:3a:35:9c:1c:04 vlan=3501 modid=2 port=8/xe3


mac=08:10:74:ca:11:9f vlan=3501 modid=1 port=17


mac=54:e6:fc:19:70:bf vlan=3501 modid=2 port=8/xe3


mac=70:71:bc:96:df:52 vlan=3501 modid=2 port=8/xe3


mac=08:10:74:ca:5b:21 vlan=3501 modid=2 port=8/xe3


mac=08:10:74:bb:75:a3 vlan=3501 modid=1 port=17


mac=c8:3a:35:9d:df:12 vlan=3501 modid=1 port=17



此处


modid=1



0


号芯片,


modid=2



1


号芯片



1


号芯片在


bcm.1


下输入


dmirror



BCM.1>dmirror xe3 mode=egress dp=xe0 dm=1




这里的


dm=1



0


号的芯片的上联 板。





命令解释可以通过下面指令:



BCM.0>dmirror





关闭镜像:



BCM.0>dmirror xe5 mode=off



dmirror xe8 mode=off




抓包步骤:



1


、将


pc


接在上联口,通过电脑< /p>


ping ONU


带内


IP


,通过上联口抓包。




注意将上联口


vlan


配成


defa ult vlan





2


、将内联口的包镜像到上联口:


< /p>



1


)首先进入主控板的底层系统



a.


通过主控板的串口,

< br>进入主控板底层系统的方法:


进入


SCXM


的串口


CLI


命令,


使用< /p>



ctrl+Q



和密码“


01RXZ


”进入到底层系统(标识字符为


[ROS10:]




b.


通过


telnet


进入主控板底层 系统的方法:


在正常的


telnet


命 令后面,


加上



9999





< br>telnet


10.64.196.123 9999


”,(


10.64.196.123


为主控板管理地址),需要 输入密码“


ZTEzte123





(2)


进入


shell





[ROS10:]


drvshell


BCM.0>




1


号芯片的端口


xe12


镜像到

< br>xe1


BCM.0>


dmirror


xe12


mode=all


destport=xe1


destmodule=1


(先用


L2


show


显示


MAC+VLAN



通过用户上来的


MAC

< br>找到对应的内联口,再做镜象)





如果要镜像


2


号芯片的


xe5



1


号芯片的


xe19




BCM.0>1:


BCM.1> dmirror xe5 mode=all destport=xe19 destmodule=1




如果要镜像


2


号芯片的


xe5



2


号芯片的


xe19




BCM.0>1:


BCM.1> dmirror xe5 mode=all destport=xe19 destmodule=2




关闭镜像:



BCM.1>dmirror xe5 mode=off



看内敛口


MAC


地址学习情况:



l2 show



dmirror xe12 mode=Ingress destport=xe1 destmodule=1


dmirror xe12 mode=all destport=xe1 destmodule=1



dmirror xe12 mode=off



dmirror cpu mode=All destport=xe1 destmodule=1


dmirror cpu mode=off



现场使用的是


SCXM


主控板,下面列出



芯片的端口(

< br>ge


口)和单板槽位的对应关系,其中


20-2


表示


20


槽位


2


号端口,其他类似。







OLT (C220)


上联口及


PON


口抓包方 法



上联口抓包:



第一步:创建镜像:



ZXAN(config)#monitor session 1







//


在全局模式下创建镜像!




第二步:进入到源镜像端口:



ZXAN(config)#interface gei_0/6/1





//


进入源镜像端口



ZXAN(config-if)#monitor session 1 source direction both



//


设置源镜像端口




第三步:进去到目的端口:



ZXAN(config)#interface gei_0/6/2


ZXAN(config-if)#monitor session 1 destination //


设置目的镜像端口。



ZXAN(config-if)#exit


ZXAN(config)#exit


ZXAN#write





//


保存配置。




删除镜像的命令:



ZXAN(config)#no monitor session 1



PON


口抓包:


PON


口镜像抓包命令,需要版本支持,


P3T8


以后的版本支持:



PON

口是进入内敛口做镜像,上联口不变的。



ZXAN(config)#interface inner-port_0/2/1


(需要手工敲的,出不来的。









XAN(config-if)#monitor session 1 ?
















































destination



Traffic destination port












































source








Traffic source port















































ZXAN(config-if)#monitor session 1 so













































ZXAN(config-if)#monitor session 1 source ?









































direction



Traffic direction































































































































ZXAN(config-if)#monitor session 1 source di






































ZXAN(config- if)#monitor session 1 source direction ?































both



Both Directions




























































rx





Receive Direction


























































tx





Transmit Direction






















































-


-


-


-


-


-


-


-



本文更新与2021-02-12 08:32,由作者提供,不代表本网站立场,转载请注明出处:https://www.bjmy2z.cn/gaokao/642122.html

中兴OLT(C220 C300)ONU(9806 F822)抓包方法的相关文章