Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Sorry if my explanation is confusing. I need to get all the ip addresses of a Juniper Switch and Router (different models). On Cisco IOS I can get that with show ip interface brief | exclude unassigned:

cisco_device>show ip interface brief | exclude unassigned
Interface               IP-Address     OK? Method Status     Protocol
TenGigabitEthernet1/30      YES NVRAM  up         up      
Loopback0           YES NVRAM  up         up      
Port-channel15     YES NVRAM  up         up      
Port-channel39       YES NVRAM  up         up      
Port-channel100       YES NVRAM  up         up      
Vlan49              YES NVRAM  up         up      

Is there something similar on Junos? Thanks!

share|improve this question
up vote 2 down vote accepted

You probably want show interfaces:

> show interfaces terse

If you want to exclude interfaces without an IP you can match on inet:

> show interfaces terse | match inet
share|improve this answer
That's it! Thanks! – Megaslav Feb 19 '13 at 19:30
Is there a way to add the mac address to your command too? – Megaslav Feb 19 '13 at 19:39
@Megaslav You'd have to use the non-terse output which outputs the information on multiple lines, which is more difficult to filter. – mgorven Feb 19 '13 at 19:43

Your Answer


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.