Hey gang,

Anyone tried running dhcpd for machines connected to bridged interfaces?
I've tried running it on br0, which shouldn't work, and eth0 + eth2, which
possibly should. It, ah, doesn't. :) Google has been more random than
helpful on the topic.

As an aside (has anyone noticed that my asides are usually longer than my
main points? anyway...), the Debian support for bridged interfaces is pretty
sweet. If you install the bridge-utils package, you can add bridges just as
simply as you do normal interfaces.

Debian's network config file is /etc/network/interfaces, which I like, as
it's minimal and very straight forward. Here's an example:

auto eth0
iface eth0 inet static
    address 10.0.0.1
    netmask 255.0.0.0
    up /usr/local/sbin/special-script

auto tells it to come up on boot, everything else is pretty self-evident, up
is a script that runs after the interface is initialised and active - there
are a bunch of these, pre-up, post-down, etc. very elegant.

With the bridge-utils support, you just need to do this to create a bridge:

auto br0
iface br0 inet static
    address 10.0.0.1
    netmask 255.0.0.0
    bridge_ports eth0 eth2

It manages all the bridge utilities for you, so you don't have to create
special scripts. Very nice.

Anyway...

- Jeff

-- 
       o/~ In spite of all those keystrokes, you're addicted to vim.        
                              *ka-ching!* o/~                               
-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to