技术支持

了解最新技术动态及行业资讯

当前位置:首页>技术支持
全部 135

把华为MA5626配置成普通三层交换机使用

时间:2025-12-25   访问量:1040

把华为MA5626配置成普通三层交换机使用 

内江市中川网维教你如何将华为MA5626配置Vlan中继变成普通三层交换机使用,简单分为三步。MA5626是华为技术有限公司推出的远端光接入单元。MA5626支持FTTB、FTTC组网应用,为小区用户提供语音、数据和视频业务接入。这就是它与普通交换机的区别。

第一步,清除MA5626交换机配置。命令如下

用户名:root

密码:mduadmin  (这是默认的用户名和密码)

登陆MA5626后输入清除数据命令

enable ---回车 

erase flash data ---回车 

Y ---回车 

然后输入重启命令

reboot system---回车 

Y---回车

第二步,创建VLAN和VLAN业务模板,将我们所创建的VLAN加入VLAN业务模板中。

1、分别创建两个VLAN

huawei(config)#vlan 2 smart

huawei(config)#vlan 88 smart

2、创建VLAN业务模板

huawei(config)#vlan service-profile profile-id 1

huawei(config-vlan-srvprof-1)#forwarding vlan-mac     //VLAN转发模式:VLAN+MAC地址(vlan-mac)

huawei(config-vlan-srvprof-1)#bpdu tunnel enable      //打开二层网桥协议报文透传开关

huawei(config-vlan-srvprof-1)#user-bridging enable      //打开二层网桥协议开关

huawei(config-vlan-srvprof-1)#commit     //使用commit命令进行提交才能使配置生效

huawei(config-vlan-srvprof-1)#quit

3、将绑定VLAN与VLAN业务模板

huawei(config)#vlan bind service-profile 2 profile-id 1      //使用vlan bind service-profile命令将配置完成的VLAN业务模板与VLAN进行绑定

huawei(config)#vlan bind service-profile 88 profile-id 1



第三步,配置电口0/1/1为中继,使用service-port命令建立中继端口。将0/1/2-0/1/4配置为VLAN88的access口。将0/1/7-0/1/8配置为VLAN2的access口。

1、创建0/1/1业务虚端口为trunk中继,其中对应user-vlan为88,S-VLAN为88,业务流模板为6。另一个对应user-vlan为2,S-VLAN为2,业务流模板为6。

huawei(config)#service-port vlan 88 eth 0/1/1 multi-service user-vlan 88 rx-cttr 6 tx-cttr 6

huawei(config)#service-port vlan 2 eth 0/1/1 multi-service user-vlan 2 rx-cttr 6 tx-cttr 6

2、将0/1/2-0/1/4配置为VLAN88的access口。

huawei(config)#service-port vlan 88 eth 0/1/2 multi-service user-vlan untagged rx-cttr 6 tx-cttr 6

huawei(config)#service-port vlan 88 eth 0/1/3 multi-service user-vlan untagged rx-cttr 6 tx-cttr 6

huawei(config)#service-port vlan 88 eth 0/1/4 multi-service user-vlan untagged rx-cttr 6 tx-cttr 6

3、将0/1/7-0/1/8配置为VLAN2的access口。

huawei(config)#service-port vlan 2 eth 0/1/7 multi-service user-vlan untagged rx-cttr 6 tx-cttr 6

huawei(config)#service-port vlan 2 eth 0/1/8 multi-service user-vlan untagged rx-cttr 6 tx-cttr 6



完整配置如下


MA5626(config)#


MA5626(config)#display current-configuration

{ <cr>|port<K>|section<K>|service-port<K>|simple<K>||<K> }:


  Command:

          display current-configuration

[MA5626V800R312: 2300]

#

[device-config]

  <device-config>

port port-index 0/0/1 port-type GPON-PORT

#

[public-config]

  <public-config>

snmp-agent local-engineid 800007DB0304B0E7C38D1606

#

[vlan-config]

  <vlan-config>

vlan 2 smart

vlan 20 smart

vlan 88 smart

#

[vlan-srvprof]

  <vlan-srvprof>

vlan service-profile profile-id 1 profile-name "srvprof-1"

  bpdu tunnel enable

  user-bridging enable

  commit

vlan bind service-profile 2 profile-id 1

vlan bind service-profile 88 profile-id 1

#                                   

[eth]                              

  <eth-0/0>                        

interface eth 0/0                  

network-role 1 cascade            

#                                   

[gponnni]                           

  <gponnni-0/0/1>                  

interface gponnni 0/0/1            

password "%5L3_.^M^.9I<V@WN#JI1!!B#A8&)VAB']]F;U$19'2_1!!B#A8&)VAB']]F;U$19'

2_1!!%"                             

loid "%VL*&O__.3U3;RaK'0`"NPQ!!,DWUN(I=,'UZ_`@1RI<=WQ!!%"

checkcode "%L9;7+FT2-[LX3NU/Va@a]Q!!%"

#                                   

[bbs-config]                        

  <bbs-config>                     

service-port 0 vlan 2 eth 0/1/1 multi-service user-vlan 2 inbound traffic-table index 6 outbound traffic-table index 6

service-port 1 vlan 88 eth 0/1/1 multi-service user-vlan 88 inbound

traffic-table index 6 outbound traffic-table index 6

service-port 2 vlan 88 eth 0/1/2 multi-service user-vlan 88 inbound

traffic-table index 6 outbound traffic-table index 6

service-port 3 vlan 88 eth 0/1/3 multi-service user-vlan 88 inbound

traffic-table index 6 outbound traffic-table index 6

service-port 4 vlan 88 eth 0/1/4 multi-service user-vlan 88 inbound

traffic-table index 6 outbound traffic-table index 6

service-port 5 vlan 2 eth 0/1/7 multi-service user-vlan 2 inbound traffic-table index 6 outbound traffic-table index 6

service-port 6 vlan 2 eth 0/1/8 multi-service user-vlan 2 inbound traffic-table index 6 outbound traffic-table index 6

service-port 7 vlan 2 eth 0/1/8 multi-service user-vlan untagged inbound

traffic-table index 6 outbound traffic-table index 6

service-port 8 vlan 2 eth 0/1/7 multi-service user-vlan untagged inbound

traffic-table index 6 outbound traffic-table index 6

service-port 9 vlan 88 eth 0/1/2 multi-service user-vlan untagged inbound

traffic-table index 6 outbound traffic-table index 6

service-port 10 vlan 88 eth 0/1/3 multi-service user-vlan untagged inbound

traffic-table index 6 outbound traffic-table index 6

service-port 11 vlan 88 eth 0/1/4 multi-service u ser-vlan untagged inbound

traffic-table index 6 outbound traffic-table index 6

service-port 12 vlan 20 eth 0/1/1 multi-service user-vlan 20 inbound

traffic-table index 6 outbound traffic-table index 6

#                                   

[abs-config]                        

  <abs-config>                     

config                             

#                                   

[prevlanif]                        

  <prevlanif>                       

interface vlanif20                 

#                                   

[vlanif]                           

  <vlanif20>                        

interface vlanif20                  

ip address 192.168.1.88 255.255.255.0

#                                   

[meth]                              

  <meth0>                           

interface meth0                     

ip address 192.168.0.2 255.255.255.0

#                                   

[null]                              

  <null0>                           

interface null0                     

#                                   

[aaa]                              

  <aaa>                             

aaa                                 

authentication-scheme "default"   

#                                 

authorization-scheme "default"     

#                                 

accounting-scheme "default"        

#                                 

domain "default"                  

#                                 

local-user "admin" password ""JZU.+!OI+_=EA>*VG'J!!!"

local-user "admin" privilege level 2

#                                 

return


上一篇:DHCP-Options号详细列表IPTV常用

下一篇:Excel中的VBA代码的密码破解与解除保护方法详解操作

  • 友情链接:
  • 百度 DeepSeek 百度中英在线翻译 阿里云 腾讯云 西部数码 贝锐花生壳 IP查询 360在线翻译 360搜索 搜狗搜索 宽带测速 MAC厂商查询 mikrotik 容器镜像 Windows/office/2下载 PbootCMS Windows/office/开发工具下载 Windows/office下载 中川网维 bilibili