[c-nsp] Redundant DHCP Server
    Mohammad Khalil 
    eng_mssk at hotmail.com
       
    Mon Jun  1 06:44:34 EDT 2015
    
    
  
Sorry for the bad format 
> Hi all
I am testing a redundant DHCP server with two MLS connected to an access switch Two hosts are connected to the access switch and they are DHCP clientsWhat am trying to do is to load balance the DHCP assignments and to avoid duplicate IP address assignments , so I have configured the same DHCP pools on both switches with the HSRP virtual IP address acting as the gateway for clients
SW1
interface Vlan10 
ip address 192.168.10.1 255.255.255.0 
standby use-bia 
standby 10 ip 192.168.10.3 
standby 10 priority 110 standby 10 preempt
ip dhcp pool POOL   
network 192.168.10.0 255.255.255.0   
default-router 192.168.10.3
ip dhcp excluded-address 192.168.10.1 192.168.10.3
ip dhcp excluded-address 192.168.10.130 192.168.10.254
ip dhcp ping packets
SW2
interface Vlan10 
ip address 192.168.10.2 255.255.255.0 
standby use-bia 
standby 10 ip 192.168.10.3 
standby 10 preempt
ip dhcp pool POOL 
  network 192.168.10.0 255.255.255.0   
default-router 192.168.10.3
ip dhcp excluded-address 192.168.10.1 192.168.10.3
ip dhcp excluded-address 192.168.10.4 192.168.10.129
ip dhcp ping packets
Now , when the clients requested IP address
PC1> show
NAME   IP/MASK              GATEWAY           MAC                LPORT  RHOST:PORTPC1    192.168.10.6/24      192.168.10.3      00:50:79:66:68:01  20501  127.0.0.1:10005       fe80::250:79ff:fe66:6801/64
PC2> show
NAME   IP/MASK              GATEWAY           MAC                LPORT  RHOST:PORTPC2    192.168.10.133/24    192.168.10.3      00:50:79:66:68:02  20502  127.0.0.1:10006       fe80::250:79ff:fe66:6802/64
R1#sh ip dhcp binding
Bindings from all pools not associated with VRF:IP address          Client-ID/              Lease expiration        Type                    Hardware address/                    Username
       0100.5079.6668.01       Mar 01 2002 12:23 AM    Automatic 192.168.10.7 
       0100.5079.6668.02       Mar 01 2002 12:23 AM    Automatic 192.168.10.6 
R2#sh ip dhcp binding
Bindings from all pools not associated with VRF:IP address          Client-ID/   
>             Lease expiration        Type                    Hardware address/                    User name
     0100.5079.6668.01       Mar 02 2002 12:18 AM    Automatic 192.168.10.133      
0100.5079.6668.02       Mar 02 2002 12:18 AM    Automatic 192.168.10.132 
I do not understand why the two servers assigned IP addresses?Thanks 		 	   		  
> _______________________________________________
> cisco-nsp mailing list  cisco-nsp at puck.nether.net
> https://puck.nether.net/mailman/listinfo/cisco-nsp
> archive at http://puck.nether.net/pipermail/cisco-nsp/
 		 	   		  
    
    
More information about the cisco-nsp
mailing list