华为MA配置成普通交换机的方法精修订.docx
《华为MA配置成普通交换机的方法精修订.docx》由会员分享,可在线阅读,更多相关《华为MA配置成普通交换机的方法精修订.docx(13页珍藏版)》请在冰豆网上搜索。
华为MA配置成普通交换机的方法精修订
GEGROUPsystemofficeroom【GEIHUA16H-GEIHUAGEIHUA8Q8-GEIHUA1688】
华为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
Ext.IdentifierGBIC/SFPfunctionisdefinedbyserialIDonly
ConnectorOpticalpigtail
EncodingNRZ
BR,Nominal(100Mbps)13
Length(9um)(km)20.0
Length(50um)Notsupport
Length(62.5um)Notsupport
Length(Copper)Notsupport
Cc_base0xaa
CC_EXT0x7b
BR,maxUnspecified
BR,minUnspecified
SFF-8472ComplianceTBD
OptionsInvalid
VendorRevUnspecified
VendorPNSFU3424THPCDFIAC
VendorSNC4L2011876
VendorOUI000000
Manufactured12-03-21
VendornameSOURCEPHOTONICS
TXBiascurrent(mA)13.10
SupplyVoltage(V)3.20
Temperature(C)43.72
TXpower(dBm)2.35
RXpower(dBm)1.01
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功能
适用于308版本,后续版本poe命令有些改变,变成port。
max-power尽量设置大些,最大功率如果太小某些设备无法启动。
配置PSE设备
1.使用config命令进入全局配置模式,再使用interfaceeth命令进入ETH模式。
2.配置单板PoE供电管理方式。
使用poepower-management命令配置单板PoE供电管理方式。
单板PoE供电管理方式包括自动配置和手动配置,默认为自动配置。
3.(可选)配置过温保护开关。
使用poetemperature-protection命令使能PoE单板过温保护功能。
当使能PoE单板过温保护功能后,系统检测到温度超过阈值时会关闭所有端口供电功能。
4.配置端口PoE特性。
使用poe命令配置端口PoE特性,包括使能/禁止端口功率输出,配置端口信号线供电传输方式、端口供电优先级、最大输出功率参数。
5.(可选)查询当前PoE端口的配置。
使用displaypoe命令查询PoE端口配置和功率信息。
MA5626(config)#interfaceeth0/1
MA5626(config-if-eth-0/1)#poepower-managementauto
MA5626(config-if-eth-0/1)#poetemperature-protection
MA5626(config-if-eth-0/1)#port5enablemodesignalprioritycriticalmax-power30000
MA5626(config-if-eth-0/1)#port6enablemodesignalprioritycriticalmax-power30000
MA5626(config-if-eth-0/1)#port7enablemodesignalprioritycriticalmax-power30000
MA5626(config-if-eth-0/1)#port8enablemodesignalprioritycriticalmax-power30000
MA5626(config-if-eth-0/1)#displaypoeall
————————————————————————-
PortIdPowerSwitchPOEenablePowerModePriorityMaxPowerPowerState
————————————————————————-1enabledisablesignalmodelow15400detecting2enabledisablesignalmodelow15400detecting3enabledisablesignalmodelow15400detecting4enabledisablesignalmodelow15400detecting5enabledisablesignalmodecritical30000detecting6enabledisablesignalmodecritical30000detecting7enableenablesignalmodecritical30000powered8enabledisablesignalmodecritical30000detecting
MA5626(config-if-eth-0/1)#displaypoe7
————————————————————————-Portpoweron/off:
enablePortpowermode:
signalmodePortpowerpriority:
criticalPortmaxpower(mW):
30000Portpowerenabled:
enablePortpowerstatus:
poweredPortPDclass:
4Portcurrentpower(mW):
2291Portaveragepower(mW):
2098Portpeakpower(mW):
2750Portcurrent(mA):
47.729Portvoltage(V):
48.000
数字光模块版的光口查询光功率
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
-------------------------------------------------------------------------------
Portbit9umlength50umlength62.5umlengthcopperlengthtype
ratesupportedsupportedsupportedsupported
(100M/s)(km)(10m)(10m)(m)
-------------------------------------------------------------------------------
1------
2211055550M1000BASE_CX
-------------------------------------------------------------------------------
MA5626(config-if-eth-0/0)#displayportopticstateall
-------------------------------------------------------------------------------
Portbit9umlength50umlength62.5umlengthcopperlengthtype
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
-------------------------------------------------------------------------------
Portbit9umlength50umlength62.5umlengthcopperlengthtype
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):
49.700000
Supplyvoltage(V):
3.300000
TXbiascurrent(mA):
31.290000
TXpower(dBm):
-4.660000
RXpower(dBm):
-2.990000
MA5626(config-if-eth-0/0)#displayportddm-info2
Failure:
Theopticmoduleofportisabsence,cannotdosuchoperation
MA5626(config-if-eth-0/0)#displayportddm-info2
Temperature(C):
58.180000
Supplyvoltage(V):
3.300000
TXbiascurrent(mA):
31.050000
TXpower(dBm):
-4.690000
RXpower(dBm):
-2.940000
MA5626(config-if-eth-0/0)#