onu配置后不通,也不能上网
下面是vlan
vlan320是可以上网的,其它onu上是可以上网的
vlan 520是无线
interface Onu2/4/0/12:4
bind onu-id 7057-bf52-f62e
upstream-sla maximum-bandwidth 156250
uni 1 vlan-mode tag pvid 520
uni 2 vlan-mode tag pvid 320
uni 3 vlan-mode tag pvid 310
uni 4 vlan-mode tag pvid 310
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 310 320 520 to 522
#
return
不知道那里有问题
uni 1 vlan-mode tag pvid 520
uni 3 vlan-mode tag pvid 310
uni 4 vlan-mode tag pvid 310tag 模式的适用场景:ONU 的 UNI 口接的是能主动打 VLAN 标签的设备(比如瘦 AP、企业级路由器)。
untag:如果 UNI 3/4 口接的是普通 PC、家用路由器/AP、傻瓜交换机,这些终端发出的是不带标签(Untag)的报文。在 tag 模式下,ONU 收到 Untag 报文会直接丢弃,导致无法上网。
untag 模式。
interface Onu2/4/0/12:4
uni 3 vlan-mode untag pvid 310
uni 4 vlan-mode untag pvid 310
uni 1 vlan-mode untag pvid 520 # 如果接的是普通AP/胖AP,也改untagVLAN 310 的掩码是 255.255.255.0(/24),而 VLAN 320 的掩码是 255.255.254.0(/23)。请确认这是否符合规划。
Route interface: Configured 和 IP 地址,说明三层 VLAN 接口已建。但没看到 DHCP 服务配置。请确认 VLAN 310 的地址池、网关指向是否正常,可以在 OLT 上尝试 ping 172.21.10.254 测试连通性。
display mac-address interface Onu2/4/0/12:4
interface Onu2/4/0/12:4
mac-address max-mac-count 10port trunk permit vlan 310 320 520 to 522,放通了相关 VLAN。
port trunk pvid vlan xxx。根据华三机制,如果 UNI 口配置了 PVID,会优先使用 UNI 口的 PVID 打标签。只要上行 Trunk 放通了对应的 VLAN,通常能通。但如果网络中有特殊要求,需确保端到端一致。
pvid 520(无线)。如果接的是瘦 AP,AP 自身发出的管理报文可能是 Untag,而业务 SSID 发 Tag 520。这种情况下单配 tag pvid 520 可能会导致 AP 无法获取地址。建议确认 AP 类型,普通胖 AP 直接改 untag。
display interface Onu2/4/0/12:4。
untag pvid 310。
<Fxyz_JYW_HX>sys System View: return to User View with Ctrl+Z. [Fxyz_JYW_HX]display interface Onu2/4/0/12:4 Onu2/4/0/12:4 Current state: UP IP packet frame type: Ethernet II, hardware address: 74d6-cbe5-0e00 Description: Onu2/4/0/12:4 Interface Maximum frame length: 1500 Loopback is not set Port hardware type is Unknown Broadcast max-ratio: 100% Multicast max-ratio: 100% Unicast max-ratio: 100% PVID: 1 Port link-type: Trunk VLAN Passing: 310, 320, 520-522 VLAN permitted: 310, 320, 520-522 Trunk port encapsulation: IEEE 802.1q Last clearing of counters: 07:50:11 Thu 05/14/2026 Last 300 seconds input: - packets/sec - bytes/sec -% Last 300 seconds output: - packets/sec - bytes/sec -% Input (total): 57607 packets, 3978343 bytes 0 unicasts, 22188 broadcasts, 35419 multicasts, - pauses Input (normal): - packets, - bytes - unicasts, - broadcasts, - multicasts, - pauses Input: 0 input errors, 0 runts, 0 giants, - throttles 0 CRC, - frame, - overruns, 0 aborts - ignored, - parity errors Output (total): 16997 packets, 4801145 bytes 5 unicasts, 13078 broadcasts, 3914 multicasts, - pauses Output (normal): - packets, - bytes - unicasts, - broadcasts, - multicasts, - pauses Output: 1 output errors, - underruns, - buffer failures 0 aborts, - deferred, - collisions, - late collisions - lost carrier, - no carrier vlan310 是不能上网的,内部局域网 valn320 是通外网的
[Fxyz_JYW_HX]ping 172.21.10.254 Ping 172.21.10.254 (172.21.10.254): 56 data bytes, press CTRL+C to break 56 bytes from 172.21.10.254: icmp_seq=0 ttl=255 time=0.378 ms 56 bytes from 172.21.10.254: icmp_seq=1 ttl=255 time=0.293 ms 56 bytes from 172.21.10.254: icmp_seq=2 ttl=255 time=0.266 ms 56 bytes from 172.21.10.254: icmp_seq=3 ttl=255 time=0.266 ms 56 bytes from 172.21.10.254: icmp_seq=4 ttl=255 time=0.265 ms ping 接在onu 3口上的设备不通 [Fxyz_JYW_HX]ping 172.21.10.248 Ping 172.21.10.248 (172.21.10.248): 56 data bytes, press CTRL+C to break Request time out Request time out Request time out Request time out Request time out --- Ping statistics for 172.21.10.248 --- 5 packet(s) transmitted, 0 packet(s) received, 100.0% packet loss
port link-type trunk错误,ONU 的 UNI 口不能用 trunk,UNI 是接入终端,应配置为access。port link-type trunk、port trunk permit vlan相关命令,UNI 口 pvid 本身就是对应接入 VLAN。172.21.10.254/24,确认 VLAN310 网段路由、ACL 放行;VLAN520 无线也要确认三层接口。命令修改片段:
interface Onu2/4/0/12:4
bind onu-id 7057-bf52-f62e
upstream-sla maximum-bandwidth 156250
uni 1 vlan-mode tag pvid 520
uni 2 vlan-mode tag pvid 320
uni 3 vlan-mode tag pvid 310
uni 4 vlan-mode tag pvid 310
#删除下面两行
#port link-type trunk
#undo port trunk permit vlan 1
#port trunk permit vlan 310 320 520 to 522
一句话:ONU UNI 口是终端接入,不能配 trunk,删掉 trunk 配置即可。
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
[Fxyz_JYW_HX]ping 172.21.10.254 Ping 172.21.10.254 (172.21.10.254): 56 data bytes, press CTRL+C to break 56 bytes from 172.21.10.254: icmp_seq=0 ttl=255 time=0.378 ms 56 bytes from 172.21.10.254: icmp_seq=1 ttl=255 time=0.293 ms 56 bytes from 172.21.10.254: icmp_seq=2 ttl=255 time=0.266 ms 56 bytes from 172.21.10.254: icmp_seq=3 ttl=255 time=0.266 ms 56 bytes from 172.21.10.254: icmp_seq=4 ttl=255 time=0.265 ms ping 接在onu 3口上的设备不通 [Fxyz_JYW_HX]ping 172.21.10.248 Ping 172.21.10.248 (172.21.10.248): 56 data bytes, press CTRL+C to break Request time out Request time out Request time out Request time out Request time out --- Ping statistics for 172.21.10.248 --- 5 packet(s) transmitted, 0 packet(s) received, 100.0% packet loss