cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1222
Views
35
Helpful
4
Replies

best way to search QinQ interface in ASR9k

scarax75cisco
Level 1
Level 1

Hi all, 

 

I’m looking for a simple way, except for the "show run | beg Interface R/S/I/P" command, to find the sub-interface with a specific "inner" and "outer" vlan.

for example, I have the configuration shown below with other 300 sub-if; how can I find the interface with encapsulation dot1q 537 and second-dot1q 2 (in this case the sub-if 5) without show all interface configuration?

 

interface GigabitEthernet0/0/1/0.2 l2transport
encapsulation dot1q 388 second-dot1q 2
rewrite ingress tag pop 2 symmetric
!
interface GigabitEthernet0/0/1/0.3 l2transport
encapsulation dot1q 257 second-dot1q 2
rewrite ingress tag pop 2 symmetric
!
interface GigabitEthernet0/0/1/0.4 l2transport
encapsulation dot1q 173 second-dot1q 2
rewrite ingress tag pop 2 symmetric
!
interface GigabitEthernet0/0/1/0.5 l2transport
encapsulation dot1q 537 second-dot1q 2
rewrite ingress tag pop 2 symmetric
!
interface GigabitEthernet0/0/1/0.6 l2transport
encapsulation dot1q 297 second-dot1q 3
rewrite ingress tag pop 2 symmetric
!
interface GigabitEthernet0/0/1/0.7 l2transport
encapsulation dot1q 6 second-dot1q 2
rewrite ingress tag pop 2 symmetric
!
interface GigabitEthernet0/0/1/0.8 l2transport
encapsulation dot1q 248 second-dot1q 5
rewrite ingress tag pop 2 symmetric

!
interface GigabitEthernet0/0/1/0.9 l2transport
encapsulation dot1q 118 second-dot1q 2
rewrite ingress tag pop 2 symmetric
!
interface GigabitEthernet0/0/1/0.10 l2transport
encapsulation dot1q 188 second-dot1q 3
rewrite ingress tag pop 2 symmetric
!
------omitted------

 

thanks in advance for your response

 

Scarax

4 Replies 4

Javier Acuña
Spotlight
Spotlight

Saludos espero te encuentres bien esta muy buena tu inquietud un comando que podrías utilizar el siguiente comando.

 

sh inter summary | include xx

 

con esta opción podrás ver todas las interfaces del dispositivo.

 

Recuerda por favor darle click en la estrellita ya que esto motiva a seguir apoyando en la comunidad, saludos

scarax75cisco
Level 1
Level 1

Sorry, 

 

but, in ASR9k, with the command "show int summary", returns the number of interfaces in the device.

 

RP/0/RSP0/CPU0:xxxxxxx#show int summary
Thu Jan 28 15:02:55.786 CET
Interface Type Total UP Down Admin Down
-------------- ----- -- ---- ----------
ALL TYPES 8790 8591 109 90
--------------
IFT_BVI 33 26 3 4
IFT_ETHERBUNDLE 6 6 0 0
IFT_VLAN_SUBIF 8393 8383 9 1
IFT_GETHERNET 100 1 34 65
IFT_SATELLITE_GIGE 120 82 38 0
IFT_HUNDREDGE 16 5 2 9
IFT_LOOPBACK 5 5 0 0
IFT_ETHERNET 4 0 0 4
IFT_NULL 1 1 0 0
IFT_PTP_ETHERNET 2 0 0 2
IFT_TENGETHERNET 92 70 17 5
IFT_NVFAB_GIGE 6 0 6 0
IFT_NVFAB_TENGIGE 12 12 0 0

 

Scarax

 

 

hello you can use the section command to locate the exact content
for example:

Sh run | section Vlan xx

you can try the following command sh run | ? these commands will indicate the search format

Hi all, 

 

in asr9k the "section" option is not available after the "| "

ASR9k,  offer a set of "utility" like grep in unix, but until now, I haven’t found a good combination to do that.
For example, in the 7600 there is the command


show vlans dot1q 101 second-dot1q 1001 detail

 

but, this command (as written in the various reference guides) in not available in asr9k (as also in 10000)

Note  The show vlans dot1q command is not supported on the Cisco 10000 series router

 

BR

scarax

Review Cisco Networking for a $25 gift card