12-20-2020 10:11 AM
Hi,
I am attempting to make a topology where a router acts as a DHCP relay agent to the DHCP server on another subnet as part of a university course on GNS3. I have looked at the traffic on the link between the DHCP relay router and DHCP server and can see that the DHCP Discover is reaching the server, yet no response is set back.
Cisco C3660
R1 (DHCP Server)- Config:
int f0/0 :
> ip add 192.168.1.1 255.255.255.0
> no shut
DNS config:
> ip dhcp excluded-address 192.168.20.1 192.168.20.2
> ip dhcp pool SUB20
> network 192.168.20.0 255.255.255.0
> default-router 192.168.20.1
and R2 (DHCP Relay agent)
int f0/1:
> ip add 192.168.1.2 255.255.255.0
> no shut
int f0/0:
> Ip add 192.168.20.1 255.255.255.0
> ip helper-address 192.168.1.1
> no shut
Yet after configuring it like this, on attempting to assign an IP using DHCP from the connected PC, it fails. Am I missing something?
Solved! Go to Solution.
12-20-2020 10:32 AM
quick question - do you have route back for the network 192.168.20.0/24 towards 192.168.1.2 (on R1)
12-20-2020 01:12 PM - edited 12-20-2020 01:14 PM
Hello
Agree with @balaji.bandi RTR1 needs to know how to reach for RTR2 192.168.20.x networ.
RTR1
ip route 192.168.20.0 255.255.255.0 fa0/0 192.168.1.2
RTR2
ip route 0.0.0.0 0.0.0.0 fa0/0 192.168.1.1
12-20-2020 10:32 AM
quick question - do you have route back for the network 192.168.20.0/24 towards 192.168.1.2 (on R1)
12-20-2020 01:12 PM - edited 12-20-2020 01:14 PM
Hello
Agree with @balaji.bandi RTR1 needs to know how to reach for RTR2 192.168.20.x networ.
RTR1
ip route 192.168.20.0 255.255.255.0 fa0/0 192.168.1.2
RTR2
ip route 0.0.0.0 0.0.0.0 fa0/0 192.168.1.1
12-20-2020 06:54 PM
I did not configure that at the time, works fine now. Thank you, Paul!
12-20-2020 06:53 PM
Ah alright. I did not configure that, works fine now. Thank you!
12-20-2020 11:14 AM
Hello,
post the full configs of both routers.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide