通信人家园

 找回密码
 注册

只需一步,快速开始

短信验证,便捷登录

搜索

军衔等级:

  新兵

注册:2019-12-13
跳转到指定楼层
1#
发表于 2022-6-17 15:20:05 |只看该作者 |倒序浏览
文章来源:裕普网络
南充裕普网络教你如何将华为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 658 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 658 profile-id 1


第三步,配置电口0/1/1为中继,使用service-port命令建立中继端口。将0/1/2-0/1/4配置为VLAN658的access口。将0/1/7-0/1/8配置为VLAN2的access口。
1、创建0/1/1业务虚端口为trunk中继,其中对应user-vlan为658,S-VLAN为658,业务流模板为6。另一个对应user-vlan为2,S-VLAN为2,业务流模板为6。
huawei(config)#service-port vlan 658 eth 0/1/1 multi-service user-vlan 658 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配置为VLAN658的access口。
huawei(config)#service-port vlan 658 eth 0/1/2 multi-service user-vlan untagged rx-cttr 6 tx-cttr 6
huawei(config)#service-port vlan 658 eth 0/1/3 multi-service user-vlan untagged rx-cttr 6 tx-cttr 6
huawei(config)#service-port vlan 658 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 658 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 658 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 658 eth 0/1/1 multi-service user-vlan 658 inbound
traffic-table index 6 outbound traffic-table index 6
service-port 2 vlan 658 eth 0/1/2 multi-service user-vlan 658 inbound
traffic-table index 6 outbound traffic-table index 6
service-port 3 vlan 658 eth 0/1/3 multi-service user-vlan 658 inbound
traffic-table index 6 outbound traffic-table index 6
service-port 4 vlan 658 eth 0/1/4 multi-service user-vlan 658 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 658 eth 0/1/2 multi-service user-vlan untagged inbound
traffic-table index 6 outbound traffic-table index 6
service-port 10 vlan 658 eth 0/1/3 multi-service user-vlan untagged inbound
traffic-table index 6 outbound traffic-table index 6
service-port 11 vlan 658 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.83 255.255.255.0
#                                   
[meth]                              
  <meth0>                           
interface meth0                     
ip address 10.11.104.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

举报本楼

本帖有 1 个回帖,您需要登录后才能浏览 登录 | 注册
您需要登录后才可以回帖 登录 | 注册 |

手机版|C114 ( 沪ICP备12002291号-1 )|联系我们 |网站地图  

GMT+8, 2024-5-7 21:56 , Processed in 0.251061 second(s), 15 queries , Gzip On.

Copyright © 1999-2023 C114 All Rights Reserved

Discuz Licensed

回顶部