华为MA配置成普通交换机的方法.docx
《华为MA配置成普通交换机的方法.docx》由会员分享,可在线阅读,更多相关《华为MA配置成普通交换机的方法.docx(9页珍藏版)》请在冰豆网上搜索。
![华为MA配置成普通交换机的方法.docx](https://file1.bdocx.com/fileroot1/2022-12/11/a53d5ebf-ab68-46da-a703-a8ec4adaaa26/a53d5ebf-ab68-46da-a703-a8ec4adaaa261.gif)
华为MA配置成普通交换机的方法
RevisedbyBETTYonDecember25,2020
华为MA配置成普通交换机的方法
华为MA5626如何配置成交换机模式
本文以16口MA5626为例
通过串口线用超级终端登录
用户名root
密码mduadmin
(这是默认的用户名和密码)
MA5626>enableMA5626#configMA5626(config)#vlanservice-profileprofile-id1
user-bridgingenable
commit
quit
vlanbindservice-profile1profile-id1
multi-service-portvlan1port0/11-16user-vlanuntaggedrx-cttr6tx-cttr6
在敲一遍:
multi-service-portvlan1port0/11-16user-vlanuntaggedrx-cttr6tx-cttr6
save以上配好就可以当交换机去用了。
附图:
如果出现的是1515,则需要再敲一遍该命令。
硬件连接方式
首先连接电脑与onu,通过配置线连接
图为配置线,“网线头”插入onu的CONSOLE口,另一端与电脑的串口接。
图为onu上对应的CONSOLE接口(插入“网线头”即可)
电脑端操作
首先打开超级终端:
开始—程序—附件---通信—超级终端
打开超级中断后出现如下提示
点否进入如下界面
名称随便写,图标选择默认的即可,然后点击确定出现如下界面
连接口选择COM1或者COM2根据自己的机器选择,1不行就2,点击确定,然后按照下图设置
点击确定
然后到文件—属性—设置中按下图方式
一定要设置ASCII码
按照图中行延迟和字符延迟都设置为200毫秒,然后点击确定即可
在超级终端出点击回车即可出现要求输入用户名和密码
华为onu登陆用户名root
密码mduadmin
登陆后界面如下
登陆onu后输入的命令:
enable---回车
eraseflashdata---回车
Y---回车
rebootsystem---回车
Y---回车
回车后等待片刻onu重启后以前所配置的数据即可全部删除
查看光功率
MA5626>enable
MA5626#config
MA5626(config)#interfacegponnni0/0/1
MA5626(config-if-gponnni-0/0/1)#displayportstate
----------------------------------------------------------------------------
F/S/P0/0/1
LaserstateAUTO
PortstateUp
WaveLength(nm)1310
IdentifierModule/connectorsolderedtomotherboard
GBIC/SFPfunctionisdefinedbyserialIDonly
ConnectorOpticalpigtail
EncodingNRZ
BR,Nominal(100Mbps)13
Length(9um)(km)
Length(50um)Notsupport
LengthNotsupport
Length(Copper)Notsupport
Cc_base0xaa
CC_EXT0x7b
BR,maxUnspecified
BR,minUnspecified
SFF-8472ComplianceTBD
OptionsInvalid
VendorRevUnspecified
VendorPNSFU3424THPCDFIAC
VendorSNC4L2011876
VendorOUI000000
Manufactured12-03-21
VendornameSOURCEPHOTONICS
TXBiascurrent(mA)
SupplyVoltage(V)
Temperature(C)
TXpower(dBm)
RXpower(dBm)
8口实例
MA5626>enable
MA5626#config
MA5626(config)#vlanservice-profileprofile-id1
{|profile-name}:
Command:
vlanservice-profileprofile-id1
MA5626(config-vlan-srvprof-1)#user-bridgingenable
Info:
Pleaseusethecommitcommandtomakemodificationstakeeffect
MA5626(config-vlan-srvprof-1)#commit
MA5626(config-vlan-srvprof-1)#quit
MA5626(config)#vlanbindservice-profile1profile-id1
MA5626(config)#multi-service-portvlan1port0/11-8user-vlanuntaggedrx-cttr6tx-cttr6
Itwilltakeseveralminutes,andconsolemaytimeout,pleaseusecommand
idle-timeouttosettimelimit
Areyousuretocreateservicevirtualport(s)(y/n)[n]:
y
Thenumberoftotalboardinthisoperation:
1
Thenumberoftotalservicevirtualportinthisoperation:
8
Creatingstart...
Creatingend:
Thenumberoftotalservicevirtualportwhichneedbecreated:
8
Thenumberoftotalservicevirtualportwhichhavebeencreated:
8
MA5626(config)#multi-service-portvlan1port0/11-8user-vlanuntaggedrx-cttr6tx-cttr6
Itwilltakeseveralminutes,andconsolemaytimeout,pleaseusecommand
idle-timeouttosettimelimit
Areyousuretocreateservicevirtualport(s)(y/n)[n]:
y
Thenumberoftotalboardinthisoperation:
1
Thenumberoftotalservicevirtualportinthisoperation:
8
Creatingstart...
Creatingend:
Thenumberoftotalservicevirtualportwhichneedbecreated:
8
Thenumberoftotalservicevirtualportwhichhavebeencreated:
0
MA5626(config)#save
POE功能
数字光模块版的光口查询光功率
MA5626(config-if-eth-0/0)#displayport
---------------------------------------------
CommandofethMode:
---------------------------------------------
ddm-infoDisplayddminformationofopticalmodule
optic-power-thresholdDisplayTXopticalpowerthreshold
opticstateDisplayinformationofopticalmodule
stateDisplayportstate
statisticsDisplayportstatistics
trafficDisplayporttraffic
MA5626(config-if-eth-0/0)#displayportopticstate
{all|portid<1,2>}:
Command:
displayportopticstate
^
%Incompletecommand,theerrorlocatesat'^'
MA5626(config-if-eth-0/0)#displayportopticstate
---------------------------------------------
CommandofethMode:
---------------------------------------------
allAllports
portid<1,2>PortID
MA5626(config-if-eth-0/0)#displayportopticstateall
-------------------------------------------------------------------------------
Portbit9umlength50umlengthlengthcopperlengthtype
ratesupportedsupportedsupportedsupported
(100M/s)(km)(10m)(10m)(m)
-------------------------------------------------------------------------------
1------
2211055550M1000BASE_CX
-------------------------------------------------------------------------------
MA5626(config-if-eth-0/0)#displayportopticstateall
-------------------------------------------------------------------------------
Portbit9umlength50umlengthlengthcopperlengthtype
ratesupportedsupportedsupportedsupported
(100M/s)(km)(10m)(10m)(m)
-------------------------------------------------------------------------------
1211055550M1000BASE_CX
2------
-------------------------------------------------------------------------------
MA5626(config-if-eth-0/0)#quit
MA5626(config)#displayboard0
-------------------------------------------------------------------------
SlotIDBoardNameStatusSubType0SubType1Online/Offline
-------------------------------------------------------------------------
0H822EPUBActive_normalUP2A
1H821EPFANormal
2
-------------------------------------------------------------------------
MA5626(config)#interfaceeth0/0
MA5626(config-if-eth-0/0)#displayportopticstateall
-------------------------------------------------------------------------------
Portbit9umlength50umlengthlengthcopperlengthtype
ratesupportedsupportedsupportedsupported
(100M/s)(km)(10m)(10m)(m)
-------------------------------------------------------------------------------
1211055550M1000BASE_CX
2------
-------------------------------------------------------------------------------
MA5626(config-if-eth-0/0)#displayportstateall
------------------------------------------------------------------------------
PortPortOpticMDISpeedDuplexFlow-ActiveLink
TypeStatus(Mbps)CtrlState
------------------------------------------------------------------------------
1GEnormal-auto_1000auto_fulloffactiveonline
2GEabsence-autoautooffactiveoffline
------------------------------------------------------------------------------
Note:
Fora1000M,electricalportinthefull-duplexmode,settingMDIto
anyvalueisinvalid
MA5626(config-if-eth-0/0)#displayportddm-infoall
^
%Parametererror,theerrorlocatesat'^'
MA5626(config-if-eth-0/0)#displayportddm-info
{portid<1,2>}:
Command:
displayportddm-info
^
%Incompletecommand,theerrorlocatesat'^'
MA5626(config-if-eth-0/0)#displayportddm-info1
Temperature(C):
Supplyvoltage(V):
TXbiascurrent(mA):
TXpower(dBm):
RXpower(dBm):
MA5626(config-if-eth-0/0)#displayportddm-info2
Failure:
Theopticmoduleofportisabsence,cannotdosuchoperation
MA5626(config-if-eth-0/0)#displayportddm-info2
Temperature(C):
Supplyvoltage(V):
TXbiascurrent(mA):
TXpower(dBm):
RXpower(dBm):
MA5626(config-if-eth-0/0)#