From owner-freebsd-questions@FreeBSD.ORG Sun Nov 1 11:09:32 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 209F9106568D for ; Sun, 1 Nov 2009 11:09:32 +0000 (UTC) (envelope-from kraduk@googlemail.com) Received: from mail-bw0-f213.google.com (mail-bw0-f213.google.com [209.85.218.213]) by mx1.freebsd.org (Postfix) with ESMTP id 739608FC18 for ; Sun, 1 Nov 2009 11:09:31 +0000 (UTC) Received: by bwz5 with SMTP id 5so5306456bwz.3 for ; Sun, 01 Nov 2009 03:09:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=Hr0jnM6mn2JMNNK422OflJnvqdQTkeAqGpo8464I8XY=; b=EJk9tVCGWTc2e8v9EdqRBTuaGlg0xEeOQyquvUQcCxY0L6MbiT0X7/2GrN7nQRm6Vy hXR/HZqmm2l6Sxqz1PaxR0W+1os08QpHSXj0+U/2Qfuo0ZOb72v9QoQyzGDjycnu5Tgv UBUlwQ1tGqBDxUHoQ4lP13+bQ7jw9u82L6zfI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=bd8V7lTVsN+tmUO3c4eVlVlD+4rrwPKz0qtvDNatzJ3ll77d75jrJ9qMD/NZokxoks L7zjigB25Sp0CJaYLCTnIbbzlNquuY2uBYcW0kyZpBZoPkFUeDIcA5xDm6l2B97v3Tku J76/6q2ck7uPjGsx83tjQxDoo06zcJZKBGnI0= MIME-Version: 1.0 Received: by 10.239.163.201 with SMTP id q9mr389610hbd.38.1257073770094; Sun, 01 Nov 2009 03:09:30 -0800 (PST) In-Reply-To: <49594.91061.qm@web30806.mail.mud.yahoo.com> References: <82804.79685.qm@web30804.mail.mud.yahoo.com> <516971.12872.qm@web30807.mail.mud.yahoo.com> <806321.83601.qm@web30807.mail.mud.yahoo.com> <49594.91061.qm@web30806.mail.mud.yahoo.com> Date: Sun, 1 Nov 2009 11:09:30 +0000 Message-ID: From: krad To: =?ISO-8859-1?Q?D=E1nielisz_L=E1szl=F3?= Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: dhcpd related issue - not giving up X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Nov 2009 11:09:32 -0000 2009/11/1 D=E1nielisz L=E1szl=F3 > I don't give it up, doing some tcpdump on my BSD I can see the dhcp reque= st > reaches the machine, the dhcpd is running, but why doesn't gives any IP? > > # tcpdump -i rl1 -n port 67 or port 68 > tcpdump: verbose output suppressed, use -v or -vv for full protocol decod= e > listening on rl1, link-type EN10MB (Ethernet), capture size 96 bytes > 11:51:43.086597 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request > from 00:24:03:f1:bd:36, length 300 > 11:51:45.102260 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request > from 00:24:03:f1:bd:36, length 300 > 11:51:49.114960 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request > from 00:24:03:f1:bd:36, length 300 > 11:51:57.150734 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request > from 00:24:03:f1:bd:36, length 300 > 11:51:59.157311 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request > from 00:24:03:f1:bd:36, length 300 > 11:52:03.160029 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request > from 00:24:03:f1:bd:36, length 300 > 11:57:09.770520 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request > from 00:23:6c:86:41:d9, length 300 > 11:57:11.941379 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request > from 00:23:6c:86:41:d9, length 300 > 11:57:14.928398 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request > from 00:23:6c:86:41:d9, length 300 > 11:57:16.378911 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request > from 00:23:6c:86:41:d9, length 300 > 11:57:17.703219 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request > from 00:23:6c:86:41:d9, length 300 > 11:57:18.839763 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request > from 00:23:6c:86:41:d9, length 300 > > > > > > > ________________________________ > From: D=E1nielisz L=E1szl=F3 > To: freebsd-questions@freebsd.org > Sent: Sun, November 1, 2009 11:06:36 AM > Subject: Re: dhcpd related issue > > I had one more idea: try nmap on my dhcp server, and port 67 does not see= ms > to be opened, after I tried telneting in and my connection was refused: > > $ telnet 192.168.1.1 67 > Trying 192.168.1.1... > telnet: connect to address 192.168.1.1: Connection refused > telnet: Unable to connect to remote host > > Than I disabled pf > # pfctl -d > No ALTQ support in kernel > ALTQ related functions disabled > pf disabled > > Than I checked telnet/nmap again but still don't found any 67 port ever > there. I checked again that the dhcpd is running, and its up: > # ps ax|grep dhcp > 958 ?? Is 0:00.00 /usr/local/sbin/dhcpd -cf > /usr/local/etc/dhcpd.conf -lf /var/db/dhcpd/dhcpd.lease > > Any idea? > > > > > ________________________________ > From: D=E1nielisz L=E1szl=F3 > To: patrick > Cc: freebsd-questions@freebsd.org > Sent: Sun, November 1, 2009 8:34:03 AM > Subject: Re: dhcpd related issue > > It's the same, I still don't got any IP address. > > > > > ________________________________ > From: patrick > To: D=E1nielisz L=E1szl=F3 > Cc: freebsd-questions@freebsd.org > Sent: Sun, November 1, 2009 6:38:31 AM > Subject: Re: dhcpd related issue > > What happens if you disable pf temporarily? > > 2009/10/31 D=E1nielisz L=E1szl=F3 : > > Hello, > > > > I just configured my dhcpd but it gives no IP-s. > > What had I done until now: > > > > 1. Installed isc-dhcp via ports > > > > 2. edited the /usr/local/etc/dhcpd.conf > > > > option domain-name "bsd"; > > option domain-name-servers ; > > option subnet-mask 255.255.255.0; > > authoritative; > > > > default-lease-time 3600; > > max-lease-time 86400; > > ddns-update-style none; > > > > subnet 192.168.1.0 netmask 255.255.255.0 { > > range 192.168.1.129 192.168.1.250; > > option routers 192.168.1.1; > > } > > > > 3. Added the following ones to /etc/rc.conf > > ifconfig_rl1=3D"inet 192.168.1.1 netmask 255.255.255.0" > > dhcpd_enable=3D"YES" > > dhcpd_conf=3D"/usr/local/etc/dhcpd.conf" > > dhcpd_ifaces=3D"rl1" > > > > > > 4. Opened the adequate port in pf > > pass in log on rl1 inet proto tcp from 192.168.1.0/24 to 192.168.1.1 > port =3D bootps flags S/SA keep state > > pass in log on rl1 inet proto udp from 192.168.1.0/24 to 192.168.1.1 > port =3D bootps keep state > > > > 5.. When I start de daemon: > > # /usr/local/etc/rc.d/isc-dhcpd start > > Starting dhcpd. > > Internet Systems Consortium DHCP Server V3.0.7 > > Copyright 2004-2008 Internet Systems Consortium. > > All rights reserved. > > For info, please visit http://www.isc.org/sw/dhcp/ > > Wrote 0 leases to leases file. > > Listening on Socket/rl1/192.168.1/24 > > Sending on Socket/rl1/192.168.1/24 > > > > Everythings looks to be ok there but on the client (I tried OS-X and > Nokia symbian) I can not obtain the IP address, do you have any idea what > should I check? > > > > > > Thanks! > > Laci > > > > > > > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > > > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > > > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > > > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > start with the silly stuff what does ifconfig say for that interface