Jump to content

Recommended Posts

Posted (edited)

Evening all.

 

Undergoing some changes in the setup here and our current CCTV system uses an old switch-to-switch VLAN, with no records of the cameras installed.

 

Is there any command anyone knows of that a switch could run that'd return all the IP addresses (also MAC addresses would be nice) of all devices on a particular VLAN? Something in LLDP I'm thinking?

 

Bit out of my depth on that one but if anyone does know that'd be splendid.

 

Thanks all.

Edited by Madman_Lorenzo
Posted
Can you see from the arp cache on the computer running the central controller? Doesn't the software itself have a list? If you know the ip range it's easy enough
  • Thanks 1
Posted
Can you see from the arp cache on the computer running the central controller?

 

good point, once something has connected just query the arp cache for the mac address

  • Thanks 1
Posted

What switches are you running?

 

The following might be useful (Cisco command).

 

Show Mac Address-Table

 

The problem with LLDP it requires the end device to support it and have it enabled.

  • Thanks 1
Posted

Also Wireshark - I've found several errant devices with static IPs on the wrong VLAN/Subnet by just looking for unexpected IPs* in a Wireshark capture.

 

 

*by filtering out the expected.

  • Thanks 2
Posted
Also Wireshark - I've found several errant devices with static IPs on the wrong VLAN/Subnet by just looking for unexpected IPs* in a Wireshark capture.

 

 

*by filtering out the expected.

 

Good shout!

Posted

First of all you're all great, thanks much for coming to my aid here.

 

#show mac address-table got me at least the MAC addresses in the end, from there I can determine the IPs if I need.

 

Very grateful. :)

Posted (edited)

For Aruba/HP, On a layer 3 switch where the vlan is routed i.e. it's default gateway.

 

All arp entries

sh arp

 

Search for a IP address from a known mac address

sh arp | include [MAC-ADDRESS]

 

Search for a MAC address from a known IP address

sh arp | include [iP ADDRESS]

 

Search by specific vlan

sh arp vlan [VLAN ID]

 

From a windows desktop if you know the IP you can ping then list the arp table by running command arp -a very handy if you have a rogue DHCP server and are running on a effected client

Edited by Davit2005
  • Thanks 1
  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...