Gentoo Archives: gentoo-user

From: Grant Edwards <grant.b.edwards@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] How to configure eth1:1 ?
Date: Mon, 17 Oct 2011 21:27:28
Message-Id: j7i6h3$8ur$1@dough.gmane.org
1 I'm trying to configure a second IP address for eth1 using the syntax
2 I found at
3
4 http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4&chap=2#doc_chap1
5
6 But, it doesn't work.
7
8 Here's my /etc/init.d/net file:
9
10 config_eth0="192.168.8.4/16"
11 routes_eth0="default via 192.168.0.254"
12 config_eth1=10.0.0.1/8"
13 192.168.250.1/24"
14
15 But, starting eth1 says:
16
17 # /etc/init.d/net.eth1 start
18 * Bringing up interface eth1
19 * Starting netplug on eth1 ... [ ok ]
20 * Backgrounding ...
21 * ERROR: net.eth1 failed to start
22
23 Only eth1 is configured. eth1:1 isn't configured.
24
25
26
27
28 If I configure the interfaces by hand, it works fine:
29
30 alpha init.d # ifconfig eth1 10.0.0.1/8
31 alpha init.d # ifconfig eth1:1 192.168.250.1/24
32 alpha init.d # ifconfig
33
34 [...]
35
36 eth1 Link encap:Ethernet HWaddr 00:16:17:84:a7:b3
37 inet addr:10.0.0.1 Bcast:10.255.255.255 Mask:255.0.0.0
38 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
39 RX packets:128173 errors:0 dropped:120 overruns:0 frame:0
40 TX packets:57741 errors:0 dropped:0 overruns:0 carrier:0
41 collisions:0 txqueuelen:1000
42 RX bytes:10965596 (10.4 MiB) TX bytes:39773535 (37.9 MiB)
43 Interrupt:20 Base address:0xc000
44
45 eth1:1 Link encap:Ethernet HWaddr 00:16:17:84:a7:b3
46 inet addr:192.168.250.1 Bcast:192.168.250.255 Mask:255.255.255.0
47 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
48 Interrupt:20 Base address:0xc000
49
50 [...]
51
52
53 How do I configure a second IP address for an interface?
54
55 --
56 Grant Edwards grant.b.edwards Yow! I have the power to
57 at HALT PRODUCTION on all
58 gmail.com TEENAGE SEX COMEDIES!!

Replies

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