Query in DHCPv4 relay

ameen.shajahan at wipro.com ameen.shajahan at wipro.com
Tue Apr 2 16:23:13 UTC 2013


Hi All,

Setup for relay in our network
--------------------------------------
Setup:
DHCP Server[eth0] --------[eth0]Router1 App[eth1]<--------P2P link------>[tun0]Router2 App & RELAY[eth0]---------PC

DHCP Server eth0: 10.46.185.77/24
Router 1 App eth0: 10.46.185.1/24
Router 1 App eth1: 10.46.186.1/24
Router 2 App tun0: 40.40.40.40/24
Router 2 App eth0: 30.30.30.30/24

>From DHCP Server I can able to ping relay and vice versa. So no reachability issues. But IP is not getting assigned to PC.
In server I can able to see up to DHCP OFFER message only. But BOOTREPLY message not coming to relay.
Please let me know how to debug that. If somebody knows how to debug this, that would be great help for me.

Also, please let me know the reason. Is there any issue in ISC DHCP relay over P2P or tun link to communicate with DHCP Server.

Server side configuration
--------------------------------
cat /etc/dhcpd.conf
subnet 10.46.185.0 netmask 255.255.255.0 {
}
subnet 30.30.30.0 netmask 255.255.255.0 {
  range 30.30.30.2 30.30.30.10;
}

[root at New_LC_04 ~]# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:30:48:B0:D4:E2
          inet addr:10.46.185.77  Bcast:10.46.185.255  Mask:255.255.255.0
          inet6 addr: fe80::230:48ff:feb0:d4e2/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:944510 errors:0 dropped:0 overruns:0 frame:0
          TX packets:27901 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:80879632 (77.1 MiB)  TX bytes:5138695 (4.9 MiB)
          Memory:d0100000-d0120000

[root at New_LC_04 ~]#

Snap In Server side
------------------------
[root at New_LC_04 ~]# dhcpd -4 -d -cf /etc/dhcpd.conf -lf /var/db/dhcpd.leases eth0
DHCPDISCOVER from d0:27:88:d7:4a:31 (PC) via 30.30.30.31
DHCPOFFER on 30.30.30.2 to d0:27:88:d7:4a:31 (PC) via 30.30.30.31


Snap In Relay side
----------------------
# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:60:43:00:00:0A
          inet addr:30.30.30.31  Bcast:30.30.30.255  Mask:255.255.255.0
          inet6 addr: fe80::260:43ff:fe00:a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:139 errors:0 dropped:0 overruns:0 frame:0
          TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:32290 (31.5 KiB)  TX bytes:1062 (1.0 KiB)
          Base address:0x6000

#

#./dhcrelay -4  -d 10.46.185.77
Forwarded BOOTREQUEST for d0:27:88:d7:4a:31 to 10.46.185.77

Thanks,
Ameen


Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. 

www.wipro.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/mailman/private/dhcp-workers/attachments/20130402/01a56d49/attachment.html>


More information about the dhcp-workers mailing list