Nathan Coulson wrote:
> Looks like a balance between simplicity, and useful. I noted that
> there is nothing to call ip link set br0 up after the interface is
> created though, so it fails to add the gateway.
The bridge is set up explicitly in the bridge service:
ip link set ${1} up
Where ${1} is typically br0.
> What about making 2 variables for service scripts? one for pre device
> generation, (like bridge, perhaps tunnels) when br0 does not exist,
> and one for post device generation that handles addressing
> (ipv4-static, or ipv6) . We can use check link again to ensure the
> device is operational or not
I'm not sure I follow, but once the bridge is up, other operations are
made to the component eth interfaces.
> The other option, would be adding ip link set br0 up into bridge, but
> I would consider that a layer violation.
>
> Either way, would be nice if the scripts were made so CHECK_LINK
> should not need to exist on all scripts that have to create their own
> device (preferrably without bringing knowledge of bridges/tunnels into
> ifup/ifdown)
I'm not sure I follow you. To me, the bridge is only useful for
establishing networking in a VM. Do you have other uses in mind?
-- Bruce
--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page