On Thursday 24 April 2008 00:01:01 Robin H. Johnson wrote:
> The problem in this is that you cannot set the properties for each
> address or route. Please don't take us back to the stoneage of writing
> the advanced networking configuration manually.
>
> As an example of an ip address line with properties:
> ${ext}.30/32 broadcast - scope host

Correct as usual. However, the existing config_foo isn't going anyway anytime 
soon, so your power user config still works.
However, it will be moving to the right place
ifconfig_eth0
ip_addr_eth0

And we'll stop parsing it. You'll have to know the syntax for the module 
you're using. I'm going to trying to map between them which will make the 
code lighter and less error prone.

>
> An an example of a route with properties:
> ${int}.192/27 dev bond0 mtu 1500 table internal scope link
> (my normal mtu on the internal link is 9k, but part of the subnet runs
> at 1500 for netbooting on dumb cards)

You can do this with the BSD style syntax

static_routes_bond0="int0 int192 defint"
route_int0="${int}.0/8 dev bond0 table internal scope link"
route_int192="${int}.192/27 dev bond0 mtu 1500 table internal scope link"
route_defint="default via ${int}.2 bond0 table internal"

Thanks

Roy
-- 
gentoo-dev@lists.gentoo.org mailing list

Reply via email to