由于刚开始接触网络运维这一块时,网上查不到太多实用的命令,基本靠同事指导和自己摸索,总结了一些常用的运维命令,希望能对你们有所帮助。
-
查非法onu
show interface epon-olt illegal-onu
-
踢非法onu
conf
interface epon-olt 1/3
no create epon-onu 44 (这个4是onu的id) -
通过mac地址查在哪个pon口上线 (epon)
show interface epon-onu creation-information | include 8C9D(MAC后四位)
-
查onu的vlan信息
show running-config epon-onu 6/10/4
-
查onu的基本信息
show epon-onu 6/10/4 detail-information
-
查onu端口状态
show epon-onu 6/10/4 uni ethernet information
-
通过loid或者sn查询onu的基本信息(gpon)
show int gpon-onu loid | in GZ456755YG
-
查mac地址有没有上来(gpon和epon)
show mac-address-table l2-address interface gpon-onu 15/14/31
show mac-address-table l2-address interface epon-olt 4/2
-
手动配置vlan
epon-onu uni ethernet x/x/x/口
vlan mode tagged
native vlan [vlanid] -
修改OLT认证模式
config
nterface epon-olt x/x
authorization mode [mac & loid & none] -
通过 ONU 的 MAC 地址,查看其连接的 OLT PON 接口和设备信息
show mac-address-table l2-address
show epon-onu x/x/x detail-information -
查看pon口的光功率
config
interface epon-olt x/x
transceiver ddm enable
show interface epon-olt x/x ddm detail -
保存 OLT 的配置。在特权模式下使用 write startup-config 命令
write startup-config
-
保存 ONU 的配置。在 ONU 配置模式下使用 write 命令
config
epon-onu x/x/x
write -
恢复出厂配置(慎用)
config
erase startup-config
-
命令禁止系统日志输出到控制终端。
config
no logging monitor
-
通过 MAC 地址查找功能来确定链路
config
search epon-onu 12/3/2 mac-address-table
F4D9.C633.2BF8
-
通过 MAC 地址追踪功能来确定链路
trace mac-address F4D9.C633.2BF8
-
查看 OLT 端口状态
show interface epon-olt
-
查看上行端口流量
show interface ten-gigabitethernet
show interface ten-gigabitethernet x/x statistics dynamic
-
查onu光功率
show epon-onu 6/10/4 transceiver
-
查询某个pon口的设备信息
show run int epon-olt 4/2