cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5512
Views
5
Helpful
40
Replies

Need help with setting up IP routing and DHCP on packet tracer

V104
Level 1
Level 1

I am a beginner and I'm working with this packet tracer file, trying to practice DHCP and ip routing. These are very confusing topics to me so if anyone could help me figure out how to set this up and explain how it works that would be great. I attached the pkt file that I'm using.

40 Replies 40

I think I got it but just making sure, is this configuration for the 1.20 pool all good?

 

ip dhcp pool 20-Pool
network 10.19.8.0 255.255.255.224
default-router 10.19.8.65
domain-name cisco.com

The bottom PCs cant ping the ipv6 address of the DHCP server for some reason, but top ones can

Send the show run config on R1. Did you create 3 DHCP POOLS (1 for each sub interface network)? 
and excluding all the addresses you need?

I set up a default ipv6 route on R2 and now I can ping the DHCP ipv6 address from the bottom PCs, not sure why I had to do that for that to work since I could always ping that from the top PCs anyway. But at least it works now. And here is my R1 config:

 

Building configuration...

 

Current configuration : 1995 bytes

!

version 15.4

no service timestamps log datetime msec

no service timestamps debug datetime msec

service password-encryption

security passwords min-length 10

!

hostname R1

!

!

!

enable secret 5 $1$mERr$EJnmB234UvJf9yoQMWYJK/

!

!

ip dhcp excluded-address 10.19.8.1 10.19.8.10

!

ip dhcp pool Pool-10

network 10.19.8.0 255.255.255.192

default-router 10.19.8.1

ip dhcp pool Pool-20

network 10.19.8.0 255.255.255.224

default-router 10.19.8.65

ip dhcp pool Pool-30

network 10.19.8.0 255.255.255.248

default-router 10.19.8.97

!

!

!

ip cef

ipv6 unicast-routing

!

no ipv6 cef

!

!

!

username admin password 7 082048430017540713181F

!

!

!

!

!

!

!

!

no ip domain-lookup

ip domain-name ccna-lab.com

!

!

spanning-tree mode pvst

!

!

!

!

!

!

interface GigabitEthernet0/0/0

description connection to R2

ip address 172.16.8.1 255.255.255.252

duplex auto

speed auto

ipv6 address FE80::1 link-local

ipv6 address 2001:DB8:ACAD:8::1/64

!

interface GigabitEthernet0/0/1

no ip address

duplex auto

speed auto

!

interface GigabitEthernet0/0/1.10

description VLAN 10

encapsulation dot1Q 10

ip address 10.19.8.1 255.255.255.192

ip helper-address 172.16.9.9

ipv6 address FE80::1 link-local

ipv6 address 2001:DB8:ACAD:A::1/64

!

interface GigabitEthernet0/0/1.20

description VLAN 20

encapsulation dot1Q 20

ip address 10.19.8.65 255.255.255.224

ip helper-address 172.16.9.9

ipv6 address FE80::1 link-local

ipv6 address 2001:DB8:ACAD:B::1/64

!

interface GigabitEthernet0/0/1.30

description VLAN 30

encapsulation dot1Q 30

ip address 10.19.8.97 255.255.255.248

ip helper-address 172.16.9.9

ipv6 address FE80::1 link-local

ipv6 address 2001:DB8:ACAD:C::1/64

!

interface Vlan1

no ip address

shutdown

!

ip classless

ip route 172.16.9.0 255.255.255.0 172.16.8.2

!

ip flow-export version 9

!

ipv6 route 2001:DB8:ACAD:9::/64 2001:DB8:ACAD:8::2

!

!

no cdp run

!

banner motd ^CAuthorized Access Only!^C

!

!

!

!

!

line con 0

login

!

line aux 0

!

line vty 0 4

login local

transport input ssh

!

!

!

end

Ok it looks like your pools 20 and 30 are incorrect. For all 3 of them you have the 10.19.8.0 network with varying subnet masks. Check your interfaces. The pools are basically overlapping each other. 

pool 10 is correct with the network and mask command and excluded addresses

pool 20 and 30 mask is correct but they are in the wrong network and with no addresses excluded.

pool 20 should be:

 

ip dhcp pool Pool-20

network 10.19.8.64 255.255.255.224

default-router 10.19.8.65

 

Dont forget that you need two more excluded address statements 1 for each of the other subnets. So in config mode you need something like:

 

ip dhcp excluded-address 10.19.8.65 10.19.8.70

^excludes first 5 addresses for this network. 

for pool 30 it should be:

p dhcp excluded-address 10.19.8.97 10.19.8.99

ip dhcp pool Pool-30

network 10.19.8.96 255.255.255.248

default-router 10.19.8.97

 

If you notice I reduced the amount of excluded addresses per pool it’s because each pool has a smaller number of usable addresses in the subnet 

 

pool10 - 62 usable hosts

pool20 - 30 usable hosts

pool30 - 6 usable hosts

Yeah I had that all wrong, it's fixed now. I also had the ipv6 routing wrong and I fixed that and got that working too. Thanks for all the help on this I understand it a lot more than I did before.

Glad we were able to help. If you would please mark this as solved so the community can refer to this if anyone else has similar issues. If more than one person helped you can mark several responses as the correct answer. It would be appreciated.

 

-David

The lease infinite command doesn't work

I put ip route 10.19.8.0 255.255.255.0 g0/0/0 , would that be correct?

Try checking mine. The routing tables were exactly the same as mine except that RIP route. 

 

Excluding the first 10 addresses (can be any number) is just practice because you need the DHCP server to NOT give out addresses like the ones you use for the default gateway, DNS, any other static IPs you need. 

 

-David

Actually I fixed it, I think something was just wrong with that tracer from something I did earlier, I opened a new one and did it and it works. But one more thing, can you explain how to set up a DHCP pool configuration to use DHCP, I'm pretty sure that's the way we have to set up DHCP for the final.