Retrieving a list of all IP's and their ports from CLI

文章推薦指數: 80 %
投票人數:10人

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".Evenwitha169.254.X.XwillshowupwithIPDTenabled. 0 Helpful Share Reply JulioE.Moisa VIPMentor InresponsetoLeoLaohoo Options MarkasNew Bookmark Subscribe Mute SubscribetoRSSFeed Permalink Print EmailtoaFriend ReportInappropriateContent ‎09-13-2017 03:16PM Okthankyoufortheexplanation.:-) >>Marcarcomoútilocontestado,silarespuestaresolvióladuda,estoayudaafuturasconsultasdeotrosmiembrosdelacomunidad.<< 0 Helpful Share Reply jxke Beginner InresponsetoJulioE.Moisa Options MarkasNew Bookmark Subscribe Mute SubscribetoRSSFeed Permalink Print EmailtoaFriend ReportInappropriateContent ‎09-14-2017 07:19AM -edited ‎09-14-2017 07:27AM EnablingtheIPtrackingfeaturefromthecommandlinedoesnothing.  Ineedtoretrieveabout500devicesIP'sandportsfromourswitchesforourVOIPprovider.Idonotwanttosortthroughallofthatdatamanually. It's2017,Ifeellikethisshouldbeafeaturebynoworsomeoneshouldhaveawaytopulleveryport'sassignedDHCPaddresswithease,insteadofonlylistingMACaddressandport.  0 Helpful Share Reply JosephW.Doherty HallofFameMaster Inresponsetojxke Options MarkasNew Bookmark Subscribe Mute SubscribetoRSSFeed Permalink Print EmailtoaFriend ReportInappropriateContent ‎09-14-2017 11:16AM AsIwroteearlier,aswitchoftendoesn'tneedhostIPs(whenit'sonlysupportingL2),soitwillbedifficulttoprovidesuchafeaturewhenthedevicedoesn'thavethedata(bydefault).EvenonaL3switch,thathasanARPcache,youmayneedtodosomethinglikeasubnetpingtogetallon-linehosts'IPintheARPcache. 0 Helpful Share Reply isipka Beginner Inresponsetojxke Options MarkasNew Bookmark Subscribe Mute SubscribetoRSSFeed Permalink Print EmailtoaFriend ReportInappropriateContent ‎08-13-2020 11:02AM "EnablingtheIPtrackingfeaturefromthecommandlinedoesnothing." IwouldthinkyouwouldwanttoenableIPdevicetrackingontheinterface(s)ratherthanglobally,especiallyifyouhaveinterfacesyoudon'tcaretotrack.Forexample-ifyouaretryingtotrackIPaddressesonallhostsbelongingtoaspecificVLANthengointotheVLANinterfaceandrun"ipdevicetrackingmax500"(sinceyousaid500devices) YouthenneedtowaitforthedevicestoactuallyDOsomethingIPrelated.Likeotherusershavesaid,aswitchwillnotnativelytrackthissothedataneedstopopulateafteryouenablethecommand.Forexample,youenableIPdevicetrackingandthenshowipdevicetrackingbutdon'tseeanything.Youthenpingadeviceononeoftheinterfacesyouaretrackingandre-runthe"showipdevicetrackingall"command.Youwillnowseethatthedataforthatdevice,specifically: IPAddress,MACAddress,Vlan,Interface,Probe-Timeout,State,Source. 0 Helpful Share Reply JemalAyderusSheikOmar17046 Beginner Options MarkasNew Bookmark Subscribe Mute SubscribetoRSSFeed Permalink Print EmailtoaFriend ReportInappropriateContent ‎04-24-2021 06:37AM hellodearciscoiusedinmyofficeallmynetworkconnectivity inciscodevicepleasesupportmehowtoconfigureSwitchorvlans 0 Helpful Share Reply PostReply « Previous 1 2 Next » GettingStartedFindanswerstoyourquestionsbyenteringkeywordsorphrasesintheSearchbarabove.Newhere?Usetheseresourcestofamiliarizeyourselfwiththecommunity: HowtouseCommunity NewCommunityMemberGuide RecognizeYourPeers SpotlightAwardNomination QuickLinks KnowledgeArticles CustomersAlsoViewedTheseSupportDocuments



請為這篇文章評分?