关于部分ONU升级后小概率出现恢复默认MAC地址的解决方法
一、 说明:
对网络中已出现MAC恢复为默认地址的设备,通过远程或者本地修改设备MAC。
二、 修改方法:
远程修改ONU MAC地址:
a)绑定默认的MAC:0023-8900-254A,保证ONU能够正常上线;
b)对该ONU配置管理地址,确保在远程可以telnet到ONU;
c)telnet到ONU之后,按照如下方法修改MAC:
<H3C>system-view
[H3C]_
[H3C-hidecmd]test setmac xxxx-xxxx-xxxx
<H3C>reboot
d)待ONU重启后,重新绑定修改后的MAC地址即可。
下面以一个实际例子来进一步说明。
例如,升级前ONU MAC为0000-0000-0001,升级后ONU无法正常上线,通过查看ONU在线状态,发现多出一个MAC:0023-8900-254A。
1、假设设备升级前MAC为0000-0000-0001,且绑定在Onu2/0/1:2。
[H3C-Onu2/0/1:2]display onuinfo slot 2
-----------------------------Olt2/0/1--------------------------
ONU Mac Address LLID Dist(M) Port Board/Ver Sft/Epm State Aging
0000-0000-0001 1 10 Onu2/0/1:2 ET254-G-A/A 101/100 Up N/A
2、升级后ONU处于Offline状态,且多出了一个0023-8900-254a的MAC,处于Silent状态。
[H3C-Onu2/0/1:2]diplay onuinfo slot 2
-----------------------------Olt2/0/1--------------------------
ONU Mac Address LLID Dist(M) Port Board/Ver Sft/Epm State Aging
0000-0000-0001 0 N/A Onu2/0/1:2 N/A N/A Offline N/A
0023-8900-254a 0 N/A N/A N/A N/A Silent 292s
3、重新绑定MAC 0023-8900-254a,保证ONU正常上线,同时配置管理地址。
[H3C-Onu2/0/1:2]display this
#
interface Onu2/0/1:2
bind onuid 0023-8900-254a
undo shutdown management-vlan-interface
ip address 192.168.0.77 255.255.255.0 gateway 192.168.0.1
port link-type trunk
#
注意:根据实际情况配置管理VLAN,保证配置的IP地址能够ping通ONU。
4、通过OLT telnet到ONU, ONU telnet缺省密码为admin。
<H3C>telnet 192.168.0.77
Trying 192.168.0.77 ...
Press CTRL+K to abort
Connected to 192.168.0.77 ...
*********************************************************************
* Copyright (c) 2013-2014 Hangzhou H3C Technologies Co.,Ltd.
* All rights Reserved.
* Without the owner's prior written consent,
* no decompiling or reverse-engineering shall be allowed.
*********************************************************************
Login authentication
Password: *****
<H3C> system-view
System View: return to User View with Ctrl+Z.
5、进入ONU隐藏命令视图,修改ONU MAC为未升级前的设备MAC,并重启ONU。
[H3C]_
Now you enter a hidden command view for developer's testing, some commands may affect operation by wrong use, please carefully use it with our engineer's direction.
[H3C-hidecmd]test setmac 0000-0000-0001
<H3C>reboot
Start to check configuration with next startup configuration file,please wait.........Done!
Checking is finished!This will reboot device. Continue? [Y/N]y
6、修改MAC后,重新绑定MAC 0000-0000-0001。
[H3C-Onu2/0/1:2]display this
#
interface Onu2/0/1:2
bind onuid 0000-0000-0001
#
7、查看修改MAC后的ONU是否正常上线
[H3C-Onu2/0/1:2]display onuinfo slot 2
-----------------------------Olt2/0/1--------------------------
ONU Mac Address LLID Dist(M) Port Board/Ver Sft/Epm State Aging
0000-0000-0001 1 10 Onu2/0/1:2 ET254-G-A/A 104/100 Up N/A
本地修改ONU MAC地址方法:
通过串口登录到ONU,根据设备铭牌上的MAC地址,按照上述命令修改即可。
三、 注意事项:
1、修改ONU MAC地址会导致ONU下线,所以在正常情况下切勿修改MAC地址。