Day One Tips
Day One Tips

CLI command to check which interfaces belong to a specific routing-instance - "show interfaces terse routing-instance <>"

‎12-22-2016 02:26 AM

Hi All,

 

We often need to figure out which interfaces are part of which routing-instance during troubleshooting. This CLI command is very useful as it displays all the associated interfaces (internal and physical) with the specified routing-instance.

 

Usage:

show interfaces terse routing-instance <routing-instaince-name>

 

lab@lab> show interfaces terse routing-instance test1
Interface               Admin Link Proto    Local                 Remote
xe-2/0/3.0              up    up   inet     10.0.0.2/30     
                                   multiservice
lsi.4                   up    up   inet    
                                   iso     
                                   inet6  

 

lab@lab> show configuration routing-instances test1
instance-type vrf;
interface xe-2/0/3.0;
route-distinguisher 100:100;
vrf-target target:100:100;
vrf-table-label;
protocols {
    bgp {
        export test1;
        group ibgp {
            type external;
            export test1;
            neighbor 10.0.0.1 {
                peer-as 100;
                local-as 200;
            }
        }
    }
}

 

Techpubs link

 

If this post was helpful, please mark this post as an "Accepted Solution".
Kudos are always appreciated!

Hope this helps

--------------------------------------------------------------------------------------------------------
If this post was helpful, please mark this post as an "Accepted Solution".
Kudos are always appreciated!
--------------------------------------------------------------------------------------------------------