Solved

Cisco sg300 - port to IP mapping ?

Posted on 2012-12-26
8
2,721 Views
Last Modified: 2013-01-09
Hello

is there a way to find out a mapping between physical port on the switch and the IP address of the connected device ?

Thanks & regards
0
Comment
Question by:Alexandre Takacs
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 9

Expert Comment

by:Sandeep Gupta
ID: 38721113
more specifically..I think you want to see an IP address of the device connected to your cisco box?

if yes...

see your arp table..it will show you IP coming through connected port.

if it is DSL modem connected and you want to see the IP...then do "who" or "sh user"
0
 
LVL 1

Author Comment

by:Alexandre Takacs
ID: 38721159
see your arp table..it will show you IP coming through connected port.
Hmmm... Here is what I get:

  VLAN 1   00:08:5d:82:d1:e4    GE6    
  VLAN 1   00:08:9b:cc:cb:85    GE48    
  VLAN 1   00:0f:fe:2d:00:4c    GE7    
  VLAN 1   00:12:79:48:a2:56    GE50    
  VLAN 1   00:14:c2:3b:11:08    GE49    
  VLAN 1   00:15:99:4b:ac:15    GE50    
  VLAN 1   00:16:46:a2:f6:ce    GE8    
  VLAN 1   00:19:66:2d:15:02    GE29    
  VLAN 1   00:21:9b:72:f6:d0    GE5    
  VLAN 1   00:21:9b:73:00:63    GE23    
  VLAN 1   00:22:19:ca:7e:16    GE24    
  VLAN 1   00:23:18:f3:4e:93    GE35    
  VLAN 1   00:23:f8:62:ea:81    GE52    
  VLAN 1   00:25:64:b2:17:37    GE14    
  VLAN 1   00:40:8c:78:a8:6f    GE26    
  VLAN 1   00:c0:b7:61:58:21    GE36    
  VLAN 1   08:00:37:8e:ae:a8    GE50    
  VLAN 1   08:2e:5f:bc:95:b3    GE12    
  VLAN 1   14:fe:b5:de:4b:6e    GE30    
  VLAN 1   3c:07:54:27:ff:55    GE35    
  VLAN 1   80:ee:73:40:71:0a    GE31    
  VLAN 1   8c:89:a5:7d:c4:26    GE15    
  VLAN 1   8c:89:a5:7d:c6:41    GE25    
  VLAN 1   8c:89:a5:7d:cb:f1    GE3    
  VLAN 1   bc:30:5b:b0:e3:4b    GE9    
  VLAN 1   bc:30:5b:b0:e3:7b    GE11  

Open in new window


Better than nothing but if i could resolve the MAC to IP it would be most useful...
0
 
LVL 9

Expert Comment

by:Sandeep Gupta
ID: 38721166
to which port of your device it is connected?

check cdp neighbor.
0
Veeam gives away 10 full conference passes

Veeam is a VMworld 2017 US & Europe Platinum Sponsor. Enter the raffle to get the full conference pass. Pass includes the admission to all general and breakout sessions, VMware Hands-On Labs, Solutions Exchange, exclusive giveaways and the great VMworld Customer Appreciation Part

 
LVL 57

Accepted Solution

by:
giltjr earned 250 total points
ID: 38721168
That shows you the MAC address in the forwarding table and which port it see's that MAC address on.

That looks more like the output of "show mac table".  Not sure if on the SG300 the command to see the arp table is "show arp" or "show ip arp".  Try one of those, once you find the IP address you want to know about then do "show mac table | i x.x.x.x" where "x.x.x.x" is the IP address you want to know about.
0
 
LVL 17

Expert Comment

by:TimotiSt
ID: 38731562
You could enable DHCP snooping on the switch. That won't show you static IPs, though.

Tamas
0
 
LVL 1

Author Comment

by:Alexandre Takacs
ID: 38743057
Sorry a bit late responding - no sure how to "enable DHCP snooping" ? Most of our IPs are dynamic so it would be a godd starting point.
0
 
LVL 17

Assisted Solution

by:TimotiSt
TimotiSt earned 250 total points
ID: 38743300
Attached a CLI reference, see at "DHCP snooping".
Basically it inspects every DHCP request, and stores the IP addresses in them in a nice table on the switch. It's for preventing rogue DHCP servers primarily, but also great for port-to-IP mapping.

Tamas
CLI-300-1-2-5.pdf
0
 
LVL 1

Author Comment

by:Alexandre Takacs
ID: 38760355
Thanks - I believe that with the various pointers you gave me I shall be able to figure out which IP is used on which port.
0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I wrote this article to help simplify the process of combining multiple subnets. This can be used for route summarization also but there are other better ways to summarize routes, This article is a result of questions I participate in here at Ex…
AWS has developed and created its highly available global infrastructure allowing users to deploy and manage their estates all across the world through the use of the following geographical components   RegionsAvailability ZonesEdge Locations  Wh…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question