Re: problem with dhcpd on a bridge ?

2009-12-06 Thread Julien TOUCHE

Claudio Jeker wrote on 05/12/09 10:32:

Update to -current since this got fixed at h2k9 by Theo and myself.
Bridge did a terrible job when forwarding traffic to other ports which
resulted in most bpf listeners not seeing parts of the traffic.



Ok. thanks Claudio.
A pity it does not make 4.6.



Re: problem with dhcpd on a bridge ?

2009-12-05 Thread Claudio Jeker
On Sat, Dec 05, 2009 at 10:00:23AM +0100, jul wrote:
> I have setup a bridge following the faq
> http://www.openbsd.org/faq/faq6.html#Bridge
> (no filtering)
> 
> $ cat /etc/bridgename.bridge0
> add sis0
> add sis2
> up
> $ cat /etc/hostname.sis0
> 192.168.x.x 255.255.255.0 192.168.1.255 description LAN
> $ cat /etc/hostname.sis2
> up
> 
> 
> $ brconfig bridge0
> bridge0: flags=41
> priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6
> proto rstp
> designated: id 00:00:00:00:00:00 priority 0
> sis2 flags=3
> port 3 ifpriority 0 ifcost 0
> sis0 flags=3
> port 1 ifpriority 0 ifcost 0
> Addresses (max cache: 100, timeout: 240):
> 00:21:70:d6:76:5a sis2 1 flags=0<>
> 00:23:32:d9:56:d8 sis0 1 flags=0<>
> 
> 
> 
> I start dhcpd with:
> # /usr/sbin/dhcpd sis0 ral0
> 
> if started with bridge0 and/or sis2, /var/log/daemon returns
> Dec  5 08:32:54 soekris4801 dhcpd[20667]: Can't listen on bridge0 -
> it has no IP address.
> Dec  5 08:33:41 soekris4801 dhcpd[6656]: Can't listen on sis2 - it
> has no IP address.
> And I believe it's not needed (one interface of the bridge equals
> all of them)
> 
> Dhcpd is working on sis0 with another system but doesn't answer to
> the box on sis2. tcpdump can see arp and bootp request from the
> station but there is no response from dhcpd. Don't know why.
> 
> Hints ?
> If I configure static IP configuration, network access is good.
> really seems limited to dhcpd.
> 
> thanks a lot.
> Best regards,
> 
>   Julien
> 
> dmesg (note: update to 4.6 planned)

Update to -current since this got fixed at h2k9 by Theo and myself.
Bridge did a terrible job when forwarding traffic to other ports which
resulted in most bpf listeners not seeing parts of the traffic.

-- 
:wq Claudio



problem with dhcpd on a bridge ?

2009-12-05 Thread jul
I have setup a bridge following the faq 
http://www.openbsd.org/faq/faq6.html#Bridge

(no filtering)

$ cat /etc/bridgename.bridge0
add sis0
add sis2
up
$ cat /etc/hostname.sis0
192.168.x.x 255.255.255.0 192.168.1.255 description LAN
$ cat /etc/hostname.sis2
up


$ brconfig bridge0
bridge0: flags=41
priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 
proto rstp

designated: id 00:00:00:00:00:00 priority 0
sis2 flags=3
port 3 ifpriority 0 ifcost 0
sis0 flags=3
port 1 ifpriority 0 ifcost 0
Addresses (max cache: 100, timeout: 240):
00:21:70:d6:76:5a sis2 1 flags=0<>
00:23:32:d9:56:d8 sis0 1 flags=0<>



I start dhcpd with:
# /usr/sbin/dhcpd sis0 ral0

if started with bridge0 and/or sis2, /var/log/daemon returns
Dec  5 08:32:54 soekris4801 dhcpd[20667]: Can't listen on bridge0 - it 
has no IP address.
Dec  5 08:33:41 soekris4801 dhcpd[6656]: Can't listen on sis2 - it has 
no IP address.
And I believe it's not needed (one interface of the bridge equals all of 
them)


Dhcpd is working on sis0 with another system but doesn't answer to the 
box on sis2. tcpdump can see arp and bootp request from the station but 
there is no response from dhcpd. Don't know why.


Hints ?
If I configure static IP configuration, network access is good. really 
seems limited to dhcpd.


thanks a lot.
Best regards,

Julien

dmesg (note: update to 4.6 planned)
OpenBSD 4.4-stable (GENERIC) #0: Thu Apr 30 01:03:28 CEST 2009
r...@soekris4801.vpn.www:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Geode(TM) Integrated Processor by National Semi ("Geode by NSC" 
586-class) 267 MHz

cpu0: FPU,TSC,MSR,CX8,CMOV,MMX
cpu0: TSC disabled
real mem  = 133787648 (127MB)
avail mem = 120946688 (115MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 20/80/03, BIOS32 rev. 0 @ 0xf7840
pcibios0 at bios0: rev 2.0 @ 0xf/0x1
pcibios0: pcibios_get_intr_routing - function not supported
pcibios0: PCI IRQ Routing information unavailable.
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xc8000/0x9000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Cyrix GXm PCI" rev 0x00
sis0 at pci0 dev 6 function 0 "NS DP83815 10/100" rev 0x00, DP83816A: 
irq 10, address 00:00:24:c3:58:cc

nsphyter0 at sis0 phy 0: DP83815 10/100 PHY, rev. 1
sis1 at pci0 dev 7 function 0 "NS DP83815 10/100" rev 0x00, DP83816A: 
irq 10, address 00:00:24:c3:58:cd

nsphyter1 at sis1 phy 0: DP83815 10/100 PHY, rev. 1
sis2 at pci0 dev 8 function 0 "NS DP83815 10/100" rev 0x00, DP83816A: 
irq 10, address 00:00:24:c3:58:ce

nsphyter2 at sis2 phy 0: DP83815 10/100 PHY, rev. 1
ral0 at pci0 dev 14 function 0 "Ralink RT2561S" rev 0x00: irq 11, 
address 00:12:0e:61:7f:c0

ral0: MAC/BBP RT2561C, RF RT5225
gscpcib0 at pci0 dev 18 function 0 "NS SC1100 ISA" rev 0x00
gpio0 at gscpcib0: 64 pins
"NS SC1100 SMI" rev 0x00 at pci0 dev 18 function 1 not configured
pciide0 at pci0 dev 18 function 2 "NS SCx200 IDE" rev 0x01: DMA, channel 
0 wired to compatibility, channel 1 wired to co

mpatibility
wd0 at pciide0 channel 0 drive 0: 
wd0: 16-sector PIO, LBA48, 152627MB, 312581808 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
geodesc0 at pci0 dev 18 function 5 "NS SC1100 X-Bus" rev 0x00: iid 6 
revision 3 wdstatus 0
ohci0 at pci0 dev 19 function 0 "Compaq USB OpenHost" rev 0x08: irq 5, 
version 1.0, legacy support

isa0 at gscpcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pcppi0 at isa0 port 0x61
midi0 at pcppi0: 
spkr0 at pcppi0
nsclpcsio0 at isa0 port 0x2e/2: NSC PC87366 rev 9: GPIO VLM TMS
gpio1 at nsclpcsio0: 29 pins
gscsio0 at isa0 port 0x15c/2: SC1100 SIO rev 1:
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
usb0 at ohci0: USB revision 1.0
uhub0 at usb0 "Compaq OHCI root hub" rev 1.00/1.00 addr 1
biomask f3e5 netmask ffe5 ttymask 
softraid0 at root
root on wd0a swap on wd0b dump on wd0b