1 |
Am 17.10.2011 23:42, schrieb Florian Philipp: |
2 |
> Am 17.10.2011 23:25, schrieb Grant Edwards: |
3 |
>> I'm trying to configure a second IP address for eth1 using the syntax |
4 |
>> I found at |
5 |
>> |
6 |
>> http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4&chap=2#doc_chap1 |
7 |
>> |
8 |
>> But, it doesn't work. |
9 |
>> |
10 |
>> Here's my /etc/init.d/net file: |
11 |
>> |
12 |
>> config_eth0="192.168.8.4/16" |
13 |
>> routes_eth0="default via 192.168.0.254" |
14 |
>> config_eth1=10.0.0.1/8" |
15 |
>> 192.168.250.1/24" |
16 |
>> |
17 |
>> But, starting eth1 says: |
18 |
>> |
19 |
>> # /etc/init.d/net.eth1 start |
20 |
>> * Bringing up interface eth1 |
21 |
>> * Starting netplug on eth1 ... [ ok ] |
22 |
>> * Backgrounding ... |
23 |
>> * ERROR: net.eth1 failed to start |
24 |
>> |
25 |
>> Only eth1 is configured. eth1:1 isn't configured. |
26 |
>> |
27 |
>> |
28 |
> |
29 |
> eth1 is the second physical interface (which you don't have). From |
30 |
> /usr/share/doc/openrc-0.8.3-r1/net.example.bz2 |
31 |
> |
32 |
> # If you need more than one address, you can use something like this |
33 |
> # NOTE: ifconfig creates an aliased device for each extra IPv4 address |
34 |
> # (eth0:1, eth0:2, etc) |
35 |
> # iproute2 does not do this as there is no need to |
36 |
> config_eth0="192.168.0.2/24 192.168.0.3/24 192.168.0.4/24" |
37 |
> # However, that only works with CIDR addresses, so you can't use |
38 |
> # netmask. |
39 |
> |
40 |
> Regards, |
41 |
> Florian Philipp |
42 |
> |
43 |
|
44 |
Ugh, sorry. Just ignore that. I didn't see the second line in |
45 |
config_eth1. The odd quoting confused me. |