2011年12月8日 星期四

cisco - multicast - pim - msdp - anycast rp - intra-as

cisco - multicast - pim - msdp - anycast rp - intra-as

Test item:

1. anycast rp

Topology:




On all routers (R1-R30), config static rp as 172.16.1.1:

ip pim rp-address 172.16.1.1



On RP (R4, R14 & R24):
1. configure loopback99 as 172.16.1.1/32
2. configure fully mesh msdp peering

R4:

enable
config term
interface lo99
ip address 172.16.1.1 255.255.255.255
exit
ip msdp peer 192.168.1.14 connect-source loopback0
ip msdp peer 192.168.2.24 connect-source loopback0
ip msdp originator-id lo0
end


R14:

enable
config term
interface lo99
ip address 172.16.1.1 255.255.255.255
exit
ip msdp peer 192.168.0.4 connect-source loopback0
ip msdp peer 192.168.2.24 connect-source loopback0
ip msdp originator-id lo0
end


R24:

enable
config term
interface lo99
ip address 172.16.1.1 255.255.255.255
exit
ip msdp peer 192.168.0.4 connect-source loopback0
ip msdp peer 192.168.1.14 connect-source loopback0
ip msdp originator-id lo0
end




On R10, R20 & R30, configure igmp join group on loopback0:

ip igmp join-group 225.0.0.1




ping 225.0.0.1 from R1:

R1#ping 225.0.0.1 repeat 2

Type escape sequence to abort.
Sending 2, 100-byte ICMP Echos to 225.0.0.1, timeout is 2 seconds:

Reply to request 0 from 192.168.0.10, 72 ms
Reply to request 0 from 192.168.2.30, 328 ms
Reply to request 0 from 192.168.2.30, 308 ms
Reply to request 0 from 192.168.2.30, 276 ms
Reply to request 0 from 192.168.1.20, 164 ms
Reply to request 0 from 192.168.1.20, 132 ms
Reply to request 0 from 192.168.1.20, 132 ms
Reply to request 0 from 192.168.1.20, 120 ms
Reply to request 0 from 192.168.0.10, 76 ms
Reply to request 0 from 192.168.0.10, 76 ms
Reply to request 1 from 192.168.0.10, 8 ms
Reply to request 1 from 192.168.1.20, 160 ms
Reply to request 1 from 192.168.2.30, 128 ms
Reply to request 1 from 192.168.0.10, 120 ms
Reply to request 1 from 192.168.1.20, 120 ms
Reply to request 1 from 192.168.2.30, 104 ms
Reply to request 1 from 192.168.2.30, 104 ms
Reply to request 1 from 192.168.1.20, 80 ms
Reply to request 1 from 192.168.0.10, 48 ms
R1#




check rp group-mapping on R1, R10, R20 & R30:

R1#show ip pim rp mapping
PIM Group-to-RP Mappings

Group(s): 224.0.0.0/4, Static
    RP: 172.16.1.1 (?)
R1#

R10#show ip pim rp mapping
PIM Group-to-RP Mappings

Group(s): 224.0.0.0/4, Static
    RP: 172.16.1.1 (?)
R10#

R20#show ip pim rp mapping
PIM Group-to-RP Mappings

Group(s): 224.0.0.0/4, Static
    RP: 172.16.1.1 (?)
R20#

R30#show ip pim rp mapping
PIM Group-to-RP Mappings

Group(s): 224.0.0.0/4, Static
    RP: 172.16.1.1 (?)
R30#




Traceroute 172.16.1.1 from R1, R10, R20 & R30:

R1#tr 172.16.1.1

Type escape sequence to abort.
Tracing the route to 172.16.1.1

  1 1.0.0.14 8 msec *  8 msec
R1#

R10#tr 172.16.1.1

Type escape sequence to abort.
Tracing the route to 172.16.1.1

  1 1.0.0.37 12 msec 20 msec 12 msec
  2 1.0.0.29 20 msec 20 msec 12 msec
  3 1.0.0.17 16 msec *  24 msec
R10#

R20#tr 172.16.1.1

Type escape sequence to abort.
Tracing the route to 172.16.1.1

  1 1.1.1.37 12 msec 8 msec 8 msec
  2 1.1.1.29 24 msec 16 msec 12 msec
  3 1.1.1.17 16 msec *  4 msec
R20#

R30#tr 172.16.1.1

Type escape sequence to abort.
Tracing the route to 172.16.1.1

  1 1.2.2.37 20 msec 4 msec 8 msec
  2 1.2.2.29 8 msec 8 msec 8 msec
  3 1.2.2.17 20 msec *  12 msec
R30#




Shutdown all the BI link on R24:

R24#show int desc | in BI
Se3/0                          admin down     down     BI~R24-s3_0~T1~R21-s3_2 ~
Se3/1                          admin down     down     BI~R24-s3_1~T1~R25-s3_0 ~
R24#




ping 225.0.0.1 from R1:

R1#ping 225.0.0.1 repeat 2

Type escape sequence to abort.
Sending 2, 100-byte ICMP Echos to 225.0.0.1, timeout is 2 seconds:

Reply to request 0 from 192.168.0.10, 12 ms
Reply to request 0 from 192.168.1.20, 272 ms
Reply to request 0 from 192.168.1.20, 272 ms
Reply to request 0 from 192.168.2.30, 260 ms
Reply to request 0 from 192.168.1.20, 252 ms
Reply to request 0 from 192.168.2.30, 224 ms
Reply to request 0 from 192.168.2.30, 192 ms
Reply to request 0 from 192.168.0.10, 164 ms
Reply to request 0 from 192.168.0.10, 140 ms
Reply to request 1 from 192.168.0.10, 64 ms
Reply to request 1 from 192.168.2.30, 156 ms
Reply to request 1 from 192.168.1.20, 156 ms
Reply to request 1 from 192.168.2.30, 144 ms
Reply to request 1 from 192.168.1.20, 144 ms
Reply to request 1 from 192.168.0.10, 104 ms
Reply to request 1 from 192.168.1.20, 104 ms
Reply to request 1 from 192.168.2.30, 84 ms
Reply to request 1 from 192.168.0.10, 64 ms
R1#




check rp group-mapping on R1, R10, R20 & R30:

R1#show ip pim rp mapping
PIM Group-to-RP Mappings

Group(s): 224.0.0.0/4, Static
    RP: 172.16.1.1 (?)
R1#

R10#show ip pim rp mapping
PIM Group-to-RP Mappings

Group(s): 224.0.0.0/4, Static
    RP: 172.16.1.1 (?)
R10#

R20#show ip pim rp mapping
PIM Group-to-RP Mappings

Group(s): 224.0.0.0/4, Static
    RP: 172.16.1.1 (?)
R20#

R30#show ip pim rp mapping
PIM Group-to-RP Mappings

Group(s): 224.0.0.0/4, Static
    RP: 172.16.1.1 (?)
R30#




Traceroute 172.16.1.1 from R1, R10, R20 & R30:

R1#tr 172.16.1.1

Type escape sequence to abort.
Tracing the route to 172.16.1.1

  1 1.0.0.14 36 msec *  12 msec
R1#

R10#tr 172.16.1.1

Type escape sequence to abort.
Tracing the route to 172.16.1.1

  1 1.0.0.37 36 msec 8 msec 8 msec
  2 1.0.0.29 16 msec 20 msec 12 msec
  3 1.0.0.17 16 msec *  40 msec
R10#

R20#tr 172.16.1.1

Type escape sequence to abort.
Tracing the route to 172.16.1.1

  1 1.1.1.37 24 msec 8 msec 4 msec
  2 1.1.1.29 8 msec 12 msec 8 msec
  3 1.1.1.17 12 msec *  52 msec
R20#

R30#tr 172.16.1.1

Type escape sequence to abort.
Tracing the route to 172.16.1.1

  1 1.2.2.37 36 msec 4 msec 8 msec
  2 1.2.2.34 16 msec 8 msec 20 msec
  3 1.1.1.41 8 msec 28 msec 8 msec
  4 1.1.1.25 16 msec 24 msec 36 msec
  5 1.1.1.21 12 msec 20 msec 48 msec
  6 1.1.1.17 20 msec *  32 msec
R30#




Shutdown all BI link on R14:

R14#show int desc | in BI
Se3/0                          admin down     down     BI~R14-s3_0~T1~R11-s3_1 ~
Se3/1                          admin down     down     BI~R14-s3_1~T1~R15-s3_0 ~
R14#




ping 225.0.0.1 from R1:

R1#ping 225.0.0.1 repeat 2

Type escape sequence to abort.
Sending 2, 100-byte ICMP Echos to 225.0.0.1, timeout is 2 seconds:

Reply to request 0 from 192.168.0.10, 100 ms
Reply to request 0 from 192.168.2.30, 308 ms
Reply to request 0 from 192.168.1.20, 304 ms
Reply to request 0 from 192.168.1.20, 304 ms
Reply to request 0 from 192.168.1.20, 284 ms
Reply to request 0 from 192.168.1.20, 284 ms
Reply to request 0 from 192.168.2.30, 248 ms
Reply to request 0 from 192.168.2.30, 240 ms
Reply to request 0 from 192.168.2.30, 204 ms
Reply to request 0 from 192.168.0.10, 164 ms
Reply to request 0 from 192.168.0.10, 152 ms
Reply to request 0 from 192.168.0.10, 100 ms
Reply to request 1 from 192.168.0.10, 28 ms
Reply to request 1 from 192.168.2.30, 144 ms
Reply to request 1 from 192.168.1.20, 144 ms
Reply to request 1 from 192.168.1.20, 124 ms
Reply to request 1 from 192.168.1.20, 120 ms
Reply to request 1 from 192.168.2.30, 108 ms
Reply to request 1 from 192.168.2.30, 104 ms
Reply to request 1 from 192.168.0.10, 32 ms
Reply to request 1 from 192.168.0.10, 28 ms
R1#




check rp group-mapping on R1, R10, R20 & R30:

R1#show ip pim rp mapping
PIM Group-to-RP Mappings

Group(s): 224.0.0.0/4, Static
    RP: 172.16.1.1 (?)
R1#

R10#show ip pim rp mapping
PIM Group-to-RP Mappings

Group(s): 224.0.0.0/4, Static
    RP: 172.16.1.1 (?)
R10#

R20#show ip pim rp mapping
PIM Group-to-RP Mappings

Group(s): 224.0.0.0/4, Static
    RP: 172.16.1.1 (?)
R20#

R30#show ip pim rp mapping
PIM Group-to-RP Mappings

Group(s): 224.0.0.0/4, Static
    RP: 172.16.1.1 (?)
R30#




Traceroute 172.16.1.1 from R1, R10, R20 & R30:

R1#tr 172.16.1.1

Type escape sequence to abort.
Tracing the route to 172.16.1.1

  1 1.0.0.14 20 msec *  8 msec
R1#

R10#tr 172.16.1.1

Type escape sequence to abort.
Tracing the route to 172.16.1.1

  1 1.0.0.37 40 msec 8 msec 8 msec
  2 1.0.0.29 12 msec 12 msec 20 msec
  3 1.0.0.17 16 msec *  24 msec
R10#

R20#tr 172.16.1.1

Type escape sequence to abort.
Tracing the route to 172.16.1.1

  1 1.1.1.37 20 msec 16 msec 8 msec
  2 1.1.1.29 20 msec 16 msec 24 msec
  3 1.1.1.22 12 msec 24 msec 12 msec
  4 1.1.1.9 40 msec 24 msec 32 msec
  5 1.0.0.45 16 msec 56 msec 12 msec
  6 1.0.0.37 44 msec 40 msec 16 msec
  7 1.0.0.29 88 msec 44 msec 24 msec
  8 1.0.0.17 92 msec *  52 msec
R20#

R30#tr 172.16.1.1

Type escape sequence to abort.
Tracing the route to 172.16.1.1

  1 1.2.2.37 32 msec 12 msec 8 msec
  2 1.2.2.34 32 msec 12 msec 24 msec
  3 1.1.1.41 12 msec 16 msec 4 msec
  4 1.1.1.25 28 msec 20 msec 16 msec
  5 1.1.1.9 44 msec 12 msec 56 msec
  6 1.0.0.45 40 msec 40 msec 72 msec
  7 1.0.0.37 44 msec 44 msec 40 msec
  8 1.0.0.29 60 msec 60 msec 44 msec
  9 1.0.0.17 52 msec *  80 msec
R30#

  


Check ip msdp status on R4:

R4#show ip msdp count
SA State per Peer Counters, <Peer>: <# SA learned>
    192.168.1.14: 0
    192.168.2.24: 0

SA State per ASN Counters, <asn>: <# sources>/<# groups>
    Total entries: 0
R4#

R4#show ip msdp peer
MSDP Peer 192.168.1.14 (?), AS ?
  Connection status:
    State: Up, Resets: 1, Connection source: Loopback0 (192.168.0.4)
    Uptime(Downtime): 00:12:46, Messages sent/received: 17/13
    Output messages discarded: 0
    Connection and counters cleared 01:21:19 ago
  SA Filtering:
    Input (S,G) filter: none, route-map: none
    Input RP filter: none, route-map: none
    Output (S,G) filter: none, route-map: none
    Output RP filter: none, route-map: none
  SA-Requests:
    Input filter: none
  Peer ttl threshold: 0
  SAs learned from this peer: 0
  Number of connection transitions to Established state: 2
    Input queue size: 0, Output queue size: 0
  MD5 signature protection on MSDP TCP connection: not enabled
  Message counters:
    RPF Failure count: 0
    SA Messages in/out: 0/1
    SA Requests in: 0
    SA Responses out: 0
    Data Packets in/out: 0/3
MSDP Peer 192.168.2.24 (?), AS ?
  Connection status:
    State: Up, Resets: 1, Connection source: Loopback0 (192.168.0.4)
    Uptime(Downtime): 00:11:48, Messages sent/received: 16/12
    Output messages discarded: 0
    Connection and counters cleared 01:21:18 ago
  SA Filtering:
    Input (S,G) filter: none, route-map: none
    Input RP filter: none, route-map: none
    Output (S,G) filter: none, route-map: none
    Output RP filter: none, route-map: none
  SA-Requests:
    Input filter: none
  Peer ttl threshold: 0
  SAs learned from this peer: 0
  Number of connection transitions to Established state: 2
    Input queue size: 0, Output queue size: 0
  MD5 signature protection on MSDP TCP connection: not enabled
  Message counters:
    RPF Failure count: 0
    SA Messages in/out: 0/1
    SA Requests in: 0
    SA Responses out: 0
    Data Packets in/out: 0/3
R4#

R4#show ip msdp rpf-peer 192.168.1.14
This command requires "ip msdp rpf rfc3618" to be configured.
R4#

R4#show ip msdp sa-cache
MSDP Source-Active Cache - 0 entries
R4#

R4#show ip msdp summary
MSDP Peer Status Summary
Peer Address     AS    State    Uptime/  Reset SA    Peer Name
                                Downtime Count Count
192.168.1.14     ?     Up       00:14:01 1     0     ?
192.168.2.24     ?     Up       00:13:03 1     0     ?
R4#



Check ip msdp status on R14:

R14#show ip msdp count
SA State per Peer Counters, <Peer>: <# SA learned>
    192.168.0.4: 3
    192.168.2.24: 0

SA State per ASN Counters, <asn>: <# sources>/<# groups>
    Total entries: 3
    ?: 3/1
R14#

R14#show ip msdp peer
MSDP Peer 192.168.0.4 (?), AS ?
  Connection status:
    State: Up, Resets: 1, Connection source: Loopback0 (192.168.1.14)
    Uptime(Downtime): 00:15:58, Messages sent/received: 16/21
    Output messages discarded: 0
    Connection and counters cleared 01:23:15 ago
  SA Filtering:
    Input (S,G) filter: none, route-map: none
    Input RP filter: none, route-map: none
    Output (S,G) filter: none, route-map: none
    Output RP filter: none, route-map: none
  SA-Requests:
    Input filter: none
  Peer ttl threshold: 0
  SAs learned from this peer: 3
  Number of connection transitions to Established state: 2
    Input queue size: 0, Output queue size: 0
  MD5 signature protection on MSDP TCP connection: not enabled
  Message counters:
    RPF Failure count: 0
    SA Messages in/out: 8/0
    SA Requests in: 0
    SA Responses out: 0
    Data Packets in/out: 2/0
MSDP Peer 192.168.2.24 (?), AS ?
  Connection status:
    State: Up, Resets: 1, Connection source: Loopback0 (192.168.1.14)
    Uptime(Downtime): 00:15:14, Messages sent/received: 20/20
    Output messages discarded: 0
    Connection and counters cleared 01:23:15 ago
  SA Filtering:
    Input (S,G) filter: none, route-map: none
    Input RP filter: none, route-map: none
    Output (S,G) filter: none, route-map: none
    Output RP filter: none, route-map: none
  SA-Requests:
    Input filter: none
  Peer ttl threshold: 0
  SAs learned from this peer: 0
  Number of connection transitions to Established state: 2
    Input queue size: 0, Output queue size: 0
  MD5 signature protection on MSDP TCP connection: not enabled
  Message counters:
    RPF Failure count: 8
    SA Messages in/out: 8/6
    SA Requests in: 0
    SA Responses out: 0
    Data Packets in/out: 2/0
R14# 

R14#show ip msdp sa-cache
MSDP Source-Active Cache - 3 entries
(1.0.0.1, 225.0.0.1), RP 192.168.0.4, AS ?,00:04:46/00:04:26, Peer 192.168.0.4
(1.0.0.13, 225.0.0.1), RP 192.168.0.4, AS ?,00:04:46/00:05:20, Peer 192.168.0.4
(192.168.0.1, 225.0.0.1), RP 192.168.0.4, AS ?,00:04:46/00:03:33, Peer 192.168.0.4
R14#

R14#show ip msdp summary
MSDP Peer Status Summary
Peer Address     AS    State    Uptime/  Reset SA    Peer Name
                                Downtime Count Count
192.168.0.4      ?     Up       00:16:47 1     3     ?
192.168.2.24     ?     Up       00:16:03 1     0     ?
R14#



Check ip msdp status on R24:

R24#show ip msdp count
SA State per Peer Counters, <Peer>: <# SA learned>
    192.168.0.4: 3
    192.168.1.14: 0

SA State per ASN Counters, <asn>: <# sources>/<# groups>
    Total entries: 3
    ?: 3/1
R24#

R24#show ip msdp peer
MSDP Peer 192.168.0.4 (?), AS ?
  Connection status:
    State: Up, Resets: 1, Connection source: Loopback0 (192.168.2.24)
    Uptime(Downtime): 00:17:14, Messages sent/received: 18/22
    Output messages discarded: 0
    Connection and counters cleared 01:25:04 ago
  SA Filtering:
    Input (S,G) filter: none, route-map: none
    Input RP filter: none, route-map: none
    Output (S,G) filter: none, route-map: none
    Output RP filter: none, route-map: none
  SA-Requests:
    Input filter: none
  Peer ttl threshold: 0
  SAs learned from this peer: 3
  Number of connection transitions to Established state: 2
    Input queue size: 0, Output queue size: 0
  MD5 signature protection on MSDP TCP connection: not enabled
  Message counters:
    RPF Failure count: 0
    SA Messages in/out: 8/0
    SA Requests in: 0
    SA Responses out: 0
    Data Packets in/out: 2/0
MSDP Peer 192.168.1.14 (?), AS ?
  Connection status:
    State: Up, Resets: 1, Connection source: Loopback0 (192.168.2.24)
    Uptime(Downtime): 00:17:28, Messages sent/received: 22/22
    Output messages discarded: 0
    Connection and counters cleared 01:25:04 ago
  SA Filtering:
    Input (S,G) filter: none, route-map: none
    Input RP filter: none, route-map: none
    Output (S,G) filter: none, route-map: none
    Output RP filter: none, route-map: none
  SA-Requests:
    Input filter: none
  Peer ttl threshold: 0
  SAs learned from this peer: 0
  Number of connection transitions to Established state: 2
    Input queue size: 0, Output queue size: 0
  MD5 signature protection on MSDP TCP connection: not enabled
  Message counters:
    RPF Failure count: 9
    SA Messages in/out: 9/7
    SA Requests in: 0
    SA Responses out: 0
    Data Packets in/out: 2/0
R24#         

R24#show ip msdp sa-cache
MSDP Source-Active Cache - 3 entries
(1.0.0.1, 225.0.0.1), RP 192.168.0.4, AS ?,00:06:58/00:02:05, Peer 192.168.0.4
(1.0.0.13, 225.0.0.1), RP 192.168.0.4, AS ?,00:06:58/00:02:59, Peer 192.168.0.4
(192.168.0.1, 225.0.0.1), RP 192.168.0.4, AS ?,00:06:58/00:02:05, Peer 192.168.0.4
R24#

R24#show ip msdp summary
MSDP Peer Status Summary
Peer Address     AS    State    Uptime/  Reset SA    Peer Name
                                Downtime Count Count
192.168.0.4      ?     Up       00:19:45 1     3     ?
192.168.1.14     ?     Up       00:19:59 1     0     ?
R24#



Enable ip msdp rpf rfc3618 on R4, R14 & R24:

R4#show ip msdp summary 
MSDP Peer Status Summary
Peer Address     AS    State    Uptime/  Reset SA    Peer Name
                                Downtime Count Count
192.168.1.14     ?     Up       00:23:12 1     0     ?
192.168.2.24     ?     Up       00:22:14 1     0     ?
R4#
R4#show ip msdp rpf-peer 192.168.1.14
RPF peer information for ? (192.168.1.14)
  RPF peer: ? (192.168.1.14)
  RPF route/mask: 192.168.1.14/32
  RPF rule: Peer is RP
  RPF type: unicast (ospf 1)
R4#
R4#show ip msdp rpf-peer 192.168.2.24
RPF peer information for ? (192.168.2.24)
  RPF peer: ? (192.168.2.24)
  RPF route/mask: 192.168.2.24/32
  RPF rule: Peer is RP
  RPF type: unicast (ospf 1)
R4#

R14#show ip msdp summary        
MSDP Peer Status Summary
Peer Address     AS    State    Uptime/  Reset SA    Peer Name
                                Downtime Count Count
192.168.0.4      ?     Up       00:24:06 1     0     ?
192.168.2.24     ?     Up       00:23:22 1     0     ?
R14#show ip msdp rpf-peer 192.168.0.4
RPF peer information for ? (192.168.0.4)
  RPF peer: ? (192.168.0.4)
  RPF route/mask: 192.168.0.4/32
  RPF rule: Peer is RP
  RPF type: unicast (ospf 1)
R14#
R14#show ip msdp rpf-peer 192.168.2.24
RPF peer information for ? (192.168.2.24)
  RPF peer: ? (192.168.2.24)
  RPF route/mask: 192.168.2.24/32
  RPF rule: Peer is RP
  RPF type: unicast (ospf 1)
R14#

R24#show ip msdp sum
MSDP Peer Status Summary
Peer Address     AS    State    Uptime/  Reset SA    Peer Name
                                Downtime Count Count
192.168.0.4      ?     Up       00:24:03 1     0     ?
192.168.1.14     ?     Up       00:24:16 1     0     ?
R24#
R24#show ip msdp rpf-peer 192.168.0.4
RPF peer information for ? (192.168.0.4)
  RPF peer: ? (192.168.0.4)
  RPF route/mask: 192.168.0.4/32
  RPF rule: Peer is RP
  RPF type: unicast (ospf 1)
R24#
R24#show ip msdp rpf-peer 192.168.1.14
RPF peer information for ? (192.168.1.14)
  RPF peer: ? (192.168.1.14)
  RPF route/mask: 192.168.1.14/32
  RPF rule: Peer is RP
  RPF type: unicast (ospf 1)
R24#
 

沒有留言:

張貼留言