华为ma5680t OLT开局配置

更新时间:2024-07-11 02:10:01 阅读量: 综合文库 文档下载

说明:文章内容仅供预览,部分内容可能不全。下载后的文档,内容与下面显示的完全一致。下载之前请确认下面内容是否您想要的,是否完整无缺。

第一步:添加一个用户

MA5680T>enable //打开特权EXEC MA5680T#config //进入终端配置模式

MA5680T(config)#sysname SJZ-HW-OLT-1 //设备命名 (一般为开局配置) MA5680T (config) #terminal user name //添加操作用户huawei User Name(length<6,15>):huawei //设置用户名 User Password(length<6,15>):huawei123 //要求输入密码

Confirm Password(length<6,15>): huawei123 //要求再次确认一遍密码 User profile name(<=15 chars)[root]:root //输入用户管理级别 User's Level:

1. Common User 2. Operator 3. Administrator:3 //选择用户权限

Permitted Reenter Number(0--4):4 //设置此用户名可重复登录次数,一般选择4 User's Appended Info(<=30 chars):HuaweiAdm //添加描述,可不设置。 Adding user succeeds

Repeat this operation? (y/n)[n]:(是否重复操作,N)

第二步:创建DBA(Dynamically Bandwidth Assignment动态带宽分配)模版

类型(type)分为5种,分别是type1,type2,type3,type4,type5.其中: //type1 为固定带宽模式; //type2 为保证带宽模式;

//type3 为保证带宽的同时设置最大带宽值; //type4 为仅设定最大带宽模式;

//type5 为3种模式的综合,即设置最大带宽,在保证带宽的同时采用固定带宽模式。

下面创建两个DBA模版

dba-profile add profile-id 10 type4 max 307200 (保证300M带宽) dba-profile add profile-id 512 type2 assure 10240(保证10M带宽)

第三步:创建链路模版,OUN模版

MA5680T(config)# ont-lineprofile gpon profile-id 10 //建链路模版,并且绑定DBA模版10 tcont 0 dba-profile-id 512 绑定t-cont与DBA模版

tcont 1 dba-profile-id 10 TCONT 1 绑定DBA为10模版 tcont 2 dba-profile-id 10 tcont 3 dba-profile-id 10 tcont 4 dba-profile-id 10

gem add 0 eth tcont 0 建立GEM port,绑定相应的TCONT通道 gem add 1 eth tcont 1 //gem port 1 绑定TCONT 1 gem add 2 eth tcont 1 //gem port 2 绑定TCONT 1 gem add 3 eth tcont 1 gem add 4 eth tcont 1

gem mapping 0 0 vlan 888 建立GEM Port端口映射,这里使用索引号与vlan映射。 gem mapping 1 0 vlan 101 //gemport 1 的第0个索引号与vlan101映射 gem mapping 2 0 vlan 102 // gemport 2 的第0个索引号与vlan102映射 gem mapping 3 0 vlan 103 gem mapping 4 0 vlan 104 commit (提交,保存)

第四步:创建业务模版

ont-srvprofile gpon profile-id 10

ont-port pots 2 eth 4 ONT的能力,支持4个eth和2个pots口 (pots:模拟电话业务) commit

//ont-srvprofile gpon profile-id 20 (个人理解是多余的,在这里可以不用配) //ont-port pots 2 eth 4 ONT的能力,支持4个eth和2个pots口 //commit

第五步:创建oun业务

interface gpon 0/1

port 0 ont-auto-find enable port 1 ont-auto-find enable port 2 ont-auto-find enable port 3 ont-auto-find enable port 4 ont-auto-find enable port 5 ont-auto-find enable port 6 ont-auto-find enable port 7 ont-auto-find enable

查看自动发现的oun,取其SN码(MA5680T(config-if-gpon-0/1)#display ont autofind 0 )

ont add 0 0 sn-auth 0000000000000000 snmp ont-lineprofile-id 10

ont ipconfig 0 0(前面的0表示gpon0/1/0,后面的0表示ont 的id:0) static ip-address 172.17.0.1 mask 255.255.0.0 vlan 888 priority 0 gateway 172.17.0.253 pri-dns 172.17.0.254 slave-dns 172.17.0.253

第六步:创建业务虚端口

huawei(config)# service-port vlan 1001 epon 0/1/0 ont 0(0是对应光猫的编号)

gemport 1 (1是对应vlan 101 102 885的编号) multi-service user-vlan 101 \\\\配置网

service-port 0 vlan 888 gpon 0/1/0 ont 8 gemport 0 multi-service user-vlan 888 tag-transform translate

service-port 1 vlan 1001 gpon 0/1/0 ont 8 gemport 1 multi-service user-vlan 101 tag-transform translate-and-add inner-vlan 101 inner-priority 0

service-port 2 vlan 888 gpon 0/1/0 ont 0 gemport 0 multi-service user-vlan 888 tag-transform translate

service-port 3 vlan 888 gpon 0/1/0 ont 1 gemport 0 multi-service user-vlan 888 tag-transform translate

service-port 4 vlan 888 gpon 0/1/0 ont 2 gemport 0 multi-service user-vlan 888 tag-transform translate

service-port 5 vlan 888 gpon 0/1/0 ont 3 gemport 0 multi-service user-vlan 888 tag-transform translate

service-port 6 vlan 888 gpon 0/1/0 ont 4 gemport 0 multi-service user-vlan 888 tag-transform translate

service-port 7 vlan 888 gpon 0/1/0 ont 5 gemport 0 multi-service user-vlan 888 tag-transform translate

service-port 8 vlan 888 gpon 0/1/0 ont 6 gemport 0 multi-service user-vlan 888 tag-transform translate

service-port 9 vlan 888 gpon 0/1/0 ont 7 gemport 0 multi-service user-vlan 888 tag-transform translate

service-port 10 vlan 888 gpon 0/1/1 ont 0 gemport 0 multi-service user-vlan 888 tag-transform translate

service-port 11 vlan 888 gpon 0/1/1 ont 1 gemport 0 multi-service user-vlan 888 tag-transform translate

service-port 12 vlan 888 gpon 0/1/1 ont 2 gemport 0 multi-service user-vlan 888 tag-transform translate

service-port 13 vlan 888 gpon 0/1/1 ont 3 gemport 0 multi-service user-vlan 888 tag-transform translate

service-port 14 vlan 888 gpon 0/1/1 ont 4 gemport 0 multi-service user-vlan 888 tag-transform translate

service-port 15 vlan 888 gpon 0/1/1 ont 5 gemport 0 multi-service user-vlan 888 tag-transform translate

service-port 16 vlan 888 gpon 0/1/1 ont 6 gemport 0 multi-service user-vlan 888 tag-transform translate

service-port 17 vlan 888 gpon 0/1/1 ont 7 gemport 0 multi-service user-vlan 888 tag-transform translate

service-port 18 vlan 1001 gpon 0/1/0 ont 1 gemport 1 multi-service user-vlan 101 tag-transform translate-and-add inner-vlan 102 inner-priority 0

service-port 19 vlan 1001 gpon 0/1/0 ont 2 gemport 1 multi-service user-vlan 101 tag-transform translate-and-add inner-vlan 103 inner-priority 0

service-port 20 vlan 1001 gpon 0/1/0 ont 3 gemport 1 multi-service user-vlan 101 tag-transform translate-and-add inner-vlan 104 inner-priority 0

service-port 21 vlan 1001 gpon 0/1/0 ont 4 gemport 1 multi-service user-vlan 101 tag-transform translate-and-add inner-vlan 105 inner-priority 0

service-port 22 vlan 1001 gpon 0/1/0 ont 5 gemport 1 multi-service user-vlan 101 tag-transform translate-and-add inner-vlan 106 inner-priority 0

service-port 23 vlan 1001 gpon 0/1/0 ont 6 gemport 1 multi-service user-vlan 101 tag-transform translate-and-add inner-vlan 107 inner-priority 0

service-port 24 vlan 1001 gpon 0/1/0 ont 7 gemport 1 multi-service user-vlan 101 tag-transform translate-and-add inner-vlan 108 inner-priority 0

service-port 25 vlan 1001 gpon 0/1/1 ont 0 gemport 1 multi-service user-vlan 101 tag-transform translate-and-add inner-vlan 109 inner-priority 0

service-port 26 vlan 1001 gpon 0/1/1 ont 1 gemport 1 multi-service user-vlan 101 tag-transform translate-and-add inner-vlan 110 inner-priority 0

service-port 27 vlan 1001 gpon 0/1/1 ont 2 gemport 1 multi-service user-vlan 101 tag-transform translate-and-add inner-vlan 111 inner-priority 0

service-port 28 vlan 1001 gpon 0/1/1 ont 3 gemport 1 multi-service user-vlan 101 tag-transform translate-and-add inner-vlan 112 inner-priority 0

service-port 29 vlan 1001 gpon 0/1/1 ont 4 gemport 1 multi-service user-vlan 101 tag-transform translate-and-add inner-vlan 113 inner-priority 0

service-port 30 vlan 1001 gpon 0/1/1 ont 5 gemport 1 multi-service user-vlan 101 tag-transform translate-and-add inner-vlan 114 inner-priority 0

service-port 31 vlan 1001 gpon 0/1/1 ont 6 gemport 1 multi-service user-vlan 101 tag-transform translate-and-add inner-vlan 115 inner-priority 0

service-port 32 vlan 1001 gpon 0/1/1 ont 7 gemport 1 multi-service user-vlan 101 tag-transform translate-and-add inner-vlan 116 inner-priority 0

service-port 33 vlan 888 gpon 0/1/1 ont 8 gemport 0 multi-service user-vlan 888 tag-transform translate

service-port 34 vlan 1001 gpon 0/1/1 ont 8 gemport 1 multi-service user-vlan 101 tag-transform translate-and-add inner-vlan 117 inner-priority 0

service-port 35 vlan 1015 gpon 0/1/0 ont 0 gemport 3 multi-service user-vlan 103 tag-transform translate

service-port 36 vlan 1015 gpon 0/1/0 ont 1 gemport 3 multi-service user-vlan 103 tag-transform translate

service-port 37 vlan 1015 gpon 0/1/0 ont 2 gemport 3 multi-service user-vlan 103 tag-transform translate

service-port 38 vlan 1015 gpon 0/1/0 ont 3 gemport 3 multi-service user-vlan 103 tag-transform translate

service-port 39 vlan 1015 gpon 0/1/0 ont 4 gemport 3 multi-service user-vlan 103 tag-transform translate

service-port 40 vlan 1015 gpon 0/1/0 ont 5 gemport 3 multi-service user-vlan 103 tag-transform translate

service-port 41 vlan 1015 gpon 0/1/0 ont 6 gemport 3 multi-service user-vlan 103 tag-transform translate

service-port 42 vlan 1015 gpon 0/1/0 ont 7 gemport 3 multi-service user-vlan 103 tag-transform translate

service-port 43 vlan 1015 gpon 0/1/0 ont 8 gemport 3 multi-service user-vlan 103 tag-transform translate

service-port 44 vlan 1015 gpon 0/1/1 ont 0 gemport 3 multi-service user-vlan 103 tag-transform translate

service-port 45 vlan 1015 gpon 0/1/1 ont 1 gemport 3 multi-service user-vlan 103 tag-transform translate

service-port 46 vlan 1015 gpon 0/1/1 ont 2 gemport 3 multi-service user-vlan 103 tag-transform translate

service-port 47 vlan 1015 gpon 0/1/1 ont 3 gemport 3 multi-service user-vlan 103 tag-transform translate

service-port 48 vlan 1015 gpon 0/1/1 ont 4 gemport 3 multi-service user-vlan 103 tag-transform translate

service-port 49 vlan 1015 gpon 0/1/1 ont 5 gemport 3 multi-service user-vlan 103 tag-transform translate

service-port 50 vlan 1015 gpon 0/1/1 ont 6 gemport 3 multi-service user-vlan 103 tag-transform translate

service-port 51 vlan 1015 gpon 0/1/1 ont 7 gemport 3 multi-service user-vlan 103 tag-transform translate

service-port 52 vlan 1015 gpon 0/1/1 ont 8 gemport 3 multi-service user-vlan 103 tag-transform translate

service-port 53 vlan 805 gpon 0/1/0 ont 0 gemport 2 multi-service user-vlan 102 tag-transform translate

service-port 54 vlan 806 gpon 0/1/0 ont 1 gemport 2 multi-service user-vlan 102 tag-transform translate

service-port 55 vlan 807 gpon 0/1/0 ont 2 gemport 2 multi-service user-vlan 102 tag-transform translate

service-port 56 vlan 808 gpon 0/1/0 ont 3 gemport 2 multi-service user-vlan 102 tag-transform translate

service-port 57 vlan 809 gpon 0/1/0 ont 4 gemport 2 multi-service user-vlan 102 tag-transform translate

service-port 58 vlan 810 gpon 0/1/0 ont 5 gemport 2 multi-service user-vlan 102 tag-transform translate

service-port 59 vlan 811 gpon 0/1/0 ont 6 gemport 2 multi-service user-vlan 102 tag-transform translate

service-port 60 vlan 812 gpon 0/1/0 ont 7 gemport 2 multi-service user-vlan 102 tag-transform translate

service-port 61 vlan 813 gpon 0/1/0 ont 8 gemport 2 multi-service user-vlan 102 tag-transform translate

service-port 62 vlan 814 gpon 0/1/1 ont 0 gemport 2 multi-service user-vlan 102 tag-transform translate

service-port 63 vlan 815 gpon 0/1/1 ont 1 gemport 2 multi-service user-vlan 102 tag-transform translate

service-port 64 vlan 816 gpon 0/1/1 ont 2 gemport 2 multi-service user-vlan 102 tag-transform translate

service-port 65 vlan 817 gpon 0/1/1 ont 3 gemport 2 multi-service user-vlan 102 tag-transform translate

service-port 66 vlan 818 gpon 0/1/1 ont 4 gemport 2 multi-service user-vlan 102 tag-transform translate

service-port 67 vlan 819 gpon 0/1/1 ont 5 gemport 2 multi-service user-vlan 102 tag-transform translate

service-port 68 vlan 820 gpon 0/1/1 ont 6 gemport 2 multi-service user-vlan 102 tag-transform translate

service-port 69 vlan 805 gpon 0/1/1 ont 7 gemport 2 multi-service user-vlan 102 tag-transform translate

service-port 70 vlan 806 gpon 0/1/1 ont 8 gemport 2 multi-service user-vlan 102 tag-transform translate

管vlan 100业务虚通道,ontid为0

service-port 66 vlan 818 gpon 0/1/1 ont 4 gemport 2 multi-service user-vlan 102 tag-transform translate

service-port 67 vlan 819 gpon 0/1/1 ont 5 gemport 2 multi-service user-vlan 102 tag-transform translate

service-port 68 vlan 820 gpon 0/1/1 ont 6 gemport 2 multi-service user-vlan 102 tag-transform translate

service-port 69 vlan 805 gpon 0/1/1 ont 7 gemport 2 multi-service user-vlan 102 tag-transform translate

service-port 70 vlan 806 gpon 0/1/1 ont 8 gemport 2 multi-service user-vlan 102 tag-transform translate

管vlan 100业务虚通道,ontid为0

本文来源:https://www.bwwdw.com/article/q85.html

Top