Do I need any special parameter to ifconfig(8) to allow Ethernet
broadcast address (ff:ff:ff:ff:ff:ff) travel to all bridge
members?


On Wed, Aug 04, 2010 at 12:59:07AM +0100, Mikolaj Kucharski wrote:
> Hi,
> 
> I have two OpenBSD machines, one is a router, second is a guest on KVM
> virtual machine (Fedora 13), both run same OpenBSD version (see below
> for details). I've also used Windows machine connected to sis2 and it
> has the same issue like OpenBSD connected to sis3 (via Fedora 13).
> 
> OpenBSD (or Windows) connected to sis3 (or sis2) cannot get the IP from
> the dhcpd(8) server which runs on sis0, but Fedora 13 (like OpenBSD
> connected to sis3) which already has a lease from that dhcpd(8) server
> doesn't have a problem with renewing the lease.
> 
> Do you know what I am missing in my setup to make that work?
> 
> 
> 
> OPENBSD ROUTER SETUP:
> 
> ==> /etc/hostname.sis0 <==
> inet 192.168.110.1 255.255.255.0 NONE description "part of bridge0"
> 
> ==> /etc/hostname.sis1 <==
> up description "part of bridge0"
> 
> ==> /etc/hostname.sis2 <==
> up description "part of bridge0 - cable to windows"
> 
> ==> /etc/hostname.sis3 <==
> up description "part of bridge0 - cable to virts"
> 
> ==> /etc/hostname.bridge0 <==
> description "link to virtual hosts"
> add sis0
> add sis1
> add sis2
> add sis3
> up
> 
> ==> /etc/pf.conf <==
> set skip on lo
> match out on egress from !(egress) nat-to (egress:0)
> pass
> block in on ! lo0 proto tcp to port 6000:6010
> 
> ==> /etc/sysctl.conf <==
> net.inet.ip.forwarding=1
> 
> ==> /etc/rc.conf.local <==
> dhcpd_flags="vr1 vr2 vr3 sis0"
> 
> 
> 
> 
> OPENBSD GUEST SETUP:
> 
> ==> /etc/hostname.em0 <==
> dhcp
> 
> ==> /etc/pf.conf <==
> set skip on lo
> match out on egress from !(egress) nat-to (egress:0)
> pass
> block in on ! lo0 proto tcp to port 6000:6010
> 
> ==> /etc/sysctl.conf <==
> net.inet.ip.forwarding=1
> 
> 
> 
> ref1-ROUTER-guest-req# tcpdump -c3 -lvveni sis3 port 67
> tcpdump: listening on sis3, link-type EN10MB
> 00:27:06.025235 52:54:00:53:15:40 ff:ff:ff:ff:ff:ff 0800 342: 0.0.0.0.68 > 
> 255.255.255.255.67: xid:0xcdbecf9a [|bootp] [tos 0x10] (ttl 16, id 0, len 328)
> 00:27:07.036323 52:54:00:53:15:40 ff:ff:ff:ff:ff:ff 0800 342: 0.0.0.0.68 > 
> 255.255.255.255.67: xid:0xcdbecf9a secs:1 [|bootp] [tos 0x10] (ttl 16, id 0, 
> len 328)
> 00:27:09.046432 52:54:00:53:15:40 ff:ff:ff:ff:ff:ff 0800 342: 0.0.0.0.68 > 
> 255.255.255.255.67: xid:0xcdbecf9a secs:3 [|bootp] [tos 0x10] (ttl 16, id 0, 
> len 328)
> 
> 
> ref2-ROUTER-guest-req# tcpdump -c3 -lvveni bridge0 port 67
> tcpdump: listening on bridge0, link-type EN10MB
> 00:29:49.991539 52:54:00:53:15:40 ff:ff:ff:ff:ff:ff 0800 342: 0.0.0.0.68 > 
> 255.255.255.255.67: xid:0xe2c0c174 [|bootp] [tos 0x10] (ttl 16, id 0, len 328)
> 00:29:50.996544 52:54:00:53:15:40 ff:ff:ff:ff:ff:ff 0800 342: 0.0.0.0.68 > 
> 255.255.255.255.67: xid:0xe2c0c174 secs:1 [|bootp] [tos 0x10] (ttl 16, id 0, 
> len 328)
> 00:29:53.006556 52:54:00:53:15:40 ff:ff:ff:ff:ff:ff 0800 342: 0.0.0.0.68 > 
> 255.255.255.255.67: xid:0xe2c0c174 secs:3 [|bootp] [tos 0x10] (ttl 16, id 0, 
> len 328)
> 
> 
> ref3-ROUTER-guest-req# tcpdump -c3 -lvveni sis0 port 67
> tcpdump: listening on sis0, link-type EN10MB
> (nothing)
> 
> 
> ref4-ROUTER-fedora-req# tcpdump -c3 -lvveni sis0 port 67
> tcpdump: listening on sis0, link-type EN10MB
> 00:45:37.095604 00:50:8d:9e:73:85 00:00:24:cc:d4:7c 0800 342: 
> 192.168.110.206.68 > 192.168.110.1.67: xid:0xf1d78b4f C:192.168.110.206 
> [|bootp] (DF) (ttl 64, id 0, len 328)
> 
> 
> 
> $ sysctl -n kern.version
> OpenBSD 4.7 (GENERIC) #558: Wed Mar 17 20:46:15 MDT 2010
>     dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
> 
> 
> -- 
> best regards
> q#

-- 
best regards
q#

Reply via email to