Gentoo Archives: gentoo-user

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

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] How to configure eth1:1 ? Florian Philipp <lists@×××××××××××.net>