杨永康
扫描关注杨永康

5680T配制脚本

杨永康2015-09-03学习笔记 5366

>>User name:root                                                               

>>User password: admin                                                              

                                                                               

MA5600T>enable                                                                 

                                                                               

MA5600T#config

MA5600T(config)#switch language-mode         //语言切换

MA5600T(config)#board confirm 0              //确认单板    display board 0


MA5680T(config)#sysname YL_XS_MA5680T       //修改设备名称

YL_XS_MA5680T(config)#vlan 7 standard       //增加管理VLAN

YL_XS_MA5680T(config)#interface vlanif 7    //进入VLAN接口

YL_XS_MA5680T(config-if-vlanif7)#ip address 61.185.145.166 255.255.255.252    //配制设备地址

YL_XS_MA5680T(config-if-vlanif7)#quit       

YL_XS_MA5680T(config)#vlan 2000 smart       //增加业务VLAN(voip)

YL_XS_MA5680T(config)#vlan 2001 smart       //增加业务VLAN(pppoe)

YL_XS_MA5680T(config)#port vlan 7 0/19 0    //VLAN帮定端口

YL_XS_MA5680T(config)#port vlan 7 0/20 0    //VLAN帮定端口 (上行做链路保护时必须每个端口都帮定)

YL_XS_MA5680T(config)#ip route-static 0.0.0.0 0.0.0.0 61.185.145.165         //配制静态路由


YL_XS_MA5680T(config)#acl 3000                                              //配制访控列表

YL_XS_MA5680T(config-acl-adv-3000)#rule deny ip destination 61.185.145.166 0

YL_XS_MA5680T(config-acl-adv-3000)#rule permit ip source 61.185.145.165 0 destination 61.185.145.166 0

YL_XS_MA5680T(config-acl-adv-3000)#rule permit ip source 61.134.60.32 0.0.0.31 destination 61.185.145.166 0

YL_XS_MA5680T(config-acl-adv-3000)#rule permit ip source 219.144.16.208 0 destination 61.185.145.166 0

YL_XS_MA5680T(config-acl-adv-3000)#quit

YL_XS_MA5680T(config)#packet-filter inbound ip-group 3000 port 0/19/0

YL_XS_MA5680T(config)#packet-filter inbound ip-group 3000 port 0/19/1       //激活访控列表


YL_XS_MA5680T(config)#link-aggregation 0/19 0 0/20 0 egress-ingress              //配制上行链路保护

YL_XS_MA5680T(config)#protect

YL_XS_MA5680T(config-protect)#protect-group first 0/19/0 second 0/19/1 eth workmode timedelay enable

YL_XS_MA5680T(config-protect)#quit


YL_XS_MA5680T(config)#snmp-agent community read public                                   //配制SNMP                        

YL_XS_MA5680T(config)#snmp-agent community write private                                            

YL_XS_MA5680T(config)#snmp-agent sys-info version v2c                                               

YL_XS_MA5680T(config)#snmp-agent target-host trap address 61.134.60.53 securityname private v2c     

YL_XS_MA5680T(config)#snmp-agent trap enable standard

YL_XS_MA5680T(config)#sysman source trap vlanif 7


YL_XS_MA5680T(config)#display ont auto-find all epon


YL_XS_MA5680T(config)#interface epon 0/1

YL_XS_MA5680T(config-if-epon-0/1)#port 0 ont-auto-find enable                 //设置PON口自动发现使能

YL_XS_MA5680T(config-if-epon-0/1)#display ont autofind 0                      //查询MAC地址

YL_XS_MA5680T(config-if-epon-0/1)#ont add 0 001D-6A08-61F6 profile-id 17     //添加ONTprofile-id ONU具体型号定具体模板,目前:榆林的4FEONT使用模板17,必须先将最后面的能力集先加上才能执行此命令使用模版17

YL_XS_MA5680T(config-if-epon-0/1)#display ont info 0 0                       //查询ONU状态是否正常

-----------------------------------------------------------------------------

  //端口       :  0/1/0                                                    

  ONT编号          :  0                                                        

  控制标志         :  激活                                                     

  运行状态         :  在线                                                     

  配置状态         :  正常                                                     

  匹配状态         :  匹配       (必须为匹配match                                                    

  能力集模板ID     :  9                                                         

  认证方式         :  MAC地址认证                                              

  MAC地址          :  001D-6A08-61F6                                           

  描述             :  ONT_NO_DESCRIPTION                                        

  带宽流量模板索引 :  9                                                        

  保证信息速率     :                                                         

  加密开关         :                                                         

  前向纠错码       :  未使能                                                   

 ----------------------------------------------------------------------------


YL_XS_MA5680T(config-if-epon-0/1)#ont port vlan 0 0 fe 2001 1   //配制0#PON口,0#ONU1#fE口,允许透传VLAN2001

YL_XS_MA5680T(config-if-epon-0/1)#ont port native-vlan 0 0 fe 1 vlan 2001  //ONT配制NATIVE VLAN    (当ONU下挂2层交换机时不需要此数据)

YL_XS_MA5680T(config-if-epon-0/1)#quit


YL_XS_MA5680T(config)#service-port vlan 3001 epon 0/1/0 ont 0 multi-service user-vlan untagged rx-cttr 6 tx-cttr 6    //增加PVC(当ONU下直接接用户时配制此数据)


YL_XS_MA5680T(config)#service-port vlan 2001 epon 0/1/0 ont 0 multi-service user-vlan 2001 rx-cttr 6 tx-cttr 6       //(当下挂2层交换机时配制此数据)

onu能力集模板配制

       ont-profile add epon profile-id 18

  Q 或者 q 键退出当前输入操作

用户模式<1-单用户, 2-多用户, 3-级联用户>  [1]:2

>  UNI属性是否关注<1-不关注, 2-关注> [2]:

>  ONT FE 端口列表(fomat: 1,3-5,7 )<S><0-100>  [-]:1-4

>  ONT GE 端口列表(fomat: 1,3-5,7 )<S><0-100>  [-]:

>  POTS 端口数目<0-16> [0]:

>  TDM 端口类型<1-E1> [1]:

>  TDM 端口数目<0-8> [0]:

  添加ONT能力集模板成功

  模板 ID   : 18

  模板 名称 : ont-profile_17



要打通OLTCONU,要给CONU你绑定端口的VLAN配上一个私网地址(和CONU同一网段)具体为:

YL_XS_MA5680T(config)#vlan 2008 smart       //增加一个VLAN

YL_XS_MA5680T(config)#interface vlanif 2008    //进入VLAN接口

YL_XS_MA5680T(config-if-vlanif7)#ip address 10.10.10.66 255.255.255.252    //配制设备地址

YL_XS_MA5680T(config-if-vlanif7)#quit

YL_XS_MA5680T(config)#service-port vlan 2008 epon 0/1/0 ont 0 multi-service user-vlan untagged rx-cttr 6 tx-cttr 6    //增加PVC(当ONU下配置了NATIVE VLAN


YL_XS_MA5680T(config)#service-port vlan 2008 epon 0/1/0 ont 0 multi-service user-vlan 2001 rx-cttr 6 tx-cttr 6       //(当ONU下没有配置NATIVE VLAN

YL_XS_MA5680T(config)#service-port vlan 2008 epon 0/1/0 ont 0 multi-service user-vlan 2001 rx-cttr 6 tx-cttr 6       //(当ONU下没有配置NATIVE VLAN



MA5606T上需要作的有:

MA5606T(config)#vlan 2008 smart       //增加一个VLAN   13058188265  luyandong

MA5606T(config)#interface vlanif 2008    //进入VLAN接口

MA5606T(config-if-vlanif7)#ip address 10.10.10.67 255.255.255.252    //配制设备地址(OLT在同一网段)

MA5606T(config-if-vlanif7)#quit

MA5606T(config)#port vlan 2008 0/1 0    //VLAN帮定端口

MA5606T(config-if-mcu-0/1)#native-vlan 0 vlan 2008     //增加NATIVE VLAN 

dingnose 命令

文章关键词
5680T
OLT
脚本