Retrieving a list of all IP's and their ports from CLI
文章推薦指數: 80 %
I am needing help with commands I can run to get a list of ALL IP's and their associated ports from the CLI. I do not want a single ip and its port.
WelcometothenewCiscoCommunity.LEARNMOREabouttheupdatesandwhatiscoming.
AllCommunityThiscategoryThisboardKnowledgebaseUsers
cancel
Turnonsuggestions
Auto-suggesthelpsyouquicklynarrowdownyoursearchresultsbysuggestingpossiblematchesasyoutype.
Showingresultsfor
Searchinsteadfor
Didyoumean:
AllCommunity
Thiscategory
Thisboard
Results:
cancel
Startaconversation
CiscoCommunity
TechnologyandSupport
Networking
Switching
RetrievingalistofallIP'sandtheirportsfromCLI
Options
SubscribetoRSSFeed
MarkTopicasNew
MarkTopicasRead
FloatthisTopicforCurrentUser
Bookmark
Subscribe
Mute
PrinterFriendlyPage
25473
Views
5
Helpful
15
Replies
RetrievingalistofallIP'sandtheirportsfromCLI
jxke
Beginner
Options
MarkasNew
Bookmark
Subscribe
Mute
SubscribetoRSSFeed
Permalink
Print
EmailtoaFriend
ReportInappropriateContent
09-13-2017
11:09AM
-edited
03-08-2019
12:01PM
Ihavesearchedforsimilarpostsandhavefoundnothing.IamneedinghelpwithcommandsIcanruntogetalistofALL IP'sandtheirassociatedportsfromtheCLI.Idonotwantasingleipanditsport.That'stoomuchworkforourorganization. Icangetmac'sandportsorip'sandmacs.ButnotIP'sandports. Anyhelpwouldbegreatlyappreciated.Thankyou
1personhadthisproblem
Ihavethisproblemtoo
Labels:
Labels:
OtherSwitching
0
Helpful
Share
Reply
Allforumtopics
PreviousTopic
NextTopic
15Replies15
JosephW.Doherty
HallofFameMaster
Options
MarkasNew
Bookmark
Subscribe
Mute
SubscribetoRSSFeed
Permalink
Print
EmailtoaFriend
ReportInappropriateContent
09-13-2017
12:02PM
Firstproblem,networkdevicesdonotgenerallykeeptrackofallIPsbecausetheyoftendon'tneedthem.Forexample,aswitchwillrecordanincomingframe'ssrcMACtotheingressport,butitwillnotrecordanincomingsrcIP.Asaswitch,itdoesn'tneedeitherthesrcordestIP.Ifdeviceisarouter(orL3switch),itdoesn'trecordaningresssrcIPanddestIP,ifnotonaconnectednetwork,wouldonlyberecordedifusingaroutecache.Foraconnectednetwork,thedestIPwillbeinARPtable.So,asyou'venoted,theydon'tkeepIPsandportstogether,yougenerallyneedtolookatsomethinglikeadevice'sARPtable,totranslateIPstoMACsandthenlookattheMACtabletotranlateMACstoports.
0
Helpful
Share
Reply
JulioE.Moisa
VIPMentor
Options
MarkasNew
Bookmark
Subscribe
Mute
SubscribetoRSSFeed
Permalink
Print
EmailtoaFriend
ReportInappropriateContent
09-13-2017
01:00PM
HiTheonlycommandthatitcouldbeusefulis: showipintbrieforshowipintbrief|includeup
>>Marcarcomoútilocontestado,silarespuestaresolvióladuda,estoayudaafuturasconsultasdeotrosmiembrosdelacomunidad.<<
5
Helpful
Share
Reply
jxke
Beginner
InresponsetoJulioE.Moisa
Options
MarkasNew
Bookmark
Subscribe
Mute
SubscribetoRSSFeed
Permalink
Print
EmailtoaFriend
ReportInappropriateContent
09-13-2017
01:04PM
Thisshow'sallIP'sasunassigned.
0
Helpful
Share
Reply
JulioE.Moisa
VIPMentor
Inresponsetojxke
Options
MarkasNew
Bookmark
Subscribe
Mute
SubscribetoRSSFeed
Permalink
Print
EmailtoaFriend
ReportInappropriateContent
09-13-2017
01:18PM
-edited
09-13-2017
01:24PM
Othercommandbutitwillshoweverythinglocalandremotesubnetsis:showipceformoreexplicitshowipcef|increceiveTheinformationcouldbealittlebitconfusedbasedonwhatyoudesireobtain. OrshowiparpbutyoumustidentifytheIPAddressesassociatedtoyourinterfaces
>>Marcarcomoútilocontestado,silarespuestaresolvióladuda,estoayudaafuturasconsultasdeotrosmiembrosdelacomunidad.<<
0
Helpful
Share
Reply
jxke
Beginner
InresponsetoJulioE.Moisa
Options
MarkasNew
Bookmark
Subscribe
Mute
SubscribetoRSSFeed
Permalink
Print
EmailtoaFriend
ReportInappropriateContent
09-13-2017
01:29PM
BasicallyIneedalistofeachportontheswitchesandtheIPaddressbeingusedonthatport.
0
Helpful
Share
Reply
JonMarshall
VIPCommunityLegend
Inresponsetojxke
Options
MarkasNew
Bookmark
Subscribe
Mute
SubscribetoRSSFeed
Permalink
Print
EmailtoaFriend
ReportInappropriateContent
09-13-2017
01:39PM
TheremaybecommercialtoolsbutIwouldsimplyscriptit.
SogetallthemacaddresstablesofftheL2switches,getthearptableandmacaddresstableoftheL3switch(es)andthencrossreferencethearptomacaddresstablesbasedonmacaddress.
AnumberofscritptinglanguageshavemodulestomakeconnectingtoCiscodevicesrelativelyeasyandthenyoucollecttherelevanttablesandthenwithintthescriptyoucoulddothecrossreferencingusingthearptablecontentstocrossreferenceagainsteachmacaddresstable.
Eventhisisnotperfectdependingonyournetworktopologyandwhethertheenddeviceisactiveornotbutitwouldbeagoodstart.
Youmayfindsomethinglikethishasbeendonebeforeifyoudoasearch.
Jon
0
Helpful
Share
Reply
LeoLaohoo
VIPCommunityLegend
Options
MarkasNew
Bookmark
Subscribe
Mute
SubscribetoRSSFeed
Permalink
Print
EmailtoaFriend
ReportInappropriateContent
09-13-2017
01:43PM
EnableIPDeviceTracking.
0
Helpful
Share
Reply
JulioE.Moisa
VIPMentor
InresponsetoLeoLaohoo
Options
MarkasNew
Bookmark
Subscribe
Mute
SubscribetoRSSFeed
Permalink
Print
EmailtoaFriend
ReportInappropriateContent
09-13-2017
02:07PM
HiLeo,PleasecorrectmeifIamwrong,doesitworkforrouters?orjustforswitches?Thankyou
>>Marcarcomoútilocontestado,silarespuestaresolvióladuda,estoayudaafuturasconsultasdeotrosmiembrosdelacomunidad.<<
0
Helpful
Share
Reply
LeoLaohoo
VIPCommunityLegend
InresponsetoJulioE.Moisa
Options
MarkasNew
Bookmark
Subscribe
Mute
SubscribetoRSSFeed
Permalink
Print
EmailtoaFriend
ReportInappropriateContent
09-13-2017
03:11PM
HiJulio,IwouldneverenableIPDeviceTrackingonarouter.Why?Becausetryingtotrawlthroughthelistwouldbeachallenge.WhenIwanttofindtheIPaddressofadownstreamdeviceconnectedtoaport,thecommandIuseis"shipdevicetrackinterface
延伸文章資訊
- 1View device IP/MAC information connected to a specific port?
This will show you all the ip addresses and mac addresses of the devices connected to the ports r...
- 2Finding Non-Cisco End Device IP Addresses Connected to ...
Perform a show mac address-table interface <switchport> on the switch that has the device(s) conn...
- 3Cisco | Find the ip address behind a port
So let's see how to retrieve mac addresses connected to this two physical ports. Get Gi1/0/1 mac ...
- 4show ip interface - Command Reference
To get a detailed listing of all the IP-related characteristics of an interface, use the show ip ...
- 5find IP address/machine connected to a cisco switch port
hello, I need to know which IP/device is connecetd to a cisco Switch port. I can get the mac-addr...