Skip to main content

Switch Trouble shooting problem

More
19 years 3 months ago #6779 by chandru_netadmin
HI
Can you please any one help me out from this problem
In the cisco switch ,How to see which switch port is connected to which {it should display switch port f0/1 is connected to IP address 192.168.10.5 etc. (IP address of that particular end device )}
please tell me the command to monitor on the switch .
More
19 years 3 months ago #6780 by Wizmatic
You can use this command.

show ip interface brief

or show ip route .
More
19 years 3 months ago #6783 by chandru_netadmin
Thanks for your answer but it's not giving my desired output
this command is giving static entry ip address of the particular port i want a device which is connected to this ports.
I want which ip address device (hosts or routers ..) is connected to which switch port.
PC's are connected to switch ports , i want one command to see which ip address (Host)is connected to which ports
Like this

IP 192.168.10.5 is connected to switchport f0/1
Ip 192.168.10.16 is connected to switchport f0/2 so somethin like this.
More
19 years 3 months ago #6788 by sahirh
Erm... hmm *scratches head*

You should be able to pull that information out of the device using SNMP pretty easily.

Sahir Hidayatullah.
Firewall.cx Staff - Associate Editor & Security Advisor
tftfotw.blogspot.com
More
19 years 3 months ago #6789 by Chris
I'm not sure if there is a command that will provide the output you require, but you can use:

'show ip arp'

which will provide you the following output:

[code:1]
Cat3550-ITDept2#sh ip arp
Protocol Address Age (min) Hardware Addr Type Interface
Internet 10.0.0.2 61 000b.4668.c080 ARPA Vlan1
Internet 10.0.0.1 142 000b.4668.c080 ARPA Vlan1
Internet 10.0.0.39 140 000b.4668.c080 ARPA Vlan1
Internet 192.168.1.17 - 000f.f7b5.e280 ARPA Vlan1
Internet 192.168.5.21 43 000b.4668.c080 ARPA Vlan1
Internet 192.168.250.1 3 000b.4668.c080 ARPA Vlan1
[/code:1]

And then type 'show cdp neig details' to get a full list of other cisco equipment and their IP addresses.

There are a variety of subcommands under 'Show IP arp' , give them a try and see if they do the job for you.

Regards,

Chris Partsenidis.
Founder & Editor-in-Chief
www.Firewall.cx
Time to create page: 0.159 seconds