cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
11865
Views
70
Helpful
30
Replies

Cisco C2960 can't get ip through DHCP.

Frika
Level 1
Level 1

Hi, I have been trying to learn how to work with Cisco switches for little bit less than a week so far so keep that in mind. So my task for the day was to create a basic network with 2 siwtches c2960 c3560g and 2 pcs [1 for each switch] who are part of vlan 1 seeing each other and being able to be pinged?? Said network is taking ips from a dhcp router. The issue is that my second switch c2960 doesn't want to get an ip from the dhcp and i ended up spending the majority of my day trying to resolve that problem.

First I want to point out that I have 0 problems with setting up the C3560G switch. It got an ip adress it gave it to the connected pc and everything worked perfectly. The second switch however was a totally different story. It couldn't ping the first switch through the working trunk [but it did detect it mac/ip connection wise] and when my supervisor came around he suggested to move the cable going to the dhcp router from the other switch to the problematic c2960 so it can take an ip. The issue is that it didn't.

 

I put a static ip address and i could see that a connection is being made through port fe0/5 but again no pings are going through. I tried the ip helper command in order to add the router's ip but that didn't work as well. I reset the switch multiple times to factory settings in case there were some old settings that were in the way but that didn't help as well. All and all at this point I am out of ideas of what to do and since my knowledge on the subject is very limited... I am hoping that maybe someone can give me a hand...? Any help would be welcome and thank you in advance.

 

!
version 12.2
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname dianel2
!
boot-start-marker
boot-end-marker
!
no aaa new-model
system mtu routing 1500
ip subnet-zero
!
crypto pki trustpoint TP-self-signed-2366857856
enrollment selfsigned
subject-name cn=IOS-Self-Signed-Certificate-2366857856
revocation-check none
rsakeypair TP-self-signed-2366857856
!
crypto pki certificate chain TP-self-signed-2366857856
certificate self-signed 01
!
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
interface FastEthernet0/1
!
interface FastEthernet0/2
switchport trunk allowed vlan 1
switchport mode trunk
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
!
interface Vlan1
ip address dhcp
!
ip http server
ip http secure-server
!
control-plane
!
line con 0
line vty 0 4
login
line vty 5 15
login
!
end

30 Replies 30

Just out of curiosity, how did you finally resolve this ?

Review Cisco Networking products for a $25 gift card