Как правильно настроить pim-sm? Или поделитесь конфигом для примера.
Есть Alpine3802(License:Full L3 + Security), к ней приходит мультикаст поток в отдельном влане через PIM-SM. На ней нужно настроить IPTV вещание.
tv, собственно сам влан по которому получаем поток с RP 192.168.212.1
Default - абонентский влан
Каналы IPTV:
udp://@233.163.244.84:2000
udp://@233.163.244.86:2000 и т.д.
Изображения и звука нет.
Что сделано:
enable pim
configure pim crp timer 60
configure pim register-suppress-interval 60 register-probe-interval 5
configure pim register-rate-limit-interval 0
configure pim spt-threshold 0 0
configure pim register-checksum-to include-data
configure pim timer bsm-wait-time 20
config pim add vlan "Default" sparse
configure pim crp "Default" "rp-list" 0
config pim add vlan "tv" sparse
configure pim crp "tv" "rp-list" 0
configure pim crp static 192.168.212.1 "rp-list" 0
create access-profile "rp-list" type ipaddress
configure access-profile "rp-list" mode permit
configure access-profile "rp-list" add 5 permit ipaddress 233.0.0.0/8
configure access-profile "rp-list" add 10 permit ipaddress 224.0.0.0/4
Ну и более детально:
configure vlan "Default" tag 1
configure vlan "Default" ipaddress 10.31.255.211 255.255.255.0
configure vlan "Default" add port 2:1 untagged
configure vlan "Default" add port 2:2 untagged
configure vlan "Default" add port 2:3 untagged
configure vlan "Default" add port 2:4 untagged
configure vlan "tv" tag 1447
configure vlan "tv" ipaddress 192.168.212.5 255.255.255.0
configure vlan "tv" add port 2:1 tagged
configure vlan "tv" add port 2:2 tagged
configure vlan "tv" add port 2:3 tagged
configure vlan "tv" add port 2:4 tagged
enable ipforwarding vlan "Default"
enable ipforwarding broadcast vlan "Default"
enable ipforwarding vlan "tv"
enable ipforwarding broadcast vlan "tv"
enable igmp snooping
enable igmp snooping vlan "Default"
enable igmp snooping vlan "tv"
disable pim snooping
disable pim snooping vlan "Default"
disable pim snooping vlan "tv"
enable ipmcforwarding vlan "tv"
enable igmp vlan "tv"
enable ipmcforwarding vlan "Default"
enable igmp vlan "Default"
show pim rp-set
Group Mask C-RP Origin Priority
224.0.0.0 240.0.0.0 192.168.212.1 Static 0
233.0.0.0 255.0.0.0 192.168.212.1 Static 0
show pim detail
PIM Enabled, Version 2
PIM CRP Enabled on 2 interfaces
BSR state : ACCEPT_ANY ; BSR Hash Mask Length: 255.255.255.252
Current BSR Info : 0.0.0.0 (Priority 0)
Configured BSR Info : 0.0.0.0 (Priority 0)
CRP Adv Interval : 60 sec ; CRP Holdtime: 150 sec
BSR Interval : 60 sec ; BSR Timeout : 130 sec
Cache Timer : 210 sec ; Prune Timer : 210 sec
Assert Timeout : 210 sec ; Register Suppression Timeout,Probe: 60,5 sec
Register-Rate-Limit-Interval : Always active
Generation Id : 4f61b3f7
Threshold for Last Hop Routers : 0 kbps
Threshold for RP : 0 kbps
Bootstrap message Wait Interval : 20 sec
Register Checksum to include data
Global Packet Statistics (In/Out)
C-RP-Advs 0 0
Registers 0 135
RegisterStops 135 0
PIM SPARSE Interface[1] on VLAN Default is enabled and up
IP adr: 10.31.255.211 mask: 255.255.255.0 DR of the net: 10.31.255.211
Hello Interval : 30 sec
Neighbor Time out : 105 sec
Join/Prune Interval : 60 sec
Join/Prune holdtime : 210 sec
Trusted Gateway : None
CRP Group List : rp-list with priority 0
BSM Fragment Discard Count: 0
Packet Statistics (In/Out)
Hellos 0 264 Bootstraps 0 0
Join/Prunes 0 0 Asserts 0 4535
Grafts 0 0 GraftAcks 0 0
PIM SPARSE Interface[2] on VLAN tv is enabled and up
IP adr: 192.168.212.5 mask: 255.255.255.0 DR of the net: 192.168.212.5
Hello Interval : 30 sec
Neighbor Time out : 105 sec
Join/Prune Interval : 60 sec
Join/Prune holdtime : 210 sec
Trusted Gateway : None
CRP Group List : rp-list with priority 0
Neighbor IP address Generation Id Expires
192.168.212.1 4 87
BSM Fragment Discard Count: 0
Packet Statistics (In/Out)
Hellos 267 266 Bootstraps 0 0
Join/Prunes 0 158 Asserts 0 0
Grafts 0 0 GraftAcks 0 0
show log debug
03/15/2012 11:21:29.37 <Summ:PIM> PIM: unknown option type 65004
03/15/2012 11:21:29.37 <Summ:PIM> PIM: unknown option type 21
03/15/2012 11:21:29.37 <Summ:PIM> PIM: unknown option type 19
03/15/2012 11:21:29.37 <Summ:PIM> PIM: Receiving Hello pkt of len 38 from src 192.168.212.1 thro 192.168.212.5
03/15/2012 11:21:29.29 <Summ:PIM> last message repeated 4 additional times
03/15/2012 11:21:27.02 <Summ:PIM> PIM: 0.0.0.0/233.163.244.84: entry timer stops
03/15/2012 11:21:27.02 <Summ:PIM> PIM: 0.0.0.0/233.163.244.84/192.168.212.1: remove entry
03/15/2012 11:21:27.02 <Summ:PIM> PIM: 0.0.0.0/233.163.244.84/192.168.212.1: delOif PIM_Entry_Remove
03/15/2012 11:21:27.02 <Summ:PIM> PIM: Xmitting Join/Prune(3) pkt of len 34 from src 192.168.212.5 to 224.0.0.13
03/15/2012 11:21:27.02 <Summ:PIM> PIM: pimSendPruneUp: src 0.0.0.0, grp 233.163.244.84, una 192.168.212.1, oif 192.168.212.5 rpt 1
03/15/2012 11:21:27.02 <Summ:PIM> PIM: pimOifTimerSet: 233.163.244.84/0.0.0.0 dnif 512 ttl 0 existing ttl 0
03/15/2012 11:21:27.02 <Summ:PIM> PIM: 0.0.0.0/233.163.244.84/192.168.212.1: OK 0 1 0
03/15/2012 11:21:27.02 <Summ:PIM> PIM: pimOifTimerSet: 233.163.244.84/0.0.0.0 dnif 1 ttl 0 existing ttl 0
03/15/2012 11:21:27.02 <Summ:PIM> PIM: 0.0.0.0/233.163.244.84/192.168.212.1: delOif IN 3 1
03/15/2012 11:21:27.02 <Summ:PIM> PIM: 0.0.0.0/233.163.244.84/192.168.212.1: delOif 1 jt I hold 0 l 1
03/15/2012 11:21:27.02 <Summ:PIM> PIM: pimIgmpChange: grp 233.163.244.84 leaving on cid 1