Gentoo Archives: gentoo-dev

From: Roy Marples <roy@×××××××.name>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] config_eth0 deprecated - new name?
Date: Thu, 24 Apr 2008 06:47:00
Message-Id: 200804240746.57208.roy@marples.name
In Reply to: Re: [gentoo-dev] config_eth0 deprecated - new name? by "Robin H. Johnson"
1 On Thursday 24 April 2008 00:01:01 Robin H. Johnson wrote:
2 > The problem in this is that you cannot set the properties for each
3 > address or route. Please don't take us back to the stoneage of writing
4 > the advanced networking configuration manually.
5 >
6 > As an example of an ip address line with properties:
7 > ${ext}.30/32 broadcast - scope host
8
9 Correct as usual. However, the existing config_foo isn't going anyway anytime
10 soon, so your power user config still works.
11 However, it will be moving to the right place
12 ifconfig_eth0
13 ip_addr_eth0
14
15 And we'll stop parsing it. You'll have to know the syntax for the module
16 you're using. I'm going to trying to map between them which will make the
17 code lighter and less error prone.
18
19 >
20 > An an example of a route with properties:
21 > ${int}.192/27 dev bond0 mtu 1500 table internal scope link
22 > (my normal mtu on the internal link is 9k, but part of the subnet runs
23 > at 1500 for netbooting on dumb cards)
24
25 You can do this with the BSD style syntax
26
27 static_routes_bond0="int0 int192 defint"
28 route_int0="${int}.0/8 dev bond0 table internal scope link"
29 route_int192="${int}.192/27 dev bond0 mtu 1500 table internal scope link"
30 route_defint="default via ${int}.2 bond0 table internal"
31
32 Thanks
33
34 Roy
35 --
36 gentoo-dev@l.g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] config_eth0 deprecated - new name? Luca Barbato <lu_zero@g.o>