Ethernet Switching
Ethernet Switching

How To Find MAC Address of device attached to switchport

07.13.11   |  
‎07-13-2011 01:45 AM

Hi all,

 

Is there any way to determine the mac address of the devices connected to the EX 3200 swich. i need the command to determine the mac address of the pc connected to the device.

 

Regards

 

Dil

4 REPLIES
Ethernet Switching

Re: How To Find MAC Address of device attached to switchport

07.13.11   |  
‎07-13-2011 03:40 AM

Try show ethernet-switching table brief

 

http://www.juniper.net/techpubs/en_US/junos11.1/topics/reference/command-summary/show-ethernet-switc...

 

show ethernet-switching table<brief | detail | extensive | summary><interface interface-name><management-vlan><sort-by (name | tag)><vlan vlan-name>

Steve Puluka BSEET
Juniper Ambassador
Senior IP Engineer - DQE Communications Pittsburgh, PA (Metro Ethernet & ISP)
JNCIA-Junos JNCIS-SEC JNCIP-SEC JNCSP-SEC
JNCIS-FWV
JNCDA JNCDS-DC JNCDS-SEC
JNCIS-SP
ACE PanOS 6 ACE PanOS 7
http://puluka.com/home
Ethernet Switching

Re: How To Find MAC Address of device attached to switchport

08.27.17   |  
‎08-27-2017 09:54 PM

How about the device IP address?

 

I know the device mac, connected to juniper port 0/0/1. How do i know the IP address of the device? (which is static)

 

Ethernet Switching

Re: How To Find MAC Address of device attached to switchport

08.28.17   |  
‎08-28-2017 02:12 AM

 


Akazi2017 wrote:

How about the device IP address?

 

I know the device mac, connected to juniper port 0/0/1. How do i know the IP address of the device? (which is static)

 


You could probably use a protocol that maps and IP to a mac address.

[KUDOS PLEASE! If you think I earned it!
If this solution worked for you please flag my post as an "Accepted Solution" so others can benefit..]
Ethernet Switching

Re: How To Find MAC Address of device attached to switchport

08.29.17   |  
‎08-29-2017 03:04 PM

The command show arp will also display the ip address.  But the switch needs ot have a layer 3 interface in that vlan for those to be present.  If the gateway is on an SRX then show arp there will display the mac along with the ip address.

Steve Puluka BSEET
Juniper Ambassador
Senior IP Engineer - DQE Communications Pittsburgh, PA (Metro Ethernet & ISP)
JNCIA-Junos JNCIS-SEC JNCIP-SEC JNCSP-SEC
JNCIS-FWV
JNCDA JNCDS-DC JNCDS-SEC
JNCIS-SP
ACE PanOS 6 ACE PanOS 7
http://puluka.com/home