最佳答案
# 创建vlan31、32、33、34、44:
P3600# configure l2 vlan vid 31 name 31
P3600# configure l2 vlan vid 32 name 32
P3600# configure l2 vlan vid 33 name 33
P3600# configure l2 vlan vid 34 name 34
P3600# configure l2 vlan vid 44 name 44
如果不配置聚合口的话,只需要配置xge口通过vlan,也就是配交换机的trunk vlan permit vlan 31 32 33 34 44,将报文带tag下放到olt上,同时核心也要配trunk permit vlan 31 32 33 34 44。相当于放通vlan31-34
P3600# configure l2 vlan interface xge 1 vid 31 tag
P3600# configure l2 vlan interface xge 1 vid 32 tag
P3600# configure l2 vlan interface xge 1 vid 33 tag
P3600# configure l2 vlan interface xge 1 vid 34 tag
P3600# configure l2 vlan interface xge 1 vid 44 tag
ONU类型 | UNI端口 | 业务 | VLAN | Vport端口映射 |
ET908-H-PQ | uni1~uni5 | 多媒体设备PC | 31 | vport 1 |
uni6 | 广播 | 32 | vport 2 | |
uni7 | 监控 | 33 | vport 3 | |
uni8 | 无线网络AP | 业务vlan34 | vport 4 | |
管理vlan44 | vport 5 |
# 创建5条flow模板映射vlan和vport端口:
P3600(Slot-3)# gpon profile flow id 2 1 name EGT908HPQ-PC-VLAN31 uni-type ethernet-uni uni-bitmap 0xff upmap-type vlanId 31 31 pri-bitmap 0xff vport 1
P3600(Slot-3)# gpon profile flow id 2 2 name EGT908HPQ-GUANGBO-VLAN32 uni-type ethernet-uni uni-bitmap 0xff upmap-type vlanId 32 32 pri-bitmap 0xff vport 2
P3600(Slot-3)# gpon profile flow id 2 3 name EGT908HPQ-JIANKONG-VLAN33 uni-type ethernet-uni uni-bitmap 0xff upmap-type vlanId 33 33 pri-bitmap 0xff vport 3
P3600(Slot-3)# gpon profile flow id 2 4 name EGT908HPQ-AP-YEWU-VLAN34 uni-type ethernet-uni uni-bitmap 0xff upmap-type vlanId 34 34 pri-bitmap 0xff vport 4
P3600(Slot-3)# gpon profile flow id 2 5 name EGT908HPQ-AP-GUANLI-VLAN44 uni-type ethernet-uni uni-bitmap 0xff upmap-type vlanId 44 44 pri-bitmap 0xff vport 5
创建tcony-bind模板
P3600(Slot-3)# gpon profile tcont-bind id 2 v-port 1 name EGT908HPQ-PC-VLAN31 vportsvc-id 1 tcont-id 1 tcontsvc-id 2
P3600(Slot-3)# gpon profile tcont-bind id 2 v-port 2 name EGT908HPQ-GUANGBO-VLAN32 vportsvc-id 1 tcont-id 1 tcontsvc-id 2
P3600(Slot-3)# gpon profile tcont-bind id 2 v-port 3 name EGT908HPQ-JIANKONG-VLAN33 vportsvc-id 1 tcont-id 1 tcontsvc-id 2
P3600(Slot-3)# gpon profile tcont-bind id 2 v-port 4 name EGT908HPQ-AP-YEWU-VLAN34 vportsvc-id 1 tcont-id 1 tcontsvc-id 2
P3600(Slot-3)# gpon profile tcont-bind id 2 v-port 5 name EGT908HPQ-AP-GUANLI-VLAN44 vportsvc-id 1 tcont-id 1 tcontsvc-id 2
配置ONT口
# 进入ont接口视图
P3600(Slot-3)# interface gpon-olt 1/4
P3600(Slot-3/if-gpon-olt-1/4)# ont 1
P3600(Slot-3/if-gpon-olt-1/4/1)#
# ET908-H-PQ注册在slot 3的pon 4口的ont 1接口,创建5个vport口
P3600(Slot-3/if-gpon-olt-1/4/1)# virtual-port 1 encrypt disable
P3600(Slot-3/if-gpon-olt-1/4/1)# virtual-port 2 encrypt disable
P3600(Slot-3/if-gpon-olt-1/4/1)# virtual-port 3 encrypt disable
P3600(Slot-3/if-gpon-olt-1/4/1)# virtual-port 4 encrypt disable
P3600(Slot-3/if-gpon-olt-1/4/1)# virtual-port 5 encrypt disable
P3600(Slot-3/if-gpon-olt-1/4/1)# service flow-profile 2 tcont-bind-profile 2 svc_type n_p
# port-vlan和ont-vlan不可混用,配置VLAN模式只推荐使用port-vlan,其他方法一律不推荐。
P3600(Slot-3/if-gpon-olt-1/4/1)# port-vlan 1 downstream inverse-upstream intpid 0x8100 outtpid 0x8100
P3600(Slot-3/if-gpon-olt-1/4/1)# port-vlan 1 rule 1 untag add-vid inner-pri 0 inner-vid 31
P3600(Slot-3/if-gpon-olt-1/4/1)# port-vlan 2 downstream inverse-upstream intpid 0x8100 outtpid 0x8100
P3600(Slot-3/if-gpon-olt-1/4/1)# port-vlan 2 rule 1 untag add-vid inner-pri 0 inner-vid 31
P3600(Slot-3/if-gpon-olt-1/4/1)# port-vlan 3 downstream inverse-upstream intpid 0x8100 outtpid 0x8100
P3600(Slot-3/if-gpon-olt-1/4/1)# port-vlan 3 rule 1 untag add-vid inner-pri 0 inner-vid 31
P3600(Slot-3/if-gpon-olt-1/4/1)# port-vlan 4 downstream inverse-upstream intpid 0x8100 outtpid 0x8100
P3600(Slot-3/if-gpon-olt-1/4/1)# port-vlan 4 rule 1 untag add-vid inner-pri 0 inner-vid 31
P3600(Slot-3/if-gpon-olt-1/4/1)# port-vlan 5 downstream inverse-upstream intpid 0x8100 outtpid 0x8100
P3600(Slot-3/if-gpon-olt-1/4/1)# port-vlan 5 rule 1 untag add-vid inner-pri 0 inner-vid 31
P3600(Slot-3/if-gpon-olt-1/4/1)# port-vlan 6 downstream inverse-upstream intpid 0x8100 outtpid 0x8100
P3600(Slot-3/if-gpon-olt-1/4/1)# port-vlan 6 rule 1 untag add-vid inner-pri 0 inner-vid 32
P3600(Slot-3/if-gpon-olt-1/4/1)# port-vlan 7 downstream inverse-upstream intpid 0x8100 outtpid 0x8100
P3600(Slot-3/if-gpon-olt-1/4/1)# port-vlan 7 rule 1 untag add-vid inner-pri 0 inner-vid 33
# 下面的uni 8 口为接ap口的配置
P3600(Slot-3/if-gpon-olt-1/4/1)# port-vlan 8 downstream inverse-upstream intpid 0x8100 outtpid 0x8100
P3600(Slot-3/if-gpon-olt-1/4/1)# port-vlan 8 rule 1 untag add-vid inner-pri 0 inner-vid 44
P3600(Slot-3/if-gpon-olt-1/4/1)# port-vlan 8 rule 2 single-tag transparent
P3600# configure l2 vlan translate slot 3 port 4 ont 1 virtual-port 1 svid 31 new-svid 31
P3600# configure l2 vlan translate slot 3 port 4 ont 1 virtual-port 2 svid 32 new-svid 32
P3600# configure l2 vlan translate slot 3 port 4 ont 1 virtual-port 3 svid 33 new-svid 33
P3600# configure l2 vlan translate slot 3 port 4 ont 1 virtual-port 4 svid 34 new-svid 34
P3600# configure l2 vlan translate slot 3 port 4 ont 1 virtual-port 5 svid 44 new-svid 44
你参考下这个
补充下flow模板和t-cont模板的一些详解:


在H3C OLT上配置VLAN 60并放通所有接口,需结合ONU绑定与端口配置操作,具体步骤如下:
创建VLAN 60
在OLT全局视图下创建业务VLAN:
[OLT] vlan 60
[OLT-vlan60] quit
放通VLAN 60到所有OLT接口
在OLT的上联口(连接汇聚/核心交换机)和所有PON口(如Olt1/0/4)放通该VLAN:
[OLT] interface Olt 1/0/4
[OLT-Olt1/0/4] port link-type hybrid
[OLT-Olt1/0/4] port hybrid vlan 60 tagged // 允许VLAN 60带标签通过
[OLT-Olt1/0/4] quit
为指定ONU下发VLAN 60
基于ONU的SN码绑定并配置VLAN 60到其UNI口:
[OLT] interface Onu 1/0/4:1
[OLT-Onu1/0/4:1] bind onu-id xxxx-xxxx-xxxx // 替换为ONU实际SN
[OLT-Onu1/0/4:1] uni 1 vlan-mode tag pvid 60 // 指定UNI口PVID为60
[OLT-Onu1/0/4:1] port link-type trunk
[OLT-Onu1/0/4:1] port trunk permit vlan 60 // 放通VLAN 60
[OLT-Onu1/0/4:1] quit
验证配置
关键点说明
你发的这些这个olt 完全不支持,这个版本命令是 show brief-show
你发的这些这个olt 完全不支持,这个版本命令是 show brief-show
首先,通过Console口或SSH登录到OLT的命令行界面,然后按以下步骤操作:
配置上联口(连接核心交换机):假设上联口为 gigabitethernet 1/0/1。
进入PON口并绑定ONU:假设ONU的SN为 1234567890。
uni 1)。配置完成后,可以通过以下命令检查:
display vlan 60:查看VLAN 60是否创建,以及哪些端口已放通。
display onu info interface gpon-olt 1/1/1:检查ONU的注册状态。
display onu vlan interface gpon-olt 1/1/1:查看ONU下UNI端口的VLAN配置。
system-view
vlan 60
quit
interface GigaPon 0/1
port link-type trunk
port trunk permit vlan 60
quit
interface Pon 0/1:1
port link-type trunk
port trunk permit vlan 60
quit
SN码 替换成你真实的 ONU 序列号即可。interface Pon 0/1:1 # 进入ONU所在PON口
ont add 1 1 sn-auth 你的ONU-SN码 omci ont-lineprofile-id 1 ont-srvprofile-id 1
ont port native-vlan 1 1 eth 1 vlan 60 # 端口1下发VLAN60
ont port native-vlan 1 1 eth 2 vlan 60 # 端口2也下发(可选)
commit
ont add 1 2 sn-auth ONU-SN-2 omci ont-lineprofile-id 1 ont-srvprofile-id 1
ont port native-vlan 1 2 eth 1 vlan 60
commit
display vlan 60 # 查看VLAN60是否放通接口
display ont info 0/1:1 all # 查看ONU是否在线
display ont port native-vlan 0/1:1 1 # 查看VLAN60是否下发成功
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明