cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
680
Views
0
Helpful
12
Replies

how can you tell which switches on an IP address that

pcfreak49
Level 1
Level 1

how can you tell which switches on an IP address that because if I show interfaces interface 0 / 1 indicates all I get to see the mac address

12 Replies 12

cadet alain
VIP Alumni
VIP Alumni

Hi,

On L2 switches the only place you can see an ip address is on a SVI ( interface Vlan).

On L3 switches you can also see an ip address on a routed port( L3 port) that is which has a no switchport command in interface config.

So sh ip int br will give you the ip addresses configured then you can do a sh ip interface X  to see the address/mask.

Regards.

Alain.

Don't forget to rate helpful posts.


I get when I show interface Gigabit Ethernet 0 / 8 indicates that Infomaterial but no ip address

Switch # sh interfaces Gigabit Ethernet 0 / 8
GigabitEthernet0 / 8 is up, line protocol is up (connected)
Hardware is Gigabit Ethernet, address is f025.7243.4488 (bia f025.7243.4488)
MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec,
reliability 255/255, txload 1 / 255, rxload 1 / 255
Encapsulation ARPA, loopback not set
Keepalive not set
Full-duplex, 1000Mb / s, link type is auto, media type is 10/100/1000BaseTX
input flow-control is off, output flow-control is unsupported
ARP type: ARPA, ARP Timeout 4:00:00
Last input never, output 00:00:00, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size / max / drops / flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0 / 40 (size / max)
5 minute input rate 0 bits / sec, 0 packets / sec
5 minute output rate 2000 bits / sec, 1 packets / sec
123442 packets input, 85396828 bytes, 0 no buffer
Received 50788 broadcasts (multicasts 24,165)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog, 24165 multicast, 0 pause input
0 input packets with dribble condition detected
128085 packets output, 18868876 bytes, 0 underruns
0 output errors, 0 collisions, 1 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier, 0 PAUSE output
0 output buffer failures, 0 output buffers swapped out

It is a 2 step process.

1) find the mac-address associated with the port from the mac-address table

2) on the device that is responsible for routing the vlan that the client is in you run "sh ip arp" and match the mac-address to the IP address. Note that the device responsible for routing the vlan may or may not be the same device that the client is actually connected to.

Jon

no it's not only that the vlan `s not the gigabit ethernet


Jon Marshall
Hall of Fame
Hall of Fame

what ??????

This only shows the vlan `s not see the interfaces

What device are you doing this on ??

Jon

on a C2960 switches

If you look back at my first post you'll see i said in step 2 you need to go to the device responsible for routing that vlan. A 2960 is (usually) a L2 switch only so it probably won't be routing for the vlan.

Jon

This is the information that I get when I do sh ip arp

Switch # sh ip arp
Protocol Address Age (min) Hardware Addr Type Interface
Internet 10.10.10.1 - f025.7243.44c0 ARPA Vlan1

pcfreak49 wrote:

This is the information that I get when I do sh ip arp

Switch # sh ip arp
Protocol Address Age (min) Hardware Addr Type Interface
Internet 10.10.10.1 - f025.7243.44c0 ARPA Vlan1

You are still not listening to what i said.

The 2960 is acting as a L2 switch. A L2 switch does not care about IP addresses.  Do this -

1) pick a client connected to the 2960 switch.

2) on the client, from a DOS prompt run "ipconfig /all". This should give you the client mac-address + the client default-gateway

3) find the interface on the 2960 switch that the client is connected to. You can use the mac-address found in step 2)

4) find the device that has the client default-gateway IP address on it (this will not be the 2960 switch). Run "sh ip arp" on there.

Once you have found the L3 device responsible for routing the vlan you can then look at the whole arp table and match up with mac-addresses from the 2960 switch.

Jon

I do listen, but I always get public ip address on the nines, but I switched back to the switch for transferring files

Review Cisco Networking products for a $25 gift card