cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2719
Views
20
Helpful
16
Replies

Dhcp + vlan configuration

black.robber
Level 1
Level 1

According to the diagram, i wanna make R3 a dhcp server and provide ip addresses to different vlans,

vlan 10 is on PC1 and PC4 and network address is 192.168.1.0

vlan 20 is on PC2 and PC5 and network address is 192.168.2.0

vlan 30 is on PC3 and PC6 and network address is 192.168.3.0

what should i do to pass the dhcp broadcast from R1 and R2  and reach R3 and R3 provide the ip addresses to vlan and their PCs?

16 Replies 16

Hi,

if you are doing this on PT then these debugs are not implemented but what you can do on R3 to see if it receives DHCP messages is this:

permit udp any bootpc any bootps

permit ip any any

on the serial interface of R3:

ip access-group debug_dhcp in

then on a client do a ipconfig/renew and then on R3: do sh access-list debug_dhcp and see if you got hit counts against the first entry.

if it is the case then your DHCP messages are relayed to R3.

next on the next-hop router towards your client, on the serial interface do the same but change the ACL like this:

permit udp any bootps any bootpc

permit ip any any

and again look at the hit count to see if you get replies from R3 and if it is ok then do the same on the last hop connected to the client to see if the server messages make it there.

Regards

Alain

Don't forget to rate helpful posts.

Don't forget to rate helpful posts.

black.robber
Level 1
Level 1

hello everyone!

     my work is done after i remove nat from R3 and R1 and now PCs getting ip addresses , and i think due to nat dhcp broadcast was not reachable  to the dhcp server and also not getting back..

and thanks everone for help me out

Regards Muhammad Awais

Review Cisco Networking for a $25 gift card