Re: [Soekris] Bridging OpenBSD

2012-04-28 Thread Paul Lavender

I know the purists are grumbling that this is for other forums but it is more 
interesting than flame wars about capacitors on the pcb :)

Debian Wheezy? I thought the Debian kernels did not have bridging. But perhaps 
that has changed recently, or perhaps you roll your own kernel.

Paul

PaulOn 4/26/12 6:02 PM, Jan Ceuleers wrote:
[snip]


  With Linux you need to assign the IP address to the bridge itself,
rather than to any of the interfaces that are part of it. Also
  the DHCP server needs to be bound to the bridge.
   

Yes.  That's what I did before on Debian Wheezy.  The way for OpenBSD
turns out to be to assign an IP number to one bridged interface.  It
is accessible to the others then via the bridge.

On 4/26/12 6:09 PM, Greg Troxel wrote:


  I wonder if the issue is that dhcp is implemented by bpf, and bpf
  raw frames are not bridged.
   

That seems to be the problem.  If I connect to the ethernet port with
the ip number and dhcpd, then I can move the cable over to one of the
bridged ports and it works fine.

On 4/26/12 6:12 PM, Bryan Irvine wrote:


  You really should be posting this tom...@openbsd.org
   

I'll do that.

Thanks.
/Lars
___
Soekris-tech mailing list
Soekris-tech@lists.soekris.com
http://lists.soekris.com/mailman/listinfo/soekris-tech

___
Soekris-tech mailing list
Soekris-tech@lists.soekris.com
http://lists.soekris.com/mailman/listinfo/soekris-tech


Re: [Soekris] Bridging OpenBSD

2012-04-28 Thread The Fungi
On 2012-04-28 13:57:08 +0100 (+0100), Paul Lavender wrote:
 Debian Wheezy? I thought the Debian kernels did not have bridging.
 But perhaps that has changed recently, or perhaps you roll your
 own kernel.

   fungi@azathoth:~$ cat /etc/debian_version
   6.0.2
   fungi@azathoth:~$ uname -a
   Linux azathoth 2.6.32-5-xen-686 #1 SMP Mon Jun 13 09:07:50 UTC 2011 i686 
GNU/Linux
   fungi@azathoth:~$ /usr/sbin/brctl show
   bridge name bridge id   STP enabled interfaces
   br0 8000.0002a5d9d399   no  vif1.0
   vif2.0
   vif3.0
   vif7.0
   vif8.0
   vlan5
   br238000.0002a5d9d399   no  vlan23

-- 
{ IRL(Jeremy_Stanley); WWW(http://fungi.yuggoth.org/); PGP(43495829);
WHOIS(STANL3-ARIN); SMTP(fu...@yuggoth.org); FINGER(fu...@yuggoth.org);
MUD(kin...@katarsis.mudpy.org:6669); IRC(fu...@irc.yuggoth.org#ccl); }
___
Soekris-tech mailing list
Soekris-tech@lists.soekris.com
http://lists.soekris.com/mailman/listinfo/soekris-tech


Re: [Soekris] Bridging OpenBSD - Debian

2012-04-28 Thread Lars Noodén
On 4/28/12 3:57 PM, Paul Lavender wrote:
 I know the purists are grumbling that this is for other forums but it is
 more interesting than flame wars about capacitors on the pcb :)
 
 Debian Wheezy? I thought the Debian kernels did not have bridging. But
 perhaps that has changed recently, or perhaps you roll your own kernel.

I had it going in both squeeze and wheezy with minimal configuration:

/etc/network/interfaces
auto lo
iface lo inet loopback

allow-hotplug eth4
auto eth4
iface eth4 inet dhcp

allow-hotplug eth0
iface eth0 inet manual
   pre-up   ifconfig $IFACE up
   pre-down ifconfig $IFACE down

allow-hotplug eth1
iface eth1 inet manual
   pre-up   ifconfig $IFACE up
   pre-down ifconfig $IFACE down

allow-hotplug eth2
iface eth2 inet manual
   pre-up   ifconfig $IFACE up
   pre-down ifconfig $IFACE down

allow-hotplug eth3
iface eth3 inet manual
   pre-up   ifconfig $IFACE up
   pre-down ifconfig $IFACE down

auto br0
iface br0 inet static
  bridge_ports eth0 eth1 eth2 eth3
  address 192.168.0.1
  broadcast 192.168.0.255
  netmask 255.255.255.0

/etc/rc.local
iptables -t nat -A POSTROUTING -o eth4 -j MASQUERADE

/etc/sysctl.conf
net.ipv4.ip_forward=1

regards,
/Lars
___
Soekris-tech mailing list
Soekris-tech@lists.soekris.com
http://lists.soekris.com/mailman/listinfo/soekris-tech


Re: [Soekris] Bridging OpenBSD

2012-04-28 Thread Stuart Henderson
On 2012-04-26, Greg Troxel g...@work.lexort.com wrote:
 I wonder if the issue is that dhcp is implemented by bpf, and bpf raw
 frames are not bridged.

Yes, exactly. You would need to specify the list of network adapters
in dhcpd_flags in /etc/rc.conf.local, then /etc/rc.d/dhcpd restart.



___
Soekris-tech mailing list
Soekris-tech@lists.soekris.com
http://lists.soekris.com/mailman/listinfo/soekris-tech


Re: [Soekris] Bridging OpenBSD

2012-04-28 Thread Malcolm Herbert
On Sat, Apr 28, 2012 at 08:05:27PM +, Stuart Henderson wrote:
|On 2012-04-26, Greg Troxel g...@work.lexort.com wrote:
| I wonder if the issue is that dhcp is implemented by bpf, and bpf raw
| frames are not bridged.
|
|Yes, exactly. You would need to specify the list of network adapters
|in dhcpd_flags in /etc/rc.conf.local, then /etc/rc.d/dhcpd restart.

wierd ... wonder why mine works on NetBSD then ...

Regards,
Malcolm

-- 
Malcolm HerbertThis brain intentionally
m...@mjch.netleft blank


pgpZ3momXratO.pgp
Description: PGP signature
___
Soekris-tech mailing list
Soekris-tech@lists.soekris.com
http://lists.soekris.com/mailman/listinfo/soekris-tech