cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1098
Views
10
Helpful
9
Replies

dhcp request failed

gezachew
Level 1
Level 1

I create a network that has two VLANs in one subnet. I set switch 6 as a server and switch 5 as a client. when I select DHCP in pc it says failed. This is the running configuration on the router. please help me.

ip dhcp excluded-address 192.168.11.1
ip dhcp excluded-address 192.168.40.1
!
ip dhcp pool vlan
dns-server 8.8.8.8
ip dhcp pool finance
network 192.168.40.0 255.255.255.0
default-router 192.168.40.1
dns-server 8.8.8.8
ip dhcp pool cctv
network 192.168.11.0 255.255.255.0
default-router 192.168.11.1
dns-server 8.8.8.8
!

interface FastEthernet0/0
ip address dhcp
duplex auto
speed auto
!
interface FastEthernet0/0.11
encapsulation dot1Q 11
ip address 192.168.11.1 255.255.255.0
!
interface FastEthernet0/0.40
encapsulation dot1Q 40
ip address 192.168.40.1 255.255.255.0

 

1 Accepted Solution

Accepted Solutions

Hello,

 

the Vlans configured on your subinterfaces did not correspond to the Vlans configured on the switches. The subinterfaces were 11 and 40, on the switches, Vlans 2 and 4 were configured. I changed 2 to 11m and 4 to 40.

 

Attached the revised file (saved in PT version 8).

View solution in original post

9 Replies 9

balaji.bandi
Hall of Fame
Hall of Fame

Config does not look good, we only have half the information, until we know the full configuration - we only assuming here..that not going to anywhere of the solution. So you need to post complete switch 5 and 6 config, (show run) - also tell us where is PC connected?

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

thank you for your comment below is the screenshot of the network and an attached pkt file. password is baby

 

Hello,

 

the Vlans configured on your subinterfaces did not correspond to the Vlans configured on the switches. The subinterfaces were 11 and 40, on the switches, Vlans 2 and 4 were configured. I changed 2 to 11m and 4 to 40.

 

Attached the revised file (saved in PT version 8).

thankyou for your support. it worked now I realized that encapsulation dot1q 11 means referring subnet not VLAN id. 10nx.

 

Hello

FYI -  DOT1Q x  represens the vlan the subnet resides in.

On the rtr

interface FastEthernet0/0.11
encapsulation dot1Q 2  
ip address 192.168.11.1 255.255.255.0

interface FastEthernet0/0.40
encapsulation dot1Q 4
ip address 192.168.40.1 255.255.255.0


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

thankyou too.

Thank you for the information, unfortunately, I do not use PT, someone sure assists you in this community.

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

yes, I check it on my pt file.

It appears that in the router you did the VLAN ID wrong 

you have CCTV VLAN with ID 2, need to change the encapsulation ID to 2 not 11, and same with the finance VLAN from 40 to 4

Review Cisco Networking for a $25 gift card