Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't Ping from PC to 2950 Switch or Switch to PC

Status
Not open for further replies.

milton06

MIS
Aug 8, 2012
4
CA
Newbie preparing for CCNA....I have a simple network lab with a laptop and 2950 switch. I am connected via console port of the switch and also connected a ethernet cable from fa 0/1 to PC. I can see my laptop's mac address in switch's mac address by "show mac address-table'. However, I can't ping neither from laptop nor from switch using telnet. By the way, my laptop also connected to internet via wireless not sure if this is causing any conflict. Appreciated your help.

Could not copy the full config file.
----------------------------------------------
Running Config:
!
!
interface FastEthernet0/1
switchport mode access
!
interface FastEthernet0/2
!

interface Vlan1
ip address 192.168.1.100 255.255.255.0
no ip route-cache
!
ip default-gateway 192.168.1.1
ip http server
!
line con 0
password milton
login
line vty 0 4
password milton
login
!
!
end
---------------------------------------
Show vlan brief

VLAN Name Status Ports
1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4, Fa0/5, Fa0/6
------------------------------------------
Show ip int brief

Interface IP-Address OK? Method Status Prot
Vlan1 192.168.1.100 YES manual up up
FastEthernet0/1 unassigned YES unset up up
--------------------------------------------
Ping from my laptop to the Switch:

C:\ping 192.168.1.100

Pinging 192.168.1.100 with 32 bytes of data:

Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 192.168.1.100:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),




 
If you are just running VLAN1, why do you have :-

Fa0/1 - switchport mode access

Take that off, it is not required.

All switches default to VLAN 1. In the real World this is not an ideal scenario. VLAN 1 shouild be shutdown and another management VLAN created.

Switchport mode access is normally a requirement for an edge switch (Such as a 2950 like you have), but take off that command.

As long as your laptop Nic is in the 192.168.1.xxx / 24 network range then there should be no issue, even with your wireless card on.
Also, I would use the "service password-encryption" command so that when you issue a show run, all your passwords show as encrypted and not plain text.

 
The switch looks fine.

Check your laptop IP settings.

Do a "show int" on f0/1

Do a ipconfig /all on the laptop
 
2950_Milton# show int f0/1
FastEthernet0/1 is up, line protocol is up (connected)
Hardware is Fast Ethernet, address is 000b.5fbc.eac1 (bia 000b.5fbc.eac1)
MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full-duplex, 100Mb/s, media type is 100BaseTX
input flow-control is unsupported output flow-control is unsupported
ARP type: ARPA, ARP Timeout 04: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 0 bits/sec, 0 packets/sec
44 packets input, 7724 bytes, 0 no buffer
Received 44 broadcasts (0 multicast)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog, 2 multicast, 0 pause input
0 input packets with dribble condition detected
346 packets output, 26476 bytes, 0 underruns

laptop's IPconfig/all

Windows IP Configuration

Host Name . . . . . . . . . . . . : user-2b48927403
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Unknown
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter Wireless Network Connection:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Intel(R) Wireless WiFi Link 4965AGN
Physical Address. . . . . . . . . : 00-1D-E0-01-67-83
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 192.168.1.102
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
DHCP Server . . . . . . . . . . . : 192.168.1.1
DNS Servers . . . . . . . . . . . : 209.197.128.2
209.195.95.95
Lease Obtained. . . . . . . . . . : Saturday, August 11, 2012 2:55:27 PM

Lease Expires . . . . . . . . . . : Sunday, August 12, 2012 2:55:27 PM

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Intel(R) 82566MM Gigabit Network Con
nection
Physical Address. . . . . . . . . : 00-1C-25-18-F3-47
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Autoconfiguration IP Address. . . : 169.254.145.176
Subnet Mask . . . . . . . . . . . : 255.255.0.0
 
I have diabled my antivirus and I can't still ping in either direction. I am begining to think it is probably the cable, I am using CAT 5E which was bought along with the switch. Is this the right cable to use?
 
Thanks Vince and allworxguy. Changed the vlan1 ip to 169.254.145.177 mask to 255.255.0.0
and default gateway to 169.254.1.1
I think the root cause of this problem, I was using my wireless lan network's mask and default gateway rather than my eithernet lan's mask and default gateway (which I just assigned to my laptop). works from both directions.
If this was not correct analysis, please help me understand.

2950_Milton#ping 169.254.145.176

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 169.254.145.176, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/202/1004 ms
 
You assigned your address to your wireless card not the ethernet adaptor !!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top