Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Nov 2009 03:50:17 -0800 (PST)
From:      =?iso-8859-1?Q?D=E1nielisz_L=E1szl=F3?= <laszlo_danielisz@yahoo.com>
To:        =?iso-8859-1?Q?Trond_Endrest=F8l?= <Trond.Endrestol@fagskolen.gjovik.no>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: dhcpd related issue
Message-ID:  <362244.82968.qm@web30804.mail.mud.yahoo.com>
In-Reply-To: <alpine.BSF.2.00.0911011212190.44239@mail.fig.ol.no>
References:  <82804.79685.qm@web30804.mail.mud.yahoo.com> <b043a4850910312238p79e05049ka3ce74f8f44307ed@mail.gmail.com> <516971.12872.qm@web30807.mail.mud.yahoo.com> <806321.83601.qm@web30807.mail.mud.yahoo.com> <alpine.BSF.2.00.0911011212190.44239@mail.fig.ol.no>

next in thread | previous in thread | raw e-mail | index | archive | help
The output of:=0A# ifconfig rl1=0Arl1: flags=3D8943<UP,BROADCAST,RUNNING,PR=
OMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500=0A    options=3D8<VLAN_MTU>=0A  =
  ether 00:13:8f:86:2f:64=0A    inet 192.168.1.1 netmask 0xffffff00 broadca=
st 192.168.1.255=0A    media: Ethernet autoselect (100baseTX <full-duplex>)=
=0A    status: active=0A=0AAnd:=0A# netstat -rnf inet=0ARouting tables=0A=
=0AInternet:=0ADestination        Gateway            Flags    Refs      Use=
  Netif Expire=0Adefault            <my_gw_address>       UGS         0   1=
16905   tun0=0A<my_ip_address>       link#4             UHS         0      =
  0    lo0=0A<my_gw_address>        link#6             UHS         0       =
 0   tun0=0A127.0.0.1          link#4             UH          0      327   =
 lo0=0A192.168.1.0/24     link#2             U           1    99038    rl1=
=0A192.168.1.1        link#4             UHS         0        0    lo0=0A=
=0A=0AI'm usinf FreeBSD 8.0, right now I try to figure out how to check if =
bpf is comipled in the generic kernel; just to mention:=0A# /usr/local/etc/=
rc.d/isc-dhcpd status=0Adhcpd is running as pid 3716.=0A=0A=0A_____________=
___________________=0AFrom: Trond Endrest=F8l <Trond.Endrestol@fagskolen.gj=
ovik.no>=0ATo: D=E1nielisz L=E1szl=F3 <laszlo_danielisz@yahoo.com>=0ACc: fr=
eebsd-questions@freebsd.org=0ASent: Sun, November 1, 2009 12:30:52 PM=0ASub=
ject: Re: dhcpd related issue=0A=0A-----BEGIN PGP SIGNED MESSAGE-----=0AHas=
h: SHA1=0A=0AOn Sun, 1 Nov 2009 02:06-0800, D=E1nielisz L=E1szl=F3 wrote:=
=0A=0A> I had one more idea: try nmap on my dhcp server, and port 67 does =
=0A> not seems to be opened, after I tried telneting in and my connection =
=0A> was refused:=0A> =0A> $ telnet 192.168.1.1 67=0A> Trying 192.168.1.1..=
.=0A> telnet: connect to address 192.168.1.1: Connection refused=0A> telnet=
: Unable to connect to remote host=0A=0ADHCP uses UDP, telnet uses TCP, no =
wonder you're getting refused.=0A=0ADo you have bpf (Berkeley packet filter=
) compiled in the kernel?=0Adhcpd relies on bpf. Just a thought, although d=
hcpd would probably =0Ashut down if bpf is unavailable.=0A=0AAs others have=
 suggested, please post the output from ifconfig rl1, =0Aand from netstat -=
rnf inet.=0A=0A> Than I disabled pf=0A> # pfctl -d=0A> No ALTQ support in k=
ernel=0A> ALTQ related functions disabled=0A> pf disabled=0A=0AJust another=
 (silly) thought, does your pf setup allow UDP from =0A192.168.1.1:67 to *:=
68 over the rl1 interface?=0A=0A> Than I checked telnet/nmap again but stil=
l don't found any 67 port =0A> ever there. I checked again that the dhcpd i=
s running, and its up:=0A>=0A> # ps ax|grep dhcp=0A>   958  ??  Is     0:00=
.00 /usr/local/sbin/dhcpd -cf /usr/local/etc/dhcpd.conf -lf /var/db/dhcpd/d=
hcpd.lease=0A> =0A> Any idea?=0A=0ADid you restart dhcpd?=0AWhat's the outp=
ut from fstat with respect to dhcpd?=0A=0AThe output should be something re=
sembling:=0A=0Adhcpd    dhcpd      18990 root /             2 drwxr-xr-x   =
 1024  r=0Adhcpd    dhcpd      18990   wd /             6 drwxr-xr-x    102=
4  r=0Adhcpd    dhcpd      18990 text /usr     10505569 -rwxr-xr-x  595924 =
 r=0Adhcpd    dhcpd      18990    0 /dev         14 crw-rw-rw-    null rw=
=0Adhcpd    dhcpd      18990    1 /dev         14 crw-rw-rw-    null rw=0Ad=
hcpd    dhcpd      18990    2 /dev         14 crw-rw-rw-    null rw=0Adhcpd=
    dhcpd      18990    3* local dgram c32224b4 <-> c32228bc=0Adhcpd    dhc=
pd      18990    4* internet raw icmp c32d8b2c=0Adhcpd    dhcpd      18990 =
   5* internet dgram udp c3173974=0Adhcpd    dhcpd      18990    6 /var    =
  70999 -rw-r--r--   93335  w=0Adhcpd    dhcpd      18990    7 /dev        =
  7 crw-------     bpf rw=0A=0AIf you happen to have lsof installed, it sho=
uld yield something like =0Athis:=0A=0Adhcpd     18990     1 dhcpd  cwd   V=
DIR       0,98       1024        6 /root=0Adhcpd     18990     1 dhcpd  rtd=
   VDIR       0,98       1024        2 /=0Adhcpd     18990     1 dhcpd  txt=
   VREG      0,106     595924 10505569 /usr/local/sbin/dhcpd=0Adhcpd     18=
990     1 dhcpd  txt   VREG       0,98     220136    26684 /libexec/ld-elf.=
so.1=0Adhcpd     18990     1 dhcpd  txt   VREG       0,98    1143792     13=
27 /lib/libc.so.7=0Adhcpd     18990     1 dhcpd    0u  VCHR       0,14     =
   0t0       14 /dev/null=0Adhcpd     18990     1 dhcpd    1u  VCHR       0=
,14        0t0       14 /dev/null=0Adhcpd     18990     1 dhcpd    2u  VCHR=
       0,14        0t0       14 /dev/null=0Adhcpd     18990     1 dhcpd    =
3u  unix 0xc31719a8        0t0          ->0xc3171b44 (QR=3D0 QS=3D0 SO=3DPQ=
LEN=3D0,QLEN=3D0,QLIM=3D0,RCVBUF=3D32768,SNDBUF=3D16384 SS=3DISCONNECTED)=
=0Adhcpd     18990     1 dhcpd    4u  IPv4 0xc32d8b2c        0t0     ICMP *=
:* (QR=3D0 QS=3D0 SO=3DPQLEN=3D0,QLEN=3D0,QLIM=3D0,RCVBUF=3D73728,SNDBUF=3D=
73728)=0Adhcpd     18990     1 dhcpd    5u  IPv4 0xc3175060        0t0     =
 UDP *:bootps (QR=3D0 QS=3D0 SO=3DPQLEN=3D0,QLEN=3D0,QLIM=3D0,RCVBUF=3D2621=
44,REUSEADDR,SNDBUF=3D73728)=0Adhcpd     18990     1 dhcpd    6w  VREG     =
 0,104      94061    70999 /var (/dev/ufs/var)=0Adhcpd     18990     1 dhcp=
d    7u  VCHR        0,7 0t26744985        7 /dev/bpf=0A=0A=0AHTH,=0ATrond.=
=0A=0A> ________________________________=0A> From: D=E1nielisz L=E1szl=F3 <=
laszlo_danielisz@yahoo.com>=0A> To: patrick <gibblertron@gmail.com>=0A> Cc:=
 freebsd-questions@freebsd.org=0A> Sent: Sun, November 1, 2009 8:34:03 AM=
=0A> Subject: Re: dhcpd related issue=0A> =0A> It's the same, I still don't=
 got any IP address.=0A> =0A> =0A> =0A> =0A> ______________________________=
__=0A> From: patrick <gibblertron@gmail.com>=0A> To: D=E1nielisz L=E1szl=F3=
 <laszlo_danielisz@yahoo.com>=0A> Cc: freebsd-questions@freebsd.org=0A> Sen=
t: Sun, November 1, 2009 6:38:31 AM=0A> Subject: Re: dhcpd related issue=0A=
> =0A> What happens if you disable pf temporarily?=0A> =0A> 2009/10/31 D=E1=
nielisz L=E1szl=F3 <laszlo_danielisz@yahoo.com>:=0A> > Hello,=0A> >=0A> > I=
 just configured my dhcpd but it gives no IP-s.=0A> > What had I done until=
 now:=0A> >=0A> >  1. Installed isc-dhcp via ports=0A> >=0A> > 2. edited th=
e /usr/local/etc/dhcpd.conf=0A> >=0A> > option domain-name "bsd";=0A> > opt=
ion domain-name-servers <my dns server ip>;=0A> > option subnet-mask 255.25=
5.255.0;=0A> > authoritative;=0A> >=0A> > default-lease-time 3600;=0A> > ma=
x-lease-time 86400;=0A> > ddns-update-style none;=0A> >=0A> > subnet 192.16=
8.1.0 netmask 255.255.255.0 {=0A> > range 192.168.1.129 192.168.1.250;=0A> =
> option routers 192.168.1.1;=0A> > }=0A> >=0A> > 3. Added the following on=
es to /etc/rc.conf=0A> > ifconfig_rl1=3D"inet 192.168.1.1  netmask 255.255.=
255.0"=0A> > dhcpd_enable=3D"YES"=0A> > dhcpd_conf=3D"/usr/local/etc/dhcpd.=
conf"=0A> > dhcpd_ifaces=3D"rl1"=0A> >=0A> >=0A> > 4. Opened the adequate p=
ort in pf=0A> > pass in log on rl1 inet proto tcp from 192.168.1.0/24 to 19=
2.168.1.1 port =3D bootps flags S/SA keep state=0A> > pass in log on rl1 in=
et proto udp from 192.168.1.0/24 to 192.168.1.1 port =3D bootps keep state=
=0A> >=0A> > 5.. When I start de daemon:=0A> > # /usr/local/etc/rc.d/isc-dh=
cpd start=0A> > Starting dhcpd.=0A> > Internet Systems Consortium DHCP Serv=
er V3.0.7=0A> > Copyright 2004-2008 Internet Systems Consortium.=0A> > All =
rights reserved.=0A> > For info, please visit http://www.isc.org/sw/dhcp/=
=0A> > Wrote 0 leases to leases file.=0A> > Listening on Socket/rl1/192.168=
.1/24=0A> > Sending on   Socket/rl1/192.168.1/24=0A> >=0A> > Everythings lo=
oks 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?=0A> >=
=0A> >=0A> > Thanks!=0A> > Laci=0A=0A- -- =0A- ----------------------------=
------------------------------------------=0ATrond Endrest=F8l             =
     | Trond.Endrestol@fagskolen.gjovik.no=0AACM, NAS, NUUG, SAGE, USENIX  =
   |    FreeBSD 7.2-STABLE & Alpine 2.00=0A-----BEGIN PGP SIGNATURE-----=0A=
Version: GnuPG v2.0.12 (FreeBSD)=0A=0AiEYEARECAAYFAkrtcXsACgkQbYWZalUoElvP0=
gCeLU+/YYnZ07hy2K5atOeN35kj=0Ayk4Ani+Ip66CWpzIzp8986tIu9Ya172n=0A=3DksU6=0A=
-----END PGP SIGNATURE-----=0A=0A=0A      



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?362244.82968.qm>