cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1584
Views
5
Helpful
2
Replies

default-router for HSRP DHCP pool

Larry Sullivan
Level 3
Level 3

Hi,

 

I know there are quite a few discussions on this, but I haven't seen this question answered.  So if I have two routers HSRP'd with the /27 DHCP pool split into /26  between them.  What do I set the default-router IP to for each pool?  Can I set it to the HSRP virtual IP, keeping in mind one of the pools won't have this IP in it (although of course the HSRP IP will be excluded from the pools themselves?)  Is this example functional?

 

Primary Router

ip dhcp excluded-address 10.30.3.129
ip dhcp excluded-address 10.30.3.131
ip dhcp excluded-address 10.30.3.144 10.30.3.159
ip dhcp pool RECON_A
 network 10.30.3.128 255.255.255.240
 default-router 10.30.3.129
 dns-server 10.30.3.129
 lease 0 0 10
 update arp

 

interface vlan 30
 description RECON_LAN
 encapsulation dot1Q 30
 ip address 10.30.3.131 255.255.255.224
 no ip redirects
 no ip unreachables
 no ip proxy-arp
 standby version 2
 standby 30 ip 10.30.3.129
 standby 30 timers 2 5
 standby 30 priority 110
 standby 30 preempt delay minimum 300

 

 

Secondary Router


ip dhcp excluded-address 10.30.3.129 10.30.3.145
ip dhcp pool RECON_B
 network 10.30.3.144 255.255.255.240
 default-router 10.30.3.129
 dns-server 10.30.3.129
 lease 0 0 10
 update arp
 ip dhcp ping packets 5
 ip dhcp ping timeout 1000

 

interface Vlan30
 description RECON_LAN
 ip dhcp relay information trusted
 ip address 10.30.3.145 255.255.255.224
 no ip redirects
 no ip unreachables
 no ip proxy-arp
 standby version 2
 standby 30 ip 10.30.3.129
 standby 30 timers 2 5
 standby 30 priority 105
 standby 30 preempt delay minimum 300

 

 

 

1 Accepted Solution

Accepted Solutions

Deepak Kumar
VIP Alumni
VIP Alumni

Hi,

Keep default-router IP as HSRP group virtual IP address "10.30.3.129"

 

Regards,

Deepak Kumar

Regards,
Deepak Kumar,
Don't forget to vote and accept the solution if this comment will help you!

View solution in original post

2 Replies 2

Deepak Kumar
VIP Alumni
VIP Alumni

Hi,

Keep default-router IP as HSRP group virtual IP address "10.30.3.129"

 

Regards,

Deepak Kumar

Regards,
Deepak Kumar,
Don't forget to vote and accept the solution if this comment will help you!

Just wanted to make sure.  The method being used was the IP of the VLAN interface on each individual router, but I thought the HSRP IP made more sense.