how to know ip & mac for pc connect to switch ports? please help

Discussion in 'Networks' started by alivip, Apr 14, 2009.

  1. alivip

    alivip Bit Poster

    10
    0
    2
    how to know ip & mac connect to switch ports (cisco 2950)?
    for example I wont to know the ip & mac for pc connect to port 01 or 02 ..etc
    please help
     
  2. zebulebu

    zebulebu Terabyte Poster

    3,748
    330
    187
    Interrogate the ARP cache on the switch
     
    Certifications: A few
    WIP: None - f*** 'em
  3. alivip

    alivip Bit Poster

    10
    0
    2
    thanks but could you please give me the code
     
  4. onoski

    onoski Terabyte Poster

    3,120
    51
    154
    Type cmd from the start button run and then when in the command or dos prompt screen type getmac and or ipconfig. I hope this is not a trick question?:)
     
    Certifications: MCSE: 2003, MCSA: 2003 Messaging, MCP, HNC BIT, ITIL Fdn V3, SDI Fdn, VCP 4 & VCP 5
    WIP: MCTS:70-236, PowerShell
  5. Sparky
    Highly Decorated Member Award 500 Likes Award

    Sparky Zettabyte Poster Moderator

    10,718
    543
    364
    That will work on a PC but it wont show you the arp cache on the cisco switch :wink:
     
    Certifications: MSc MCSE MCSA:M MCSA:S MCITP:EA MCTS(x5) MS-900 AZ-900 Security+ Network+ A+
    WIP: Microsoft Certs
  6. onoski

    onoski Terabyte Poster

    3,120
    51
    154
    Yep! sorry my bad didn't read the full question:)
     
    Certifications: MCSE: 2003, MCSA: 2003 Messaging, MCP, HNC BIT, ITIL Fdn V3, SDI Fdn, VCP 4 & VCP 5
    WIP: MCTS:70-236, PowerShell
  7. Spice_Weasel

    Spice_Weasel Kilobyte Poster

    254
    45
    45
    Scene: Dank, dark wiring closet. A single bulb sways gently, casting a dim pool of light on a Cisco 2950.

    Net Admin: Talk! I what to know the mac adress, port and ip address!

    C2950: Not a chance, copper! I ain't no snitch!

    Net Admin: You're looking at hard time, 2950. You're EOL is October 2009 - that's coming up fast. And I hear there's a couple of ProcCurves waiting for you in cellblock D...

    C2950: No dice - I ain't afraid of no ProCurve - what are you going to do next, threaten me with a Nortel?

    Net Admin: Alright, then how about #sh mac to display that mac address table of yours?

    C2950: Erk, you wouldn't dare!

    Net Admin: And, maybe a little #sh mac address-table interface might change your mind - and if you don't start talking I might be forced to use ? to learn even more...

    C2950: Ok, ok, I'll talk! Put away the command line, have mercy!


    And that is how you interrogate a switch.

    Spice_Weasel
     
    Certifications: CCNA, CCNP, CCIP, JNCIA-ER, JNCIS-ER,MCP
    WIP: CCIE
  8. onoski

    onoski Terabyte Poster

    3,120
    51
    154
    What is your knowledge in routing and basic networking? I presume you're a student. Try running the "show commands" on your switch. An example is from the command prompt # show running etc.
     
    Certifications: MCSE: 2003, MCSA: 2003 Messaging, MCP, HNC BIT, ITIL Fdn V3, SDI Fdn, VCP 4 & VCP 5
    WIP: MCTS:70-236, PowerShell
  9. alivip

    alivip Bit Poster

    10
    0
    2
    yes that What I mean
    also if I can get all table of IP and MAC (all IP and MAC) in one command
    in additional to separate port
     
  10. ThomasMc

    ThomasMc Gigabyte Poster

    1,507
    49
    111
    :biggrin
     
    Certifications: MCDST|FtOCC
    WIP: MCSA(70-270|70-290|70-291)
  11. zebulebu

    zebulebu Terabyte Poster

    3,748
    330
    187
    See the problem with this is that we're falling into the same trap that we did with professor falken. I provided Ali with an answer that pointed him in the right direction but he was too lazy to bother looking into it himself, and posted again asking us to, in effect, do his job for him.

    No-one ever learned anything that way.
     
    Certifications: A few
    WIP: None - f*** 'em

Share This Page

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.