Meg*_*lav 5 ip switch juniper junos interface
对不起,如果我的解释令人困惑。我需要获取瞻博网络交换机和路由器(不同型号)的所有 IP 地址。在 Cisco IOS 上,我可以通过以下方式获得show ip interface brief | exclude unassigned:
cisco_device>show ip interface brief | exclude unassigned
Interface IP-Address OK? Method Status Protocol
TenGigabitEthernet1/30 10.1.1.24 YES NVRAM up up
Loopback0 10.1.95.2 YES NVRAM up up
Port-channel15 10.1.1.150 YES NVRAM up up
Port-channel39 10.2.1.4 YES NVRAM up up
Port-channel100 10.3.1.2 YES NVRAM up up
Vlan49 10.4.1.40 YES NVRAM up up
Run Code Online (Sandbox Code Playgroud)
Junos 上有类似的东西吗?谢谢!
你可能想要show interfaces:
> show interfaces terse
Run Code Online (Sandbox Code Playgroud)
如果要排除没有 IP 的接口,可以匹配inet:
> show interfaces terse | match inet
Run Code Online (Sandbox Code Playgroud)