Friday 9 November 2012

Configuring Basic Multicast: Dense-Mode


 

Configuring Basic Multicast: Dense-Mode

 

·         Let me take a basic 3-router topology:

 

R1---fa0/0-----fa0/0---R2----fa0/1--------fa0/1-----R3

 

R1-R2: 10.1.12.0/24

R2-R3: 10.1.23.0/24

 

R1(config-router)#do show run int fa0/0

Building configuration...

 

Current configuration : 94 bytes

!

interface FastEthernet0/0

 ip address 10.1.12.1 255.255.255.0

 duplex auto

 speed auto

end

 

R1(config-router)#do show run int loop0

Building configuration...

 

Current configuration : 63 bytes

!

interface Loopback0

 ip address 1.1.1.1 255.255.255.255

end

 

R1(config-router)#do show ip route ospf

     2.0.0.0/32 is subnetted, 1 subnets

O       2.2.2.2 [110/11] via 10.1.12.2, 00:14:32, FastEthernet0/0

     3.0.0.0/32 is subnetted, 1 subnets

O       3.3.3.3 [110/21] via 10.1.12.2, 00:14:32, FastEthernet0/0

     10.0.0.0/24 is subnetted, 2 subnets

O       10.1.23.0 [110/20] via 10.1.12.2, 00:14:32, FastEthernet0/0

R1(config-router)#do ping 3.3.3.3

 

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 8/28/72 ms

R1(config-router)#do ping 2.2.2.2

 

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 4/24/56 ms

R1(config-router)#

 

 

R2(config-router)#do show run int fa0/0

Building configuration...

 

Current configuration : 94 bytes

!

interface FastEthernet0/0

 ip address 10.1.12.2 255.255.255.0

 duplex auto

 speed auto

end

 

R2(config-router)#do show run int fa0/1

Building configuration...

 

Current configuration : 94 bytes

!

interface FastEthernet0/1

 ip address 10.1.23.2 255.255.255.0

 duplex auto

 speed auto

end

 

R2(config-router)#do show run int loop0

Building configuration...

 

Current configuration : 63 bytes

!

interface Loopback0

 ip address 2.2.2.2 255.255.255.255

end

 

R2(config-router)#do show ip route ospf

     1.0.0.0/32 is subnetted, 1 subnets

O       1.1.1.1 [110/11] via 10.1.12.1, 00:15:17, FastEthernet0/0

     3.0.0.0/32 is subnetted, 1 subnets

O       3.3.3.3 [110/11] via 10.1.23.3, 00:15:17, FastEthernet0/1

R2(config-router)#do ping 1.1.1.1

 

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 4/20/44 ms

R2(config-router)#do ping 3.3.3.3

 

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 4/25/68 ms

R2(config-router)#

 

 

R3(config-router)#do show run int fa0/1

Building configuration...

 

Current configuration : 94 bytes

!

interface FastEthernet0/1

 ip address 10.1.23.3 255.255.255.0

 duplex auto

 speed auto

end

 

R3(config-router)#do show run int loop0

Building configuration...

 

Current configuration : 63 bytes

!

interface Loopback0

 ip address 3.3.3.3 255.255.255.255

end

 

R3(config-router)#do show ip route ospf

     1.0.0.0/32 is subnetted, 1 subnets

O       1.1.1.1 [110/21] via 10.1.23.2, 00:22:13, FastEthernet0/1

     2.0.0.0/32 is subnetted, 1 subnets

O       2.2.2.2 [110/11] via 10.1.23.2, 00:22:13, FastEthernet0/1

     10.0.0.0/24 is subnetted, 2 subnets

O       10.1.12.0 [110/20] via 10.1.23.2, 00:22:13, FastEthernet0/1

R3(config-router)#

R3(config-router)#do ping 2.2.2.2

 

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 4/16/36 ms

R3(config-router)#do ping 1.1.1.1

 

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 8/31/64 ms

R3(config-router)#

 

·         Now, let me configure Multicast:

·         R1 is my server and R2 is my client.

 

·         PIM-Dense mode has to be enabled between R1-R2-Fa0/0 link

·         PIM-Dense mode has to be enabled between R2-R3-Fa0/1 link

·         R3’s loopback0 is the client

 

R1(config)#ip multicast-routing

R1(config)#int fa0/0

R1(config-if)#ip pim dense-mode

R1(config-if)#

 

R2(config-if)#ip multicast-routing

R2(config)#int fa0/0

R2(config-if)#ip pim dense-mode

R2(config-if)#int fa0/1

R2(config-if)#ip pim den

R2(config-if)#ip pim dense-mode

R2(config-if)#

 

R3(config)# ip multicast-routing

R3(config)#int fa0/1

R3(config-if)#ip pim den

R3(config-if)#ip pim dense-mode

R3(config-if)#

*Mar  1 07:29:00.438: %PIM-5-DRCHG: DR change from neighbor 0.0.0.0 to 10.1.23.3 on interface FastEthernet0/1

R3(config-if)#

 

*Mar  1 07:29:28.314: %PIM-5-NBRCHG: neighbor 10.1.23.2 UP on interface FastEthernet0/1

R3(config-if)#

 

R3(config-if)#int loop0

R3(config-if)#ip pim dense-mode

R3(config-if)#ip igmp join-group 227.27.27.27

R3(config-if)#

 

·         Verification: Initiate ping form server:

 

R1#ping 227.27.27.27

 

Type escape sequence to abort.

Sending 1, 100-byte ICMP Echos to 227.27.27.27, timeout is 2 seconds:

 

Reply to request 0 from 10.1.23.3, 148 ms

R1#

 

Observation:

·         Multicast is working fine.

 

·         Now, let me check multicast routing table:

 

R1#show ip mroute

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

 

(*, 224.0.1.40), 00:10:08/00:02:52, RP 0.0.0.0, flags: DCL

  Incoming interface: Null, RPF nbr 0.0.0.0

  Outgoing interface list:

    FastEthernet0/0, Forward/Dense, 00:10:08/00:00:00

 

R1#

 

R2#show ip mroute

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

 

(*, 227.27.27.27), 00:02:43/stopped, RP 0.0.0.0, flags: D

  Incoming interface: Null, RPF nbr 0.0.0.0

  Outgoing interface list:

    FastEthernet0/1, Forward/Dense, 00:02:43/00:00:00

    FastEthernet0/0, Forward/Dense, 00:02:43/00:00:00

 

(1.1.1.1, 227.27.27.27), 00:02:43/00:02:53, flags: T

  Incoming interface: FastEthernet0/0, RPF nbr 10.1.12.1

  Outgoing interface list:

    FastEthernet0/1, Forward/Dense, 00:02:43/00:00:00

 

(*, 224.0.1.40), 00:10:22/00:02:45, RP 0.0.0.0, flags: DCL

  Incoming interface: Null, RPF nbr 0.0.0.0

  Outgoing interface list:

    FastEthernet0/1, Forward/Dense, 00:06:00/00:00:00

    FastEthernet0/0, Forward/Dense, 00:10:22/00:00:00

 

R2#

 

R3#show ip mroute

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

 

(*, 227.27.27.27), 00:04:14/stopped, RP 0.0.0.0, flags: DCL

  Incoming interface: Null, RPF nbr 0.0.0.0

  Outgoing interface list:

    Loopback0, Forward/Dense, 00:04:14/00:00:00

    FastEthernet0/1, Forward/Dense, 00:04:14/00:00:00

 

(1.1.1.1, 227.27.27.27), 00:02:52/00:02:35, flags: LT

  Incoming interface: FastEthernet0/1, RPF nbr 10.1.23.2

  Outgoing interface list:

    Loopback0, Forward/Dense, 00:02:52/00:00:00

 

(*, 224.0.1.40), 00:06:10/00:02:35, RP 0.0.0.0, flags: DCL

  Incoming interface: Null, RPF nbr 0.0.0.0

  Outgoing interface list:

    FastEthernet0/1, Forward/Dense, 00:06:10/00:00:00

 

R3#

 

R1#show ip pim interface

 

Address          Interface                Ver/   Nbr    Query  DR     DR

                                          Mode   Count  Intvl  Prior

10.1.12.1        FastEthernet0/0          v2/D   1      30     1      10.1.12.2

R1#

 

R2#show ip pim interface

 

Address          Interface                Ver/   Nbr    Query  DR     DR

                                          Mode   Count  Intvl  Prior

10.1.12.2        FastEthernet0/0          v2/D   1      30     1      10.1.12.2

10.1.23.2        FastEthernet0/1          v2/D   1      30     1      10.1.23.3

R2#

 

R3#show ip pim interface

 

Address          Interface                Ver/   Nbr    Query  DR     DR

                                          Mode   Count  Intvl  Prior

10.1.23.3        FastEthernet0/1          v2/D   1      30     1      10.1.23.3

3.3.3.3          Loopback0                v2/D   0      30     1      3.3.3.3

R3#

No comments:

Post a Comment