烽⽕OLT常⽤命令
OLT上的配置:
HSWA盘IP 10.25.100.17 (可以插在9,10号槽,ip固定)
PUBA盘IP 10.25.100.18 (可以插在业务槽位的任何槽,但是ip固定)
EC4B盘IP 10.25.100.x。(如果槽位为1~8,那么x=槽位号;如果槽位为11~18,那么x=槽位号-2)
ONU IP 分配规则:10.26.槽位号*10+pon⼝号.授权号 (例如1号槽位3号pon⼝,onu id为2,则ip为10.26.13.1)
20 ONU 的mcu ip 为10.100.10.240。1-4号槽位的ip分别为10.100.10.241-244。在Config\device# show ip 可以查看。
1、授权OLT系统单板
Login: GEPON
Password: ***** //登录密码GEPON
User> enable //进⼊enable模式密码GEPON
Password: *****
AN5516# cd service //进⼊service⽬录
AN5516\service# terminal length 0 //设置命令⾏显⽰⾏数 0代表⽆限制
AN5516\service# cd . //返回根⽬录
AN5516# showcard //查看设备板卡状态
AN5516# set card_auth slot 1 type ec4b //授权设备板卡
AN5516# set card_auth slot 2 type ec4b
AN5516# set card_auth slot 3 type ec4b
AN5516# set card_auth slot 4 type ec4b
AN5516# set card_auth slot 18 type puba
AN5516# set card_auth slot 19 type gu6f
AN5516# set card_auth slot 20 type gu6f
AN5516# showcard
AN5516# version //查看系统软、硬件版本
AN5516# hostname ST_CH2_OLT_1_AN5516 //设置hostname
AN5516# set time <1970-2100> <1-12> <1-31> //⼿动设置设备时间
AN5516# set debugip mask //设置debugip
AN5516\service# set snmp trapreceiver add version [v1|v2c] {community }*1 //设置trap接收地址(要选择v2c)
AN5516\service#SHOW SNMP trapreceiver //查看trap接收地址
AN5516\service#set snmp_time_cfg interval <0-86400> serv_addr //设置校时间隔和校时服务器地址
AN5516\service#show snmp_time_cfg //查看校时设置
2、设置端⼝⼯作模式
AN5516# cd device //进⼊device⽬录
AN5516\device# set uplink port 19:1 auto_negotiation disable speed 1000m duplex full //设置上联⼝19:1为强制千兆全双⼯AN5516\device# set uplink port 19:2 auto_negotiation disable speed 1000m duplex full
AN5
516\device# set uplink port 20:1 auto_negotiation disable speed 1000m duplex full
AN5516\device# set uplink port 19:3 interface_mode sgmii //设置上联⼝19:3端⼝模式为SGMII(使⽤百兆电⼝时)
AN5516\device# set uplink port 19:4 interface_mode sgmii
AN5516\device# set uplink port 20:3 interface_mode sgmii
AN5516\device# set uplink port 20:4 interface_mode sgmii
AN5516\device# set control uplink port 20:4 broadcast enable limit 1500 //设置上联⼝的⼴播包抑制为1500(所有端⼝都需要设置)
AN5516\device# set control uplink port 20:4 unknown enable limit 1500 //设置上联⼝的未知包抑制为1500(所有端⼝都需要设置)
AN5516\device# show port //查看端⼝信息
AN5516\device# show slot //查看单盘和主控盘的连接状态
AN5516# cd gponline
AN5516\gponline# set packet_control slot 1 link 1 type broadcast status enable rate 1500 type unknown status enable rate 1500
//设置1号盘1号pon⼝的⼴播和未知包抑制为1500(所有单盘和所有pon端⼝都需要设置)
AN5516\gponline# set packet_control slot 1 link 2 type broadcast status enable rate 1500 type unknown status enable rate 1500
3、配置OLT管理地址
AN5516# cd service
AN5516\service# set manage vlan name manage vid 235 inputport 19:2 tagged //添加系统管理vlan 235 上联端⼝为19:2
AN5516\service# set manage vlan name manage ip 132.107.235.248/24 132.107.235.254 //配置管理vlan ip地址
AN5516\service# show manage vlan all //查看系统管理vlan信息
4、创建OLT局端VLAN
AN5516# cd vlan //进⼊vlan⽬录
AN5516\vlan# set service pppoe vid_begin 3713 vid_end 3713 uplink 19:1 tagged service_type 1 //配置数据业务局端vlan AN5516\vlan# set service ngn vid_begin 421 vid_end 421 uplink 19:3 tagged service_type 3 //配置语⾳业务局端vlan
AN5516\vlan# show service vlan //查看局端vlan
5、绑定ONU
AN5516\vlan# cd gpononu
AN5516\gpononu# show discovery slot 1 link 1 //查看#1槽#1 PON⼝下注册上的ONU
AN5516\gpononu# set whitelist phy_addr add 544b12345678 password null action add slot 1 link 1 onu null type 5006-20 //添加⽩名单并绑定ONU
登陆到线卡
config\pon#show auth (pon⼝号) //查看授权信息
config\pon#show status (pon⼝号) //查看ONU在线信息
6 、OLT QINQ 域设置
AN5516\vlan#create oltqinq_domain pppoe
//创建qinq域模板
AN5516\vlan#set oltqinq_domain pppoe service_num 1 //创建qinq域模板⼀条业务
AN5516\vlan#set oltqinq_domain pppoe 1 uprule 7 1024 4 7 4047 3 //设置qinq域上⾏规则为第⼀层vlan⼤于等于1024⼩于等于4047
AN5516\vlan#set oltqinq_domain pppoe 1 downrule 6 3713 1 //设置qinq域下⾏规则为第⼆层vlan等于3713
AN5516\vlan#set oltqinq_domain pppoe 1 vlan 2 null 0 add 33024 null 3713 //设置qinq域第⼆层vlan动作为添加3713
AN5516\vlan#set pon attach slot 1 pon 1 attach domain pppoe //把qinq域模板pppoe绑定到1号槽位1号pon⼝
ONU上的配置
登录20 ONU:先telnet到20 ONU所在的EC4B,地址为10.25.100.x。如果槽位为1~8,那么x=槽位号;如果槽位为11~18,那么x=槽位号-2。
再从EC4B telnet到20 ONU(10.26.10*槽位号+PON号.授权号)。
⽤户名、密码:GEPON。
(1)宽带部分配置
Config# cd service //进⼊service⽬录
Config\service# terminal length 0 //设置命令⾏显⽰⾏数 0代表⽆限制
Config\service# cd device
Config\device# auto auth card all //授权ONU的各个板卡
Config\device# show auth card all //查看板卡授权状态
1、配置ONU管理VLAN
Config\vlan# add manage vlan manage tag tpid 33024 cos 7 vid 500 ip 132.107.235.1 mask 255.255.255.0 //配置ONU管理IP Config\vlan# show manage vlan //查看管理vlan
Config\vlan# cd device
Config\device# add static route destination 132.107.240.225 gateway 132.107.235.254 //配置到⽹管服务器的静态路由Config\device# show static route //查看路由表
Config\device# show version //查看ONU版本
Config\device# show ip //查看设备ip和mac地址
2、配置ONU上联业务VLAN
Config\vlan# add uplink vlan data start 558 end 558 tag type non-voip //配置ONU上联的数据业务VLAN
Config\vlan# show uplink vlan
3、创建ADSL线路模板
Config\dsl# create adsl line profile 10M //创建端⼝限速模板“10M”
Config\dsl# enter adsl profile 10M //进⼊模板,以进⾏修改
Config\dsl# show current adsl line profile name //查看当前所在的模板
Config\dsl# set line type interleave
Config\dsl# set rate up mode adaptatstart down mode adaptatstart up rate 640 down rate 10240
Config\dsl# set adsl snrm up 6.0 down 6.0
Config\dsl# set adsl interleave delay up 16 d
own 16
Config\dsl# set adsl min inp up 1 down 1
Config\dsl# set bit swap up enable down enable
Config\dsl# set powermode l0mode l0time 300 l2time 30 l2atprt 3 l2Rate 32
Config\dsl# show adsl line profile 10M //查看模板
Config\dsl# show adsl line attaching slot 3 port 1 - 32 //将模板绑定到ONU的#3槽位所有端⼝
4、配置并绑定PVC模板
Config\dsl# create pvc profile ADSL10M //创建pvc模板
Config\dsl# enter pvc profile ADSL10M //进⼊模板,以进⾏修改
Config\dsl# show current pvc profile ADSL10M
Config\dsl# set vpi 8 vci 81 vpi 8 vci 46 //配置PVC,⽤⼏个就配⼏个(最多可配置8个)
negotiation autoConfig\dsl# show pvc profile //查看PVC模板
Config\dsl# attach adsl line profile 10M slot 3 port 1-32 //绑定ADSL线路模板到ONU的#3槽位所有端⼝
Config\dsl# attach adsl line profile 10M slot 4 port 1-32
Config\dsl# attach pvc profile ADSL10M slot 3 port 1-32 //绑定PVC线路模板到ONU的#3槽位所有端⼝
Config\dsl# attach pvc profile ADSL10M slot 4 port 1-32
Config\dsl# set slot 3 port 1-32 enable //打开ADSL端⼝
Config\dsl# set slot 4 port 1-32 enable
5、配置端⼝业务VLAN
Config\vlan# batch add unicast tag cvlan begin 3024 step 1 cos 0 slot 1 port 1-32 pvc 1 //批量配置端⼝
cvlan,起始CVLAN为3024,逐⼀绑定到#1槽所有端⼝ Config\vlan# show running-config vlan //查看VLAN配置数据
(2)窄带部分配置
1、上联业务VLAN的配置vlan
Config# cd vlan
Config\vlan# add uplink vlan ngn start 421 end 421 tag type voip //配置ONU上联的语⾳业务VLAN
2、配置NGN 信令IP地址,媒体ip地址
Config# cd ngn //进⼊ngn⽬录
Config\ngn# set ngn signal ip 10.50.116.4 mask 255.255.255.128 gateway 10.50.116.3 //配置信令IP
Config\ngn# set ngn rtp ip 10.50.116.4 mask 255.255.255.128 gateway 10.50.116.3 //配置RTP IP
Config\ngn# set ngn rtp servicename ngn svlan tpid 33024 cos 7 vid 421 //配置RTP流VLAN
Config\ngn# set ngn signal servicename ngn svlan tpid 33024 cos 7 vid 421 //配置信令VLAN
Config\ngn# set ephemeral name first RTP/00 start 0 end 999 step 1 fill on //配置RTP名称(设置完以后再进⾏查看是否符合规则)
Config\ngn# set username slot 2 port 1 first PON000 start 0 number 64
//配置端⼝⽤户名
(这样设置以后端⼝⽤户名为PON000,PON0001,PON0002-PON00064,设置完以后,要show username查看以防错误)Config\ngn# set ngn_uplink_interface name ngn protocol_type h.248 mgc 1 192.168.3.3 2944 //配置MGC地址
Config\ngn# set ngn_keepalive servicename ngn aliveinterval 30 alivetimes 3 //配置⼼跳参数
Config\ngn# show ngn ip
Config\ngn# show ngn vlan
Config\ngn# show ephemeral name_rule //查看RTP格式
Config\ngn# show username allport //查看所有端⼝的⽤户名
3、DSP模板配置、绑定
Config\ngn# create profile zte-ss //创建DSP模板
Config\ngn# show profile all //查看所有DSP模板
Config\ngn# attach profile zte-ss to slot 1 port 1 usernumber 64 //绑定端⼝到模板
4、端⼝使能、注册
Config\ngn# set pots_reg enable slot 2 port 1 number 2
Config\ngn# show pots_reg slot 2 port 1 number 2
Config\ngn# register port all //注册所有⽤户
Config\ngn# show mgclist //查看MG注册状态
Config\ngn# show user info slot 2 port 1-32 //查看#2槽的端⼝注册状态
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论