dhcrelay on router

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm setting up a router (linux, debian-sarge), which shall relay dhcp requests 
from all subnets to a central DHCP server. The general stuff is solved, i.e. 
I can ping from any connected machine to any other including the NICs of the 
router itself. All firewall tables (including nat and mangle) are set to 
ACCEPT and flushed.

On my model system I have the NIC 172.16.1.121 (eth1), which is surtur and 
also connects to adept the DHCP (172.16.1.7). This net (172.16.1.0) shall be 
connected to 172.16.2.0 using the other NIC 172.16.2.1 (eth0, not in DNS). 
Attached to it is my WLAN access point (ymir, 172.16.2.12). And this is what 
happens:

#> dhcrelay -i eth0 adept.mgr
#> tcpdump -i any port bootpc or port bootps
09:42:09.996479 172.16.1.12.bootpc > 255.255.255.255.bootps: xid:0x960f0000 
flags:0x8000 [|bootp] 
09:42:09.997009 surtur.mgr.bootps > adept.mgr.bootps: (request) xid:0x960f0000 
flags:0x8000 G:172.16.2.1 ether 0:9:5b:68:19:fb [|bootp] (DF) 
09:42:09.997603 adept.mgr.bootps > 172.16.2.1.bootps: (reply) xid:0x960f0000 
flags:0x8000 Y:ymir.mgr S:adept.mgr G:172.16.2.1 ether 0:9:5b:68:19:fb [|
bootp] (DF) 

... but somethink like the following never appears (line taken from DHCP 
exchange from server installed on router):

09:59:38.780364 172.16.2.1.bootps > 255.255.255.255.bootpc: xid:0x960f0000 
flags:0x8000 Y:ymir.mgr S:172.16.2.1 [|bootp] [tos 0x10] 

Therefore, ymir never gets his IP!

Any help appreciated,
 - lars.
_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux