Hello,
I'm trying to set up a gateway / firewall at my home. I've set my
modem into half bridge mode, and my ethernet card (url0) is able to
get the address correctly if I use dhclient once the system has booted
(more on that later). I've set /etc/resolv.conf to use the correct
name servers that my ISP provides. So I'm guessing that leaves the
question of setting the right gateway.

Here's /etc/hostname.url0:
dhcp NONE NONE NONE
!/sbin/route add default -ifp url0 0.0.0.1

However, when my machine boots up, it can't get an address via DHCP!
This is very strange; the modem is on and connected, so I know it has
the address to give out. Obviously because I don't have an IP address,
adding the default route fails too. The strange thing is though, that
once the machine is booted, I can log in and do "dhclient" and it all
works fine. I can even set the route, but I still can't connect to the
internet. Is there something glaringly obviously that I'm doing wrong?


I'm not sure what other information I should provide. I'll add my
dmesg, though I'm not sure that it's necessary:

OpenBSD 4.1 (GENERIC) #1435: Sat Mar 10 19:07:45 MST 2007
   [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium III ("GenuineIntel" 686-class) 907 MHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
real mem  = 251162624 (245276K)
avail mem = 221499392 (216308K)
using 3096 buffers containing 12681216 bytes (12384K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+ BIOS, date 02/25/02, BIOS32 rev. 0 @
0xfaf93, SMBIOS rev. 2.3 @ 0xec000 (46 entries)
bios0: TOSHIBA DynaBook T4/410PME
apm0 at bios0: Power Management spec V1.2
apm0: battery life expectancy 100%
apm0: AC on, battery charge high, estimated 3:03 hours
apm0: flags 20102 dobusy 0 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xf0000/0x10000
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf0200/144 (7 entries)
pcibios0: PCI Interrupt Router at 000:07:0 ("Acer Labs M1533 ISA" rev 0x00)
pcibios0: PCI bus #4 is the last bus
bios0: ROM list: 0xc0000/0xc000 0xe0000/0x10000!
acpi at mainbus0 not configured
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Acer Labs M1644 PCI" rev 0x01
ppb0 at pci0 dev 1 function 0 "Acer Labs M5247 AGP/PCI-PC" rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "Trident CyberBlade XP/Ai1" rev 0x82
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ohci0 at pci0 dev 2 function 0 "Acer Labs M5237 USB" rev 0x03: irq 11,
version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Acer Labs OHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
pciide0 at pci0 dev 4 function 0 "Acer Labs M5229 UDMA IDE" rev 0xc3:
DMA, channel 0 wired to compatibility, channel 1 wired to
compatibility
wd0 at pciide0 channel 0 drive 0: <TOSHIBA MK4018GAS>
wd0: 16-sector PIO, LBA, 38154MB, 78140160 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <MATSHITA, UJDA720 DVD/CDRW, 1.00> SCSI0
5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
autri0 at pci0 dev 6 function 0 "Acer Labs M5451 Audio" rev 0x01: irq 11
ac97: codec id 0x414b4d02 (Asahi Kasei AK4543)
ac97: codec features headphone, 18 bit DAC, 18 bit ADC, AKM 3D
audio0 at autri0
midi0 at autri0: <4DWAVE MIDI UART>
pcib0 at pci0 dev 7 function 0 "Acer Labs M1533 ISA" rev 0x00
alipm0 at pci0 dev 8 function 0 "Acer Labs M7101 Power" rev 0x00: 74KHz clock
iic0 at alipm0
admtemp0 at iic0 addr 0x4c: adm1032
fxp0 at pci0 dev 10 function 0 "Intel 8255x" rev 0x0d, i82550: irq 11,
address 00:00:39:8c:91:ed
inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4
"TI TSB43AB22 FireWire" rev 0x00 at pci0 dev 12 function 0 not configured
cbb0 at pci0 dev 17 function 0 "Toshiba ToPIC100 CardBus" rev 0x32: irq 11
cbb1 at pci0 dev 17 function 1 "Toshiba ToPIC100 CardBus" rev 0x32: irq 11
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
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
midi1 at pcppi0: <PC speaker>
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: 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
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 3 device 0 cacheline 0x0, lattimer 0x0
pcmcia0 at cardslot0
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 4 device 0 cacheline 0x0, lattimer 0x0
pcmcia1 at cardslot1
biomask ef6d netmask ef6d ttymask ffef
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
url0 at uhub0 port 2
url0: REALTEK USB 10/100 LAN, rev 1.10/1.00, addr 2
url0: address 00:e0:4c:03:22:ee
urlphy0 at url0 phy 0: RTL internal phy
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302


As you can see, GENERIC kernel, a vanilla install; nothing
out-of-the-ordinary as far as I can tell. Any suggestions?

Reply via email to