Following from http://edeca.net/articles/bridging/create-bridge.html
You can do the following with debian:
auto br0
iface br0 inet static
address 192.168.0.100
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
bridge_ports eth0
bridge_fd 0
bridge_hello 0
bridge_stp off
# comment out eth0 entry.
ifup br0
It just works. In fact I just did this remotely with a colo machine. 8)
I'm trying to figure if there is a nice way to an tun devices via this
as well. Possibly it better to do it seperately.
Requires bride-utils to be installed.
Nicholas
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
|