cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3169
Views
0
Helpful
3
Replies

Clear MRIB on XR platform

anazarenko
Level 1
Level 1

Dear All,

Can anybody advise how to clear MRIB on XR similar to "clear ip mroute" on IOS platform.

1 Accepted Solution

Accepted Solutions

Hi Aleks,

I did a bit of reading and testing and came out with the following outcome. First, lets recap what is MRIB:

"MRIB is the central database through which information on multicast routing and host group interest is exchanged between various routing and forwarding multicast components."

Though it might be obvious to have a tool to purge the entire database, in IOS XR we need to interact with varios multicast components independently. The protocol used to build up (S,G) entries is PIM, wouldn't that be reasonable to clear it first? That was my logic and I managed to clear a route:

RP/0/RSP0/CPU0:XR#sh mrib route 239.4.4.4
Sun Jul 10 22:51:57.476 CEST

IP Multicast Routing Information Base
Entry flags: L - Domain-Local Source, E - External Source to the Domain,
    C - Directly-Connected Check, S - Signal, IA - Inherit Accept,
    IF - Inherit From, D - Drop, MA - MDT Address, ME - MDT Encap,
    MD - MDT Decap, MT - MDT Threshold Crossed, MH - MDT interface handle
    CD - Conditional Decap, MPLS - MPLS Decap, MF - MPLS Encap, EX - Extranet
    MoFE - MoFRR Enabled, MoFS - MoFRR State
Interface flags: F - Forward, A - Accept, IC - Internal Copy,
    NS - Negate Signal, DP - Don't Preserve, SP - Signal Present,
    II - Internal Interest, ID - Internal Disinterest, LI - Local Interest,
    LD - Local Disinterest, DI - Decapsulation Interface
    EI - Encapsulation Interface, MI - MDT Interface, LVIF - MPLS Encap,
    EX - Extranet, A2 - Secondary Accept

(*,239.4.4.4) RPF nbr: 10.0.0.1 Flags: C
  Up: 00:06:47
  Incoming Interface List
    Decapstunnel1 Flags: A, Up: 00:06:47
  Outgoing Interface List
    GigabitEthernet0/1/0/34 Flags: F NS, Up: 00:06:47
RP/0/RSP0/CPU0:XR#clear pim ipv4 t 239.4.4.4
Sun Jul 10 22:52:03.994 CEST
RP/0/RSP0/CPU0:XR#sh mrib route 239.4.4.4
Sun Jul 10 22:52:05.203 CEST
No matching routes in MRIB route-DB
RP/0/RSP0/CPU0:XR#

I hope that helped to answer your question and thanks for raising up a very useful point!

Cheers,

Ivan.

View solution in original post

3 Replies 3

Ivan Krimmel
Level 7
Level 7

Hi there,

please try 'clear mfib database '

Thanks!

Dear Ivan,

I think i tried it before without any luck. Here are my fresh tests:

RP/0/0/CPU0:ios#sh mrib  route 225.1.1.1                 

IP Multicast Routing Information Base

Entry flags: L - Domain-Local Source, E - External Source to the Domain,

    C - Directly-Connected Check, S - Signal, IA - Inherit Accept,

    IF - Inherit From, D - Drop, MA - MDT Address, ME - MDT Encap,

    MD - MDT Decap, MT - MDT Threshold Crossed, MH - MDT interface handle

    CD - Conditional Decap

Interface flags: F - Forward, A - Accept, IC - Internal Copy,

    NS - Negate Signal, DP - Don't Preserve, SP - Signal Present,

    II - Internal Interest, ID - Internal Disinterest, LI - Local Interest,

    LD - Local Disinterest, DI - Decapsulation Interface

    EI - Encapsulation Interface, MI - MDT Interface

(10.10.19.9,225.1.1.1) RPF nbr: 10.10.19.9 Flags:

  Up: 00:08:30

  Incoming Interface List

    GigabitEthernet0/4/0/0.19 Flags: F A NS, Up: 00:08:30

  Outgoing Interface List

    GigabitEthernet0/4/0/0.19 Flags: F A NS, Up: 00:08:30

RP/0/0/CPU0:ios#clear  mfib  database location  0/0/CPU0 

RP/0/0/CPU0:ios#RP/0/0/CPU0:Jul  9 06:50:20.648 : ipv4_mfwd_partner[230]: %ROUTING-IPV4_MFWD-5-CLEAN_ALL : All resource cleanup performed.  Exiting for fresh start

RP/0/0/CPU0:ios#clear  mfib  database location  0/4/CPU0

RP/0/0/CPU0:ios#LC/0/4/CPU0:Jul  9 06:50:25.816 : ipv4_mfwd_partner[170]: %ROUTING-IPV4_MFWD-5-CLEAN_ALL : All resource cleanup performed.  Exiting for fresh start

RP/0/0/CPU0:ios#

RP/0/0/CPU0:ios#clear  mfib  database location  ?       

  0/0/CPU0  Fully qualified location specification

  0/4/CPU0  Fully qualified location specification

  WORD      Fully qualified location specification

  all       All locations

RP/0/0/CPU0:ios#sh mrib  route 225.1.1.1                

IP Multicast Routing Information Base

Entry flags: L - Domain-Local Source, E - External Source to the Domain,

    C - Directly-Connected Check, S - Signal, IA - Inherit Accept,

    IF - Inherit From, D - Drop, MA - MDT Address, ME - MDT Encap,

    MD - MDT Decap, MT - MDT Threshold Crossed, MH - MDT interface handle

    CD - Conditional Decap

Interface flags: F - Forward, A - Accept, IC - Internal Copy,

    NS - Negate Signal, DP - Don't Preserve, SP - Signal Present,

    II - Internal Interest, ID - Internal Disinterest, LI - Local Interest,

    LD - Local Disinterest, DI - Decapsulation Interface

    EI - Encapsulation Interface, MI - MDT Interface

(10.10.19.9,225.1.1.1) RPF nbr: 10.10.19.9 Flags:

  Up: 00:08:49

  Incoming Interface List

    GigabitEthernet0/4/0/0.19 Flags: F A NS, Up: 00:08:49

  Outgoing Interface List

    GigabitEthernet0/4/0/0.19 Flags: F A NS, Up: 00:08:49

RP/0/0/CPU0:ios#sh mfib  route 225.1.1.1 location 0/0/CPU0

IP Multicast Forwarding Information Base

Entry flags: C - Directly-Connected Check, S - Signal, D - Drop,

  IA - Inherit Accept, IF - Inherit From, MA - MDT Address,

  ME - MDT Encap, MD - MDT Decap, MT - MDT Threshold Crossed,

  MH - MDT interface handle, CD - Conditional Decap,

  DT - MDT Decap True

Interface flags: F - Forward, A - Accept, IC - Internal Copy,

  NS - Negate Signal, DP - Don't Preserve, SP - Signal Present,

  EG - Egress, EI - Encapsulation Interface, MI - MDT Interface

Forwarding Counts: Packets in/Packets out/Bytes out

Failure Counts: RPF / TTL / Empty Olist / Encap RL / Other

(10.10.19.9,225.1.1.1),   Flags: 

  Up: 00:00:17

  Last Used: never

  SW Forwarding Counts: 0/0/0

  SW Failure Counts: 0/0/0/0/0

  GigabitEthernet0/4/0/0.19 Flags:  A NS, Up:00:00:17

Hi Aleks,

I did a bit of reading and testing and came out with the following outcome. First, lets recap what is MRIB:

"MRIB is the central database through which information on multicast routing and host group interest is exchanged between various routing and forwarding multicast components."

Though it might be obvious to have a tool to purge the entire database, in IOS XR we need to interact with varios multicast components independently. The protocol used to build up (S,G) entries is PIM, wouldn't that be reasonable to clear it first? That was my logic and I managed to clear a route:

RP/0/RSP0/CPU0:XR#sh mrib route 239.4.4.4
Sun Jul 10 22:51:57.476 CEST

IP Multicast Routing Information Base
Entry flags: L - Domain-Local Source, E - External Source to the Domain,
    C - Directly-Connected Check, S - Signal, IA - Inherit Accept,
    IF - Inherit From, D - Drop, MA - MDT Address, ME - MDT Encap,
    MD - MDT Decap, MT - MDT Threshold Crossed, MH - MDT interface handle
    CD - Conditional Decap, MPLS - MPLS Decap, MF - MPLS Encap, EX - Extranet
    MoFE - MoFRR Enabled, MoFS - MoFRR State
Interface flags: F - Forward, A - Accept, IC - Internal Copy,
    NS - Negate Signal, DP - Don't Preserve, SP - Signal Present,
    II - Internal Interest, ID - Internal Disinterest, LI - Local Interest,
    LD - Local Disinterest, DI - Decapsulation Interface
    EI - Encapsulation Interface, MI - MDT Interface, LVIF - MPLS Encap,
    EX - Extranet, A2 - Secondary Accept

(*,239.4.4.4) RPF nbr: 10.0.0.1 Flags: C
  Up: 00:06:47
  Incoming Interface List
    Decapstunnel1 Flags: A, Up: 00:06:47
  Outgoing Interface List
    GigabitEthernet0/1/0/34 Flags: F NS, Up: 00:06:47
RP/0/RSP0/CPU0:XR#clear pim ipv4 t 239.4.4.4
Sun Jul 10 22:52:03.994 CEST
RP/0/RSP0/CPU0:XR#sh mrib route 239.4.4.4
Sun Jul 10 22:52:05.203 CEST
No matching routes in MRIB route-DB
RP/0/RSP0/CPU0:XR#

I hope that helped to answer your question and thanks for raising up a very useful point!

Cheers,

Ivan.