Subject: how to setup dhcp
To: None <netbsd-users@netbsd.org>
From: Chan Yiu Wah <c5666305@hkstar.com>
List: netbsd-users
Date: 11/30/1999 22:09:09
Hello,

I had problem in setup the dhcpd.  The dhcpd does start.  However, my
win98 in the LAN cannot use the the dhcp to be assigned a IP address for
accessing the internet.. When I put back the actual IP for my win98, it
can access the internet through my server. Any idea ?

clarence

p.s. I use ipnat and pppd as well.

======= dhcpd.conf ======
# dhcpd.conf
#
# Sample configuration file for ISC dhcpd
#

# option definitions common to all supported networks...
option domain-name "hkstar.com";
option domain-name-servers pc77.hkstar.com;

option subnet-mask 255.255.255.0;
default-lease-time 600;
max-lease-time 7200;

subnet 202.66.33.0 netmask 255.255.255.0 {
  range 202.66.33.100 202.66.33.200;
  option broadcast-address 202.66.33.77;
  option routers pc77.hkstar.com;
}


host pc77 {
  hardware ethernet 00:00:b4:55:bb:5f;
  filename "unix.pc77";
  server-name "pc77.hkstar.com";
}
======= dhcpd.conf =======

======= dmesg =======
NetBSD 1.4P (GENERIC) #5: Fri Nov 26 19:10:59 CST 1999
    root@pc77:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: family 5 model 4 step 3
cpu0: Intel Pentium/MMX (586-class)
total memory = 127 MB
avail memory = 115 MB
using 1659 buffers containing 6636 KB of memory
BIOS32 rev. 0 found at 0xfb0f0
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82439TX System Controller (MTXC) (rev. 0x01)
pcib0 at pci0 dev 7 function 0
pcib0: Intel 82371AB PCI-to-ISA Bridge (PIIX4) (rev. 0x01)
Intel 82371AB IDE controller (PIIX4) (IDE mass storage, interface 0x80, revision 0x01) at pci0 dev 7 function 1 not configured
uhci0 at pci0 dev 7 function 2: Intel 82371AB USB Host Controller (PIIX4) (rev. 0x01)
uhci0: interrupting at irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
Intel 82371AB Power Management Controller (PIIX4) (miscellaneous bridge, revision 0x01) at pci0 dev 7 function 3 not configured
ahc0 at pci0 dev 8 function 0
ahc0: interrupting at irq 10
ahc0: aic7880 Wide Channel, SCSI Id=7, 16 SCBs
scsibus0 at ahc0 channel 0: 16 targets, 8 luns per target
vga1 at pci0 dev 11 function 0: S3 ViRGE/DX (rev. 0x01)
wsdisplay0 at vga1: console (80x25, vt100 emulation)
ne0 at pci0 dev 12 function 0: RealTek 8029 Ethernet
ne0: 10base2, 10baseT, 10baseT-FDX, auto, default auto
ne0: supplying EUI64: 00:00:b4:ff:fe:55:bb:5f
ne0: Ethernet address 00:00:b4:55:bb:5f
ne0: interrupting at irq 10
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
lpt0 at isa0 port 0x378-0x37b irq 7
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
isapnp0: no ISA Plug 'n Play devices found
biomask ef65 netmask ef65 ttymask ffe7
scsibus0: waiting 2 seconds for devices to settle...
ahc0: target 0 using 16Bit transfers
ahc0: target 0 synchronous at 20.0MHz, offset = 0x8
sd0 at scsibus0 targ 0 lun 0: <IBM, DDRS-39130D, DC1B> SCSI2 0/direct fixed
sd0: 8715 MB, 8387 cyl, 10 head, 212 sec, 512 bytes/sect x 17850000 sectors
ahc0: target 1 synchronous at 10.0MHz, offset = 0xa
sd1 at scsibus0 targ 1 lun 0: <FUJITSU, M2513A, 1500> SCSI2 0/direct removable
sd1: 508 MB, 2034 cyl, 8 head, 64 sec, 512 bytes/sect x 1041500 sectors
ahc0: target 3 synchronous at 10.0MHz, offset = 0xf
cd0 at scsibus0 targ 3 lun 0: <PLEXTOR, CD-ROM PX-20TS, 1.00> SCSI2 5/cdrom removable
Kernelized RAIDframe activated
IPsec: Initialized Security Association Processing.
boot device: sd0
root on sd0a dumps on sd0b
root file system type: ffs
IP Filter: initialized.  Default = pass all, Logging = enabled
ne0: starting DAD for fe80:0001::0200:b4ff:fe55:bb5f
ne0: DAD complete for fe80:0001::0200:b4ff:fe55:bb5f - no duplicates found
======= dmesg =======