1 |
On Mon, Oct 17, 2011 at 10:19:32PM +0000, Grant Edwards wrote: |
2 |
> On 2011-10-17, Florian Philipp <lists@×××××××××××.net> wrote: |
3 |
> |
4 |
> > Ugh, sorry. Just ignore that. I didn't see the second line in |
5 |
> > config_eth1. The odd quoting confused me. |
6 |
> |
7 |
> Sorry about that. I was trying various quoting schemes I'd found in |
8 |
> examples. |
9 |
> |
10 |
> My current configuration works: |
11 |
> |
12 |
> modules_eth0=( !plug ) |
13 |
> config_eth0=( "192.168.8.4/16" ) |
14 |
> routes_eth0=( "default via 192.168.0.254" ) |
15 |
> |
16 |
> modules_eth1=( !plug ) |
17 |
> config_eth1=( "10.0.0.1/8" "192.168.250.1/24" ) |
18 |
> |
19 |
> $ /sbin/ip address show |
20 |
> 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN |
21 |
> link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 |
22 |
> inet 127.0.0.1/8 scope host lo |
23 |
> 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 |
24 |
> link/ether 00:1b:21:b1:d1:e9 brd ff:ff:ff:ff:ff:ff |
25 |
> inet 192.168.8.4/16 brd 192.168.255.255 scope global eth0 |
26 |
> 3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 |
27 |
> link/ether 00:16:17:84:a7:b3 brd ff:ff:ff:ff:ff:ff |
28 |
> inet 10.0.0.1/8 brd 10.255.255.255 scope global eth1 |
29 |
> inet 192.168.250.1/24 brd 192.168.250.255 scope global eth1 |
30 |
> 4: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000 |
31 |
> link/ether 00:18:e7:08:20:33 brd ff:ff:ff:ff:ff:ff |
32 |
> |
33 |
> |
34 |
> And the lack of eth1:1 is presumably explained if the system is using |
35 |
> the iproute2 module instead of the ifconfig module. My current theory |
36 |
> is that iproute2 is getting used because I have openvpn installed with |
37 |
> the iproute2 use flag. [I'm not actually using openvpn, but it's still |
38 |
> istalled from a couple years ago when I was using it.] |
39 |
> |
40 |
|
41 |
|
42 |
From /usr/share/doc/openrc-0.7.0/net.example: |
43 |
|
44 |
############################################################################## |
45 |
# INTERFACE HANDLERS |
46 |
# |
47 |
# We provide two interface handlers presently: ifconfig and iproute2. |
48 |
# You need one of these to do any kind of network configuration. |
49 |
# For ifconfig support, emerge sys-apps/net-tools |
50 |
# For iproute2 support, emerge sys-apps/iproute2 |
51 |
|
52 |
# If you don't specify an interface then we prefer iproute2 if it's installed |
53 |
# To prefer ifconfig over iproute2 |
54 |
#modules="ifconfig" |
55 |
|
56 |
|
57 |
But for some reason modules="ifconfig" doesn't seem to work for me (eth0:1 |
58 |
doesn't get created) but modules="!ifconfig" works ;) |
59 |
|
60 |
Also it seems that modules_ethX shouldn't be an array, modules_eth0="!plug |
61 |
!iproute2" uses ifconfig, modules_eth0=( "!plug" "!iproute2" ) uses |
62 |
iproute2 ;) |
63 |
|
64 |
|
65 |
|
66 |
As to why you have iproute2 installed... I always install it, so I can't |
67 |
say which packages might be pulling it in, but you can use equery to |
68 |
find out: |
69 |
|
70 |
tableta ~ # equery depends iproute2 |
71 |
* These packages depend on iproute2: |
72 |
net-misc/openvpn-2.2.0-r1 (iproute2 ? sys-apps/iproute2[-minimal]) |
73 |
|
74 |
|
75 |
yoyo |