Bridge config in /etc/rc (patch)

Sean Hamilton sh at planetquake.com
Mon May 5 22:29:35 PDT 2003


Greetings,

As I manage three FreeBSD bridges, I found it somewhat irritating that there
was no convenient way of doing so. Thus, this patch. Should it get approved,
I'll write diffs for the man pages, /etc/defaults/rc.conf, and anything else
which needs it.

I've updated both the old /etc/rc.network and the new rcng stuff, though
only the latter is tested.

Configuration goes like this:

bridge_enable="YES"
bridge_ifaces="fxp0,fxp1,fxp2"

or, for multiple bridges

bridge_enable="YES"
bridge0_ifaces="fxp3,fxp4,fxp5"
bridge1_ifaces="rl0,rl1,dc0"

Both comma-separated and space-separated lists are accepted.

Also allowed:

bridge_ipfw="YES"
bridge_ipfilter="YES"

I've also added an option, "ip_any_interface=YES" which sets
net.inet.ip.check_interface to 0. This felt more natural than having the
option, "ip_check_interface=NO".

This is a first for me on several counts, so hopefully I've got everything
right. Or should I be submitting this as a PR? It's not really a problem,
so...

sh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rcbridge.diff
Type: application/octet-stream
Size: 3880 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20030505/a6eea589/rcbridge.obj


More information about the freebsd-hackers mailing list