Pages

network cisco ccna gns3 certification arteq

network cisco ccna gns3 certification arteq
a network runs through it

Search insearchofthecert

Tuesday, February 5, 2013

dhcp without rules...

what is important with the dhcp server if you happen to put it in a different subnet other than where the client lives, is that it supports the vlan where you want the address to be delivered with ip helper...


r4 is the dhcp server...

if you make r4 the default router of the pool, that will give the client THAT address as it's gateway...

R4#sh run | b dhcp pool cisco
ip dhcp pool cisco
 network 10.2.1.0 255.255.255.0
 default-router 10.1.4.5

note also there is no matching domain name, irrelevant...

R4#sh ip domain
lab.local

dsw1#sh ip domain                                                             
cisco         

r4 holds the binding for the pc off asw1...

R4#sh ip dhcp bind
Bindings from all pools not associated with VRF:
IP address      Client-ID/         Lease expiration     Type       State      Interface
        Hardware address/
        User name
10.2.1.3        01e8.9a8f.98a7.03       Feb 06 2013 08:19 AM    Automatic  Active     Unknown







ip helper must support the svi, however...

dsw1#sh run int vlan 10                                                       
Building configuration...                                                     
                                                                              
Current configuration : 158 bytes                                             
!                                                                             
interface Vlan10                                                              
 ip address 10.2.1.1 255.255.255.0                                            
 ip helper-address 10.1.4.5                                                   
 standby 10 ip 10.2.1.254                                                     
 standby 10 priority 110                                                      
 standby 10 preempt                                                           
end                         

for my money, i'd rather have the gateway for the pc as the virtual ip of the vlan it belongs to regardless of the router which is governing it... as long as ip helper can get to it, you're done...

R4#sh run | b dhcp
ip dhcp pool cisco
 network 10.2.1.0 255.255.255.0
 default-router 10.2.1.254


the client has as its gateway the hsrp virtual address and it can ping across to the far end...

if the ip helper points to it from the correct vlan on the switch, you can put the dhcp server in any domain, on any device... but for your own sanity, use the hsrp ip because that's it's reason for being...

R4#debug ip dhcp serv pack
DHCP server packet debugging is on.
R4#
*Feb  5 08:44:01.173: DHCPD: Reload workspace interface FastEthernet0/0 tableid 0.
*Feb  5 08:44:01.177: DHCPD: tableid for 10.1.4.5 on FastEthernet0/0 is 0
*Feb  5 08:44:01.181: DHCPD: client's VPN is .
*Feb  5 08:44:01.181: DHCPD: DHCPRELEASE message received from client 01e8.9a8f.98a7.03 (10.2.1.3).
*Feb  5 08:44:01.189: DHCPD: removing ARP entry (10.2.1.3 vrf default).
R4#
*Feb  5 08:44:09.773: DHCPD: Reload workspace interface FastEthernet0/0 tableid 0.
*Feb  5 08:44:09.773: DHCPD: tableid for 10.1.4.5 on FastEthernet0/0 is 0
*Feb  5 08:44:09.773: DHCPD: client's VPN is .
*Feb  5 08:44:09.773: DHCPD: DHCPDISCOVER received from client 01e8.9a8f.98a7.03 through relay 10.2.1.1.
*Feb  5 08:44:09.781: DHCPD: Saving workspace (ID=0x40000007)
*Feb  5 08:44:09.781: DHCPD: New packet workspace 0x6956B57C (ID=0xE5000008)
R4#
*Feb  5 08:44:11.781: DHCPD: Reprocessing saved workspace (ID=0x40000007)
*Feb  5 08:44:11.785: DHCPD: DHCPDISCOVER received from client 01e8.9a8f.98a7.03 through relay 10.2.1.1.
*Feb  5 08:44:11.785: DHCPD: Sending DHCPOFFER to client 01e8.9a8f.98a7.03 (10.2.1.3).
*Feb  5 08:44:11.785: DHCPD: unicasting BOOTREPLY for client e89a.8f98.a703 to relay 10.2.1.1.
*Feb  5 08:44:11.785: DHCPD: Freeing saved workspace (ID=0x40000007)
*Feb  5 08:44:11.801: DHCPD: Reload workspace interface FastEthernet0/0 tableid 0.
*Feb  5 08:44:11.801: DHCPD: tableid for 10.1.4.5 on FastEthernet0/0 is 0
*Feb  5 08:44:11.801: DHCPD: client's VPN is .
R4#
*Feb  5 08:44:11.801: DHCPD: DHCPREQUEST received from client 01e8.9a8f.98a7.03.
*Feb  5 08:44:11.801: DHCPD: Sending DHCPACK to client 01e8.9a8f.98a7.03 (10.2.1.3).
*Feb  5 08:44:11.801: DHCPD: unicasting BOOTREPLY for client e89a.8f98.a703 to relay 10.2.1.1.
R4#
*Feb  5 08:44:15.317: DHCPD: Reload workspace interface FastEthernet0/0 tableid 0.
*Feb  5 08:44:15.321: DHCPD: tableid for 10.1.4.5 on FastEthernet0/0 is 0
*Feb  5 08:44:15.325: DHCPD: client's VPN is .
*Feb  5 08:44:15.325: DHCPD: DHCPINFORM received from client 01e8.9a8f.98a7.03 (10.2.1.3).
*Feb  5 08:44:15.325: DHCPD: Sending DHCPACK to client 01e8.9a8f.98a7.03 (10.2.1.3).
*Feb  5 08:44:15.325: DHCPD: unicasting BOOTREPLY for client e89a.8f98.a703 to relay 10.2.1.1.
R4#
*Feb  5 08:45:28.553: DHCPD: Reload workspace interface FastEthernet0/0 tableid 0.
*Feb  5 08:45:28.553: DHCPD: tableid for 10.1.4.5 on FastEthernet0/0 is 0
*Feb  5 08:45:28.553: DHCPD: client's VPN is .
*Feb  5 08:45:28.557: DHCPD: DHCPRELEASE message received from client 01e8.9a8f.98a7.03 (10.2.1.3).
*Feb  5 08:45:28.557: DHCPD: removing ARP entry (10.2.1.3 vrf default).
R4#
*Feb  5 08:45:33.733: DHCPD: Reload workspace interface FastEthernet0/0 tableid 0.
*Feb  5 08:45:33.737: DHCPD: tableid for 10.1.4.5 on FastEthernet0/0 is 0
*Feb  5 08:45:33.737: DHCPD: client's VPN is .
*Feb  5 08:45:33.737: DHCPD: DHCPDISCOVER received from client 01e8.9a8f.98a7.03 through relay 10.2.1.1.
*Feb  5 08:45:33.737: DHCPD: Saving workspace (ID=0xE5000008)
*Feb  5 08:45:33.741: DHCPD: New packet workspace 0x67EA1BDC (ID=0xA6000009)
R4#
*Feb  5 08:45:35.745: DHCPD: Reprocessing saved workspace (ID=0xE5000008)
*Feb  5 08:45:35.745: DHCPD: DHCPDISCOVER received from client 01e8.9a8f.98a7.03 through relay 10.2.1.1.
*Feb  5 08:45:35.745: DHCPD: Sending DHCPOFFER to client 01e8.9a8f.98a7.03 (10.2.1.3).
*Feb  5 08:45:35.745: DHCPD: unicasting BOOTREPLY for client e89a.8f98.a703 to relay 10.2.1.1.
*Feb  5 08:45:35.745: DHCPD: Freeing saved workspace (ID=0xE5000008)
*Feb  5 08:45:35.765: DHCPD: Reload workspace interface FastEthernet0/0 tableid 0.
*Feb  5 08:45:35.765: DHCPD: tableid for 10.1.4.5 on FastEthernet0/0 is 0
*Feb  5 08:45:35.765: DHCPD: client's VPN is .
R4#
*Feb  5 08:45:35.765: DHCPD: DHCPREQUEST received from client 01e8.9a8f.98a7.03.
*Feb  5 08:45:35.765: DHCPD: Sending DHCPACK to client 01e8.9a8f.98a7.03 (10.2.1.3).
*Feb  5 08:45:35.765: DHCPD: unicasting BOOTREPLY for client e89a.8f98.a703 to relay 10.2.1.1.
R4#
*Feb  5 08:45:39.293: DHCPD: Reload workspace interface FastEthernet0/0 tableid 0.
*Feb  5 08:45:39.297: DHCPD: tableid for 10.1.4.5 on FastEthernet0/0 is 0
*Feb  5 08:45:39.301: DHCPD: client's VPN is .
*Feb  5 08:45:39.305: DHCPD: DHCPINFORM received from client 01e8.9a8f.98a7.03 (10.2.1.3).
*Feb  5 08:45:39.305: DHCPD: Sending DHCPACK to client 01e8.9a8f.98a7.03 (10.2.1.3).
*Feb  5 08:45:39.309: DHCPD: unicasting BOOTREPLY for client e89a.8f98.a703 to relay 10.2.1.1.

No comments:

Post a Comment