通信人家园
标题:
烽火OLT常见的开局命令配置
[查看完整版帖子]
[打印本页]
时间:
2025-5-16 14:05
作者:
yangbang0904
标题:
烽火OLT常见的开局命令配置
一、基本配置
[size=12.573px]
[size=12.573px]
bash
[backcolor=rgba(0, 0, 0, 0)]
复制
[backcolor=rgba(0, 0, 0, 0)]
下载
# 进入特权模式
enable
configure 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-VLAN
exit
# 创建业务VLAN(示例:VLAN 2000)
vlan
2000
smartdescription Service-VLAN
exit
三、上联口配置(以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
1
dba-profile-id
1
tcont
1
dba-profile-id
1
gem
add
1
eth tcont
1
mapping-mode vlangem mapping
1
1
vlan
2000
commit
exit
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
1
gem port
1
service-mode alluser-vlan
2000
priority
0
commit
exit
五、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
1
ont-srvprofile-id
1
commit
exit
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
1
exit
六、管理接口配置
[size=12.573px]
[size=12.573px]
bash
[backcolor=rgba(0, 0, 0, 0)]
复制
[backcolor=rgba(0, 0, 0, 0)]
下载
# 创建管理VLAN接口
interface vlan
100
ip
address
192.168
.100.1
255.255
.255.0
# 示例管理IP
exit
# 配置默认路由
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
2000
dhcp-server
1
exit
八、保存配置
[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
通信人家园 (https://www.txrjy.com/)
Powered by C114