enable #进入特权模式
config #进入配置模式
vlan 100 smart #划分业务VLAN
port vlan 100 0/9 0 #配置上行口0/9 0 透传VLAN100
interface Vlanif100
ip address 192.168.100.4 255.255.255.0 #配置管理IP地址
quit
ip route-static 0.0.0.0 0.0.0.0 192.168.100.254 #配置缺省路由
dba-profile add profile-id 10 profile-name “ftth_dba” type3 assure 8192 max 20480 #定义dba模板名称,类型为TYPE3,带宽为8M-20M,绑定到本地ONT
ont-srvprofile epon profile-id 1 profile-name “ftth” #定义ONT业务模板名称为ftth
ont-port pots adaptive 32 eth adaptive 8
commit
ont-lineprofile epon profile-id 1 profile-name “ftth” #定义ONT线路模板索引为“1”
llid dba-profile-id 10 #绑定DBA模板索引“10”
commit
quit
interface epon 0/1 #进入接口模式,增加注册ONT(备注:0/1/X)
ont add 2 3 mac-auth DC99-1494-6551 oam ont-lineprofile-id 1 ont-srvprofile-id 1 #ONT添加ONUID为“3”,对应MAC地址,绑定ONT线路模板、业务模板
ont port native-vlan 2 3 eth 1 vlan 100 #配置ONU接口vlan信息
ont port native-vlan 2 3 eth 2 vlan 1000
ont port native-vlan 2 3 eth 3 vlan 1000
ont port native-vlan 2 3 eth 4 vlan 1000
quit
service-port 48 vlan 100 epon 0/1/2 ont 3 multi-service user-vlan 100 tag-transform transparent inbound traffic-table index 6 outbound traffic-table index 6 #增加宽带业务流
service-port 49 vlan 1000 epon 0/1/2 ont 3 multi-service user-vlan 1000 tag-transform transparent inbound traffic-table index 6 outbound traffic-table index 6
service-port 50 vlan 254 epon 0/1/2 ont 3 multi-service user-vlan 254 tag-transform transparent inbound traffic-table index 6 outbound traffic-table index 6
multicast-unknown policy service-port 19 transparent
MA5800-X7(config)#vlan service-profile profile-id 1 profile-name “srvprof-1” #进入vlan服务模板
MA5800-X7(config-vlan-srvprof-1)# packet-policy multicast forward #开启包转发策略为组播转发
MA5800-X7(config-vlan-srvprof-1)# user-bridging enable #开启用户桥接
MA5800-X7(config-vlan-srvprof-1)#commit #提交相关信息
MA5800-X7(config-vlan-srvprof-1)# vlan bind service-profile 1000 profile-id 1 #vlan 1000绑定服务模板
display ont autofind all #查看ONT上线信息
display ont info 2 all #查看ONT在线情况