Пробую настроит opt82 на BDCOM P3310 , но пока просвета нет. Застрял на двух вещах не могу получить номер ONU или ее МАК. Мак OLD получил, влан тоже , порт пон есть, а вот номер ону ни как. P3310 - BDCOM P3310B Software, Version 10.1.0B Build 14297 ОНУ – P1004
Сонфиг OLT-а
interface GigaEthernet0/1
switchport trunk vlan-allowed 171
switchport mode trunk
dhcp snooping trust
interface EPON0/1
!
epon bind-onu mac fcfa.f796.593c 1
epon bind-onu mac fcfa.f796.5773 2
switchport trunk vlan-allowed 171
switchport mode trunk
!
interface EPON0/1:1
onu-configuration
epon onu port 1 ctc vlan mode tag 171
epon onu port 1 loopback detect
epon onu port 2 loopback detect
epon onu port 3 loopback detect
epon onu port 4 loopback detect
!
ip dhcp-relay snooping
ip dhcp-relay snooping vlan 171
ip dhcp-relay snooping information option
конф dhcpd
log(info, "***");
if exists agent.circuit-id {
log( info,concat("*Leased ",binary-to-ascii(10,8,".",leased-address)," (with opt82)") );
log(info, "---FoxGate---");
log( info,concat("*Remote-ID: ",binary-to-ascii (16,8, ":", option agent.remote-id)) );
log( info,concat("*circuit-id: ",binary-to-ascii(16,8,"",option agent.circuit-id)) );
log(info, "---BDCOM_1---");
log( info,concat("*SWITCH: ",binary-to-ascii(16,8,":",substring(option agent.remote-id,1,6))) );
log( info,concat("*VLAN: ",binary-to-ascii (10,16,"",substring(option agent.circuit-id,2,2))) );
log( info,concat("*OLT: ",binary-to-ascii(10,8,"",suffix(option agent.circuit-id,1))) );
log(info, "---BDCOM_2---");
log( info,concat("*SWITCH: ",binary-to-ascii(16,8,":",substring(option agent.remote-id,0,6))) );
log( info,concat("*VLAN: ",binary-to-ascii(10,8,"",substring(option agent.circuit-id,1,1))) );
log( info,concat("*OLT: ",binary-to-ascii(10,8,"",substring(option agent.circuit-id,3,1))) );
log( info,concat("*ONU: ",binary-to-ascii(10,8,"",substring(option agent.circuit-id,4,1))) );
} else {
log( info,concat("*Leased ",binary-to-ascii(10,8,".",leased-address)," (without opt82)") );
}
лог dhcp
Oct 25 09:24:05 orf dhcpd: ---FoxGate---
Oct 25 09:24:05 orf dhcpd: *Remote-ID: 0:6:fc:fa:f7:c9:1a:a9
Oct 25 09:24:05 orf dhcpd: *circuit-id: 040ab07
Oct 25 09:24:05 orf dhcpd: ---BDCOM_1---
Oct 25 09:24:05 orf dhcpd: *SWITCH: 6:fc:fa:f7:c9:1a
Oct 25 09:24:05 orf dhcpd: *VLAN: 171
Oct 25 09:24:05 orf dhcpd: *OLT: 7
Oct 25 09:24:05 orf dhcpd: ---BDCOM_2---
Oct 25 09:24:05 orf dhcpd: *SWITCH: 0:6:fc:fa:f7:c9
Oct 25 09:24:05 orf dhcpd: *VLAN: 4
Oct 25 09:24:05 orf dhcpd: *OLT: 171
Oct 25 09:24:05 orf dhcpd: *ONU: 0
Oct 25 09:24:05 orf dhcpd: ***
И второй момент получил я ip по dhcp все гут пинг на сервер ходит , проставляю я на ПК ip вручную НО ПИНГ все равно ходит, как же так ? Зачем же такой снупинг нужен ?