1 |
On 2011-10-17, Florian Philipp <lists@×××××××××××.net> wrote: |
2 |
|
3 |
> Ugh, sorry. Just ignore that. I didn't see the second line in |
4 |
> config_eth1. The odd quoting confused me. |
5 |
|
6 |
Sorry about that. I was trying various quoting schemes I'd found in |
7 |
examples. |
8 |
|
9 |
My current configuration works: |
10 |
|
11 |
modules_eth0=( !plug ) |
12 |
config_eth0=( "192.168.8.4/16" ) |
13 |
routes_eth0=( "default via 192.168.0.254" ) |
14 |
|
15 |
modules_eth1=( !plug ) |
16 |
config_eth1=( "10.0.0.1/8" "192.168.250.1/24" ) |
17 |
|
18 |
$ /sbin/ip address show |
19 |
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN |
20 |
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 |
21 |
inet 127.0.0.1/8 scope host lo |
22 |
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 |
23 |
link/ether 00:1b:21:b1:d1:e9 brd ff:ff:ff:ff:ff:ff |
24 |
inet 192.168.8.4/16 brd 192.168.255.255 scope global eth0 |
25 |
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 |
26 |
link/ether 00:16:17:84:a7:b3 brd ff:ff:ff:ff:ff:ff |
27 |
inet 10.0.0.1/8 brd 10.255.255.255 scope global eth1 |
28 |
inet 192.168.250.1/24 brd 192.168.250.255 scope global eth1 |
29 |
4: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000 |
30 |
link/ether 00:18:e7:08:20:33 brd ff:ff:ff:ff:ff:ff |
31 |
|
32 |
|
33 |
And the lack of eth1:1 is presumably explained if the system is using |
34 |
the iproute2 module instead of the ifconfig module. My current theory |
35 |
is that iproute2 is getting used because I have openvpn installed with |
36 |
the iproute2 use flag. [I'm not actually using openvpn, but it's still |
37 |
istalled from a couple years ago when I was using it.] |
38 |
|
39 |
Yes, I know that the /24 subnet defined by the second eth1 address |
40 |
overlaps the /16 subnet defined by the eth0 address. |
41 |
|
42 |
For historical reasons, 192.168.250.nnn is on eth1, and |
43 |
192.168.everything-but-250.nnn is on eth0. |
44 |
|
45 |
And eth2 is used only by a VM client OS. |
46 |
|
47 |
Yea, it's a messy, but it's still easier than using 4 different |
48 |
machines.... |
49 |
|
50 |
-- |
51 |
Grant Edwards grant.b.edwards Yow! I appoint you |
52 |
at ambassador to Fantasy |
53 |
gmail.com Island!!! |