Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

This is the same as this question, but for Nexus: Junos: find out each interface's ip

I need to show all interfaces with their respective IPs. I know that on IOS I can get that with show ip interface brief | exclude unassigned and on Junos with show interfaces terse | match inet.

If I execute show ip interface brief on this device, I get an empty output:

IP Interface Status for VRF "default"(1)
Interface            IP Address      Interface Status

However the device has several Eth interfaces with status up.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

You would need to issue: sh ip int brief operational vrf all to get what you are looking for. What is probably happening is all of your IP addresses are assigned to the "management" VRF and sh ip interface brief only shows the default VRF.

When I run the all I get:

ny-nexus01# sh ip int brief operational vrf all
IP Interface Status for VRF "management"(2)
Interface            IP Address      Interface Status
mgmt0                10.7.6.5        protocol-up/link-up/admin-up       

IP Interface Status for VRF "default"(1)
Interface            IP Address      Interface Status

ny-nexus01# 

You can also optionally specify the exact VRF you want, so to get management IPs you would do sh ip int brief operational vrf management

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.