My Countingdown

Friday, December 16, 2011

Lab 4. Multicast - Sparse Mode - Auto RP

  • In sparse mode auto RP, need to activate command ‘ip pim autorp listener’ in global config. So it will create Candidate and Mapping Agent
    • Cisco-Announce use 224.0.1.39
    • Cisco-Discovery use 224.0.1.40
Lets do the lab :)


R1#
ip multicast-routing
!
interface Loopback0
 ip address 1.1.1.1 255.255.255.255
 ip pim sparse-mode
 ip ospf 1 area 0
!
interface FastEthernet0/0
 ip address 12.12.12.1 255.255.255.0
 ip pim sparse-mode
 ip ospf 1 area 0
 no shu
!
ip pim autorp listener

R2#
ip multicast-routing
!
interface Loopback0
 ip address 2.2.2.2 255.255.255.255
 ip pim sparse-mode
 ip ospf 1 area 0
!
interface FastEthernet0/0
 ip address 12.12.12.2 255.255.255.0
 ip pim sparse-mode
 ip ospf 1 area 0
 no shu
!
interface FastEthernet0/1
 ip address 23.23.23.2 255.255.255.0
 ip pim sparse-mode
 ip ospf 1 area 0
 no shu
!
ip pim autorp listener

R3#
ip multicast-routing
!
interface Loopback0
 ip address 3.3.3.3 255.255.255.255
 ip pim sparse-mode
 ip ospf 1 area 0
 no shu
!
interface FastEthernet0/0
 ip address 23.23.23.3 255.255.255.0
 ip pim sparse-mode
 ip ospf 1 area 0
 no shu
!
ip pim autorp listener

For the testing interface lo0 in R1 will join group to ip multicast for example 239.0.0.1 and configure RP Candidate and RP mapping agent in one router. Actually it can be separated between RP Candidate and RP mapping agent.

R1#
int lo0
 ip igmp join-group 239.0.0.1
!
ip pim send-rp-announce loopback 0 scope 255
ip pim send-rp-discovery scope 255

Let’s verify the multicast

R1(config)#do sh ip pim rp map
PIM Group-to-RP Mappings
This system is an RP (Auto-RP)
This system is an RP-mapping agent
Group(s) 224.0.0.0/4
  RP 1.1.1.1 (?), v2v1
    Info source: 1.1.1.1 (?), elected via Auto-RP
         Uptime: 00:01:21, expires: 00:02:37

R2(config)#do sh ip pim rp mapp
PIM Group-to-RP Mappings
Group(s) 224.0.0.0/4
  RP 1.1.1.1 (?), v2v1
    Info source: 12.12.12.1 (?), elected via Auto-RP
         Uptime: 00:01:28, expires: 00:02:29

R3(config)#do sh ip pim rp map
PIM Group-to-RP Mappings
Group(s) 224.0.0.0/4
  RP 1.1.1.1 (?), v2v1
    Info source: 12.12.12.1 (?), elected via Auto-RP
         Uptime: 00:01:34, expires: 00:02:26

R3(config)#do sh ip mrou
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
       L - Local, P - Pruned, R - RP-bit set, F - Register flag,
       T - SPT-bit set, J - Join SPT, M - MSDP created entry,
       X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
       U - URD, I - Received Source Specific Host Report,
       Z - Multicast Tunnel, z - MDT-data group sender,
       Y - Joined MDT-data group, y - Sending to MDT-data group
Outgoing interface flags: H - Hardware switched, A - Assert winner
 Timers: Uptime/Expires
 Interface state: Interface, Next-Hop or VCD, State/Mode

(*, 239.0.0.1), 00:00:51/stopped, RP 1.1.1.1, flags: SPF
  Incoming interface: FastEthernet0/0, RPF nbr 23.23.23.2
  Outgoing interface list: Null

(3.3.3.3, 239.0.0.1), 00:00:43/00:02:56, flags: FT
  Incoming interface: Loopback0, RPF nbr 0.0.0.0, Registering
  Outgoing interface list:
    FastEthernet0/0, Forward/Sparse, 00:00:43/00:02:46

(23.23.23.3, 239.0.0.1), 00:00:45/00:02:25, flags: PFT
  Incoming interface: FastEthernet0/0, RPF nbr 0.0.0.0
  Outgoing interface list: Null

(23.23.23.2, 239.0.0.1), 00:00:52/00:02:15, flags: PFT
  Incoming interface: FastEthernet0/0, RPF nbr 0.0.0.0, Registering
  Outgoing interface list: Null

(*, 224.0.1.39), 00:02:49/stopped, RP 0.0.0.0, flags: D
  Incoming interface: Null, RPF nbr 0.0.0.0
  Outgoing interface list:
    FastEthernet0/0, Forward/Sparse, 00:02:50/00:00:00

(1.1.1.1, 224.0.1.39), 00:02:50/00:00:10, flags: PT
  Incoming interface: FastEthernet0/0, RPF nbr 23.23.23.2
  Outgoing interface list: Null

(*, 224.0.1.40), 00:05:16/stopped, RP 0.0.0.0, flags: DCL
  Incoming interface: Null, RPF nbr 0.0.0.0
  Outgoing interface list:
    FastEthernet0/0, Forward/Sparse, 00:05:16/00:00:00
    Loopback0, Forward/Sparse, 00:05:16/00:00:00

(12.12.12.1, 224.0.1.40), 00:01:51/00:02:12, flags: LT
  Incoming interface: FastEthernet0/0, RPF nbr 23.23.23.2
  Outgoing interface list:
    Loopback0, Forward/Sparse, 00:01:51/00:00:00

R3(config)#do ping 239.0.0.1
Type escape sequence to abort.
Sending 1, 100-byte ICMP Echos to 239.0.0.1, timeout is 2 seconds: 
Reply to request 0 from 12.12.12.1, 120 ms
Reply to request 0 from 12.12.12.1, 120 ms

1 comment:

  1. Hi, at the begining of this page one WATCH is there with message CCIE R & S to go then days, hours, min, sec what is the meaning of that.

    ReplyDelete