From owner-freebsd-bugs Tue Mar 18 10:25:18 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id KAA15947 for bugs-outgoing; Tue, 18 Mar 1997 10:25:18 -0800 (PST) Received: from albert.osu.cz (albert.osu.cz [193.84.224.12]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id KAA15659 for ; Tue, 18 Mar 1997 10:22:20 -0800 (PST) Received: (from belkovic@localhost) by albert.osu.cz (8.6.12/8.6.12) id TAA01255; Tue, 18 Mar 1997 19:25:07 +0100 Date: Tue, 18 Mar 1997 19:24:56 +0100 (MET) From: Josef Belkovics To: George Uhl cc: freebsd-bugs@freebsd.org Subject: Re: ISC dhcpd In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > >I need install DHCP server (ISC dhcpd). Does FreeBSD IP stack allow the > >all-ones broadcast to go out onto the lan unchanged? > No. > >Or FreeBSD changes > >the all-ones broadcast into the local subnet broadcast (e. g. > >255.255.255.255 -> 193.84.224.255 etc.). > Yes. > I did a dhcp implementaion that used a raw IP socket, but first > I had to constuct the UDP and IP header information. I did use > 255.255.255.255 as the destination address. I configured the > routing table with a static route {host 255.255.255.255 gateway > albert}, but I only configured one interface on the host. ISC dhcpd on FreeBSD needs bpf (berkeley packet filter). For each interface one device /dev/bpf?. > Since it sounds like you are configuring multiple interfaces on a > host, this becomes harder. What is the correct IP address for a > given interface if you don't know what subnet it is attached to? > I don't want to make suggestions (or guesses) without knowing > more about your network topology. My topology is: ep0 net 193.84.224.0 mask 255.255.255.0 #p1 net 193.84.226.0 mask 255.255.255.0 in future #p2 net 193.84.227.0 mask 255.255.255.0 in future ep3 net 193.84.228.0 mask 255.255.255.0 My opinion arised from text 'README' in port 'DHCPD-BETA-5.14.tar.gz'. Author indirect says that FreeBSD hasn't an ip stack that allows the all-ones broadcast. (You say it also.) As a result (says author) my clients will not see DHCPOFFER. But dhcpd logs that at least some clients received (c)dhcpdiscover - (s)DHCPOFFER - (c)dhcprequest - (s)DHCPAK etc. If client requests that server respond using unicast, all is good. But if client requests that server respond using broadcast, then I may have problem. With single interface I can solve one by creating martian route. My question is, what to do with dhcpd on multiple interfaces with condition 'client requests broadcast'? (I don't know, if win3.x (+ tcp/ip), win95 or nt clients request sometimes broadcast.) > >If yes, which file from the kernel source I must 'rewrite'. Or exists > >another way how can I cancel (i know better word) a bit too clever ms-dhcp > >clients? I can't use static routes "static { host 255.255.255.255 gateway > >albert };" in /etc/gated.conf, because I have several network interfaces. > > George Uhl > email: > phone: 703-883-7305 > > The MITRE Corporation > 1820 Dolley Madison Blvd. > McLean, VA. 22102 JPB