ifconfig_foo0 syntax

Brooks Davis brooks at one-eyed-alien.net
Fri Oct 28 11:06:37 PDT 2005


On Fri, Oct 28, 2005 at 06:40:23PM +0200, Dag-Erling Smørgrav wrote:
> I've been having trouble with a bridge interface.  It seemed logical
> to me to do
> 
> cloned_interfaces="bridge0"
> ifconfig_bridge0="addm foo0 addm bar0 inet 10.0.0.1/24"
> 
> but ifconfig(8) does not accept "inet" after "addm".
> 
> (perhaps I should have put the inet bit at the front?)
> 
> In any case, I came up with a patch that allows me to do
> 
> ifconfig_bridge0="addm foo0; addm bar0; inet 10.0.0.1/24"
> 
> which translates into three different ifconfig invocations.
> 
> there's probably a better / cleaner way to do this...

In addition to Yar's comments, I'll be committing a patch from Philipp
Wuensche which adds a new ipv4_addrs_<ifn> variable that you could use
to set the IPv4 address even if the ordering issue wasn't resolvable.

-- Brooks

-- 
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-rc/attachments/20051028/345a3a17/attachment.bin


More information about the freebsd-rc mailing list