1.5.b PIM

Multicast Basics:

 

Wichtig:
Multicast baut auf Unicast auf, stelle sicher, dass die Routing tables stimmen!
 
Unicast routing routet von A nach B
Multicast Routing vom a nach Any
 
Als Multicast Routing Protokol verwendet man „PIM“:
 
Pim has two flavor:
  • sparse
  • dense
 
 
 
 
 
 
 
 


Aktiviere:

ip igmp snooping
ip multicast-routing distribted

Modus wählen:
dense-mode floodet und pruned dann = schlecht
sparse-mode sendet nur auf Anfrage, benötigt rendevous points = besser


Auf Interface aktivieren:

interface vlan 5
ip pim sparse-mode


Router als RP advertisen

ip pim send-rp-announce loopback 0 scope 10

Router nach anderen RPs ausschau halten lassen:

ip pim send-rp-discovery loopback 0 scope 10

//loopback == source interface
//scope 10 == Anzahl Hops

ip pim autorp listener


sorgt dafür, dass auto-rp groups geflooded werden und benutzt dabei dense-mode auf interfaces auf denen pim sparse-mode konfiguriert ist.


Um einzelne Neighbors zufiltern erstellt man eine access-list und zieht die auf dem Interface an wo sich der neighbor befindet:

access-list 1 deny 10.10.210.2
int vlan 5
ip pim neighbor-filter 1


Aktive Interfaces anzeigen:

CAT1#show ip pim interface

Address Interface Ver/ Nbr Query DR DR
Mode Count Intvl Prior
10.10.255.254 Loopback0 v2/S 0 30 1 10.10.255.254
10.10.210.2 Vlan5 v2/S 1 30 1 10.10.210.2
10.10.12.2 Vlan12 v2/S 1 30 1 10.10.12.3
10.10.13.2 Vlan13 v2/S 1 30 1 10.10.13.3
10.10.14.2 Vlan14 v2/S 1 30 1 10.10.14.3
10.10.15.2 Vlan15 v2/S 1 30 1 10.10.15.3
10.10.16.2 Vlan16 v2/S 1 30 1 10.10.16.3
10.10.17.2 Vlan17 v2/S 1 30 1 10.10.17.3
10.10.110.2 Vlan110 v2/S 0 30 1 10.10.110.2
10.10.111.2 Vlan111 v2/S 1 30 1 10.10.111.2
10.10.112.2 Vlan112 v2/S 0 30 1 10.10.112.2
10.10.113.2 Vlan113 v2/S 1 30 1 10.10.113.2
10.10.114.2 Vlan114 v2/S 1 30 1 10.10.114.2

CAT1#show ip pim rp
Group: 239.255.255.254, RP: 10.10.255.254, v2, v1, next RP-reachable in 00:00:54
Group: 239.10.210.20, RP: 10.10.255.254, v2, v1, next RP-reachable in 00:00:54
 
Multicast konfigurieren:
 
 
Multicast auf allen L3 Interfaces aktivieren, am einfachsten:
 
 
 
 
show ip prim interface
 
 
Definiere den RP
 
 
 
 
Multicast Testen
 

(tippfehler im screenshot, sollte 239 sein)
 
Ping auf adresse
 
 
Mehre RP definieren damit verschiedene Router verschiedene MCAST Range bedienen.
 
ACL definieren:
 
 
 
 
auf allen switchen gleich anlegen.
 
 
 
 
 
MSDP Peering (für dual RP)
 
 
1) setup peer
2) peering vice versa
 
 
 
In order to have 2 switches share the same RP address, you will need to configure MSDP. One thing to watch out for with MSDP is that it can have an effect on your routing protocol. As you may notice, if you reboot your switches after configuring MSDP as asked, they will both use the same router ID in OSPF and that would cause problems. That is why we add the manual router ID configuration to OSPF.
 
 
 
 
 
 
 
Gleiches Interface anlegen auf beiden:
 
 
Individuelle Interface anlegen:
 
 
 
 
Peering mit dem peering command aktivieren:
 
 
 
Verifizieren ob peering funktioniert:
 
 
 
 
 
Nun kann das shared loopback 1 als RP propagiert werden:
 
 
Samuel Heinrich
Senior Network Engineer at Selution AG (Switzerland)
Arbeitet in Raum Basel (Switzerland) als Senior Network Engineer mit über 15 Jahren Erfahrung im Bereich Netzwerk

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert

Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.