通信人家园

 找回密码
 注册

只需一步,快速开始

短信验证,便捷登录

搜索

军衔等级:

  新兵

注册:2021-1-14
跳转到指定楼层
1#
发表于 2025-5-16 14:05:52 |只看该作者 |倒序浏览
一、基本配置[size=12.573px][size=12.573px]bash
[backcolor=rgba(0, 0, 0, 0)]

复制

[backcolor=rgba(0, 0, 0, 0)]

下载






# 进入特权模式enableconfigure terminal# 设置OLT名称hostname FIRE-OLT-01# 配置时区clock timezone CST 8  # 东八区# 配置NTP服务器ntp server 192.168.1.100ntp enable# 保存配置write

二、VLAN配置[size=12.573px][size=12.573px]bash
[backcolor=rgba(0, 0, 0, 0)]

复制

[backcolor=rgba(0, 0, 0, 0)]

下载






# 创建管理VLAN(示例:VLAN 100)vlan 100 smartdescription Management-VLANexit# 创建业务VLAN(示例:VLAN 2000)vlan 2000 smartdescription Service-VLANexit

三、上联口配置(以GEI-1/1为例)[size=12.573px][size=12.573px]bash
[backcolor=rgba(0, 0, 0, 0)]

复制

[backcolor=rgba(0, 0, 0, 0)]

下载






# 进入上联口配置模式interface gei_1/1# 配置端口为Trunk模式switchport mode trunk# 允许管理VLAN和业务VLAN通过switchport trunk allowed vlan add 100,2000# 启用端口no shutdown# 退出接口模式exit

四、业务模板配置1. DBA模板(动态带宽分配)[size=12.573px][size=12.573px]bash
[backcolor=rgba(0, 0, 0, 0)]

复制

[backcolor=rgba(0, 0, 0, 0)]

下载






dba-profile add profile-id 1 type3 assure 102400 max 1024000  # 示例保证带宽100M,最大1G
2. 线路模板(绑定PON口和DBA模板)[size=12.573px][size=12.573px]bash
[backcolor=rgba(0, 0, 0, 0)]

复制

[backcolor=rgba(0, 0, 0, 0)]

下载






ont-lineprofile gpon profile-id 1dba-profile-id 1tcont 1 dba-profile-id 1gem add 1 eth tcont 1mapping-mode vlangem mapping 1 1 vlan 2000commitexit
3. 业务流模板[size=12.573px][size=12.573px]bash
[backcolor=rgba(0, 0, 0, 0)]

复制

[backcolor=rgba(0, 0, 0, 0)]

下载






ont-srvprofile gpon profile-id 1gem port 1service-mode alluser-vlan 2000priority 0commitexit

五、ONU注册1. 添加ONU到PON口(以GPON 0/1为例)[size=12.573px][size=12.573px]bash
[backcolor=rgba(0, 0, 0, 0)]

复制

[backcolor=rgba(0, 0, 0, 0)]

下载






interface gpon-olt_0/1ont add 1 sn-auth 123456789ABCDEF0  # 使用SN认证(或改为password-auth)ont-lineprofile-id 1ont-srvprofile-id 1commitexit
2. 配置ONU业务端口(如ETH1)[size=12.573px][size=12.573px]bash
[backcolor=rgba(0, 0, 0, 0)]

复制

[backcolor=rgba(0, 0, 0, 0)]

下载






interface gpon-onu_0/1:1service-port 1 vlan 2000 gem 1exit

六、管理接口配置[size=12.573px][size=12.573px]bash
[backcolor=rgba(0, 0, 0, 0)]

复制

[backcolor=rgba(0, 0, 0, 0)]

下载






# 创建管理VLAN接口interface vlan 100ip address 192.168.100.1 255.255.255.0  # 示例管理IPexit# 配置默认路由ip route-static 0.0.0.0 0.0.0.0 192.168.100.254  # 示例网关

七、PPPoE/DHCP配置(可选)[size=12.573px][size=12.573px]bash
[backcolor=rgba(0, 0, 0, 0)]

复制

[backcolor=rgba(0, 0, 0, 0)]

下载






# 启用DHCP Relay(假设DHCP服务器IP为192.168.200.2)dhcp-server 1 ip 192.168.200.2interface vlan 2000dhcp-server 1exit

八、保存配置[size=12.573px][size=12.573px]bash
[backcolor=rgba(0, 0, 0, 0)]

复制

[backcolor=rgba(0, 0, 0, 0)]

下载






write

九、验证命令[size=12.573px][size=12.573px]bash
[backcolor=rgba(0, 0, 0, 0)]

复制

[backcolor=rgba(0, 0, 0, 0)]

下载






# 查看PON口状态show interface gpon-olt_0/1# 查看ONU注册状态show ont info 0/1 1# 检查光功率show ont optical-info 0/1 1# 查看业务VLAN状态show vlan 2000

举报本楼

您需要登录后才可以回帖 登录 | 注册 |

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

GMT+8, 2025-5-18 14:41 , Processed in 0.266505 second(s), 17 queries , Gzip On.

Copyright © 1999-2023 C114 All Rights Reserved

Discuz Licensed

回顶部