Junos
Junos

How to find out the device's IP address that connected to specific interface

‎04-30-2019 01:44 AM

If I have a wireless AP has its uplink (with fixed IP) connected to the SRX firewall interface fe-0/0/1. Is that possible to find out this AP IP address in SRX CLI?

6 REPLIES 6
Junos

Re: How to find out the device's IP address that connected to specific interface

‎04-30-2019 01:57 AM

 

-> show interfaces terse | match xe-4/0/0

-> show configuration | match xe-4/0/0 | display set | display inheritance

 

or you need to know remote IP:

 

-> show arp interface ge-1/1/0.0

 

 

re0> show interfaces terse | match xe-4/0/0
xe-4/0/0 up down
xe-4/0/0.0 up down inet 192.168.2.1 --> 0/0


re0> show configuration | match xe-4/0/0 | display set | display inheritance
set interfaces xe-4/0/0 unit 0 family inet address 192.168.2.1/32


re0# run show arp interface ge-1/1/0.0
MAC Address Address Name Interface Flags
64:87:88:5e:f3:50 50.1.1.2 50-1-1-2.dsl.dynamic.fusi ge-1/1/0.0 none

 

 

 

/Karan Dhanak
# Please mark my solution as accepted if it helped, Kudos are appreciated as well.

Junos

Re: How to find out the device's IP address that connected to specific interface

‎05-20-2019 12:11 AM

Sorry for the late reply. But the method of "show interface | match" and "show arp" were not work. There is no result show.

Junos

Re: How to find out the device's IP address that connected to specific interface

‎05-20-2019 02:41 AM

Check out the below discussion to find the ip address of the device connected to an interface

 

https://forums.juniper.net/t5/Ethernet-Switching/how-to-find-IP-address-of-other-end-interface-link-...

 

Hope this helps

Junos

Re: How to find out the device's IP address that connected to specific interface

‎09-01-2019 08:29 PM

Hello raviky,

Thanks. But the topic you suggest to me seems not apply to my case. Even none of the reply was mark as solution.

Junos

Re: How to find out the device's IP address that connected to specific interface

‎09-05-2019 08:28 AM

Hi,

 

Try below:

1. Ping the broadcast IP in the subnet on your interface. I would expect all hosts in the subnet reply something. 

https://en.wikipedia.org/wiki/Broadcast_address

 

2. Ping the IP in the subnet one by one 

 


Mengzhe Hu
JNCIE x 3 (SP DC ENT)
Junos

Re: How to find out the device's IP address that connected to specific interface

‎09-05-2019 12:15 PM

Hi Jlotag, 

 

Does the AP support LLDP? you can try enabling LLDP for that interface , wait for some time then do  : 

 

show lldp neighbors interface ge-x/y/z   

 

I hope this help! , let me know your results.

Regards, 

Franky