When using the alias clause (per dhclient.conf(5)), I encounter a
problem with dhclient: it immediately exits after obtaining a lease.
It does seem to set the requested alias, however.

It exits with the following syslog messages:
Jul 22 16:14:11 sol dhclient[1937]: buf_read (connection closed)
Jul 22 16:14:11 sol dhclient[1937]: exiting.

I would expect dhclient to keep running as it normally does (i.e.
without aliases). Given the manual (and barring configuration errors),
I would expect this functionality to be supported. Is that correct or
are there caveats? I could not find these in the manual/faq/Google.

If I remove the alias clause from the dhclient.conf file (included
below), dhclient works as expected: it obtains a lease, sets the
interface address and keeps running. Adding the alias clause seems to
cause this symptom.


I traced the exit message above to the privsep.c file included with
the dhclient sources. I suspect something causes the connection to the
privileged process to close. I cannot find out what specific condition
causes it to close, though.

In the dhclient(8) and dhclient.conf(5) manuals, I cannot find
information on how to obtain more verbose logging. Suggestions on how
to obtain more information are more than welcome, if anyone has them.
I've seen several threads [1,2] describe this issue, but I failed to
find answers indicating what the underlying problem is.

My dhclient configuration:

# cat /etc/dhclient.conf
# Generic settings
initial-interval 1;
send host-name "sol";


# ADSL uplink
interface "rl0" {
       # Prepend our own information where needed (DNS)
       prepend domain-name-servers 127.0.0.1;

       # Request other information from the DHCP server
       request host-name, subnet-mask, broadcast-address, routers, domain-name-
servers, time-offset;

       # Supersede some information obtained from the DHCP server
       #supersede routers 10.0.0.138;
       #supersede subnet-mask 255.255.255.0;
}

# ADSL modem connection
alias {
      interface "rl0";
      fixed-address 10.0.0.10;
      option subnet-mask 255.255.255.255;
}


My system's dmesg:

# cat /var/run/dmesg.boot
OpenBSD 3.9 (GENERIC) #617: Thu Mar  2 02:26:48 MST 2006
   [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium II ("GenuineIntel" 686-class, 512KB L2 cache) 301 MHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR
real mem  = 133799936 (130664K)
avail mem = 115367936 (112664K)
using 1658 buffers containing 6791168 bytes (6632K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(c4) BIOS, date 03/22/98, BIOS32 rev. 0 @ 0xfb4f0
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 70102 dobusy 1 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xf0000/0xb968
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdf10/128 (6 entries)
pcibios0: PCI Exclusive IRQs: 10 11 12
pcibios0: PCI Interrupt Router at 000:07:0 ("Intel 82371SB ISA" rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc0000/0x8000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82443BX AGP" rev 0x02
ppb0 at pci0 dev 1 function 0 "Intel 82443BX AGP" rev 0x02
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "ATI Rage Pro" rev 0x5c
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pcib0 at pci0 dev 7 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02
pciide0 at pci0 dev 7 function 1 "Intel 82371AB IDE" rev 0x01: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <WDC AC36400L>
wd0: 16-sector PIO, LBA, 6149MB, 12594960 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <E-IDE, CD-ROM 36X/AKU, U10I> SCSI0
5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
uhci0 at pci0 dev 7 function 2 "Intel 82371AB USB" rev 0x01: irq 10
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
piixpm0 at pci0 dev 7 function 3 "Intel 82371AB Power" rev 0x02: polling
iic0 at piixpm0
"unknown" at iic0 addr 0x28 not configured
rl0 at pci0 dev 9 function 0 "Realtek 8139" rev 0x10: irq 11, address
00:e0:4c:3c:5b:0d
rlphy0 at rl0 phy 0: RTL internal PHY
rl1 at pci0 dev 11 function 0 "Realtek 8139" rev 0x10: irq 12, address
00:e0:4c:69:ec:31
rlphy1 at rl1 phy 0: RTL internal PHY
pciide1 at pci0 dev 12 function 0 "CMD Technology SiI3112 SATA" rev 0x02: DMA
pciide1: using irq 10 for native-PCI interrupt
pciide1: port 0: device present, speed: 1.5Gb/s
wd1 at pciide1 channel 0 drive 0: <ST3250820AS>
wd1: 16-sector PIO, LBA48, 238475MB, 488397168 sectors
wd1(pciide1:0:0): using BIOS timings, Ultra-DMA mode 6
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask e765 netmask ff65 ttymask ffe7
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
dkcsum: wd0 matches BIOS drive 0x80
dkcsum: wd1 matches BIOS drive 0x81
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302




References:
1. OpenBSD-misc archive: "dhclient exits while creating aliases"
http://archives.neohapsis.com/archives/openbsd/2006-05/thread.html#2596
2. MARC OpenBSD-misc archive: "dhclient woes"
http://marc.theaimsgroup.com/?l=openbsd-misc&m=113072404726142&w=2



--
If you don't know where you're going, any road will get you there.

Reply via email to