Gentoo Archives: gentoo-user

From: Walter Dnes <waltdnes@××××××××.org>
To: Gentoo Users List <gentoo-user@l.g.o>
Subject: [gentoo-user] What happened to my 2nd eth0?
Date: Sun, 22 Feb 2015 04:52:48
Message-Id: 20150222045234.GA2101@waltdnes.org
1 My DSL router modem is at 192.168.123.254. I have an HDHomerun
2 network TV tuner that insists on coming up somewhere in the 169.254.X.Y
3 block. Up until upgrading from 32 to 64 bits, I was able to see a 2nd
4 eth0 (i.e. eth0:1) using the following /etc/conf.d/net setup...
5
6 config_eth0="
7 192.168.123.251/29 broadcast 192.168.123.255
8 169.254.1.1/16 broadcast 169.254.255.255"
9 routes_eth0="
10 default via 192.168.123.254 metric 20
11 192.168.123.248/29 via 192.168.123.254 metric 0
12 169.254.0.0/16 via 169.254.1.1 metric 0"
13
14 The 2nd interface is no longer being set up. As amatter of fact, it
15 appears to be totally unavailable. E.g....
16
17 [d531][root][~] /etc/init.d/net.eth0 stop
18 * Unmounting network filesystems ... [ ok ]
19 * Bringing down interface eth0
20 [d531][root][~] ifconfig eth0:0 192.168.123.251/29 broadcast 192.168.123.255
21 SIOCSIFNETMASK: Cannot assign requested address
22 [d531][root][~] ifconfig eth0 192.168.123.251/29 broadcast 192.168.123.255
23 [d531][root][~]
24
25 So my system doesn't support even the concept of an alias for eth0.
26 Looking at the ifconfig manpage...
27
28 interface
29 The name of the interface. This is usually a driver name fol-
30 lowed by a unit number, for example eth0 for the first Ethernet
31 interface. If your kernel supports alias interfaces, you can
32 specify them with eth0:0 for the first alias of eth0. You can
33 use them to assign a second address. To delete an alias inter-
34 face use ifconfig eth0:0 down. Note: for every scope (i.e. same
35 net with address/netmask combination) all aliases are deleted,
36 if you delete the first (primary).
37
38 I see "If your kernel supports alias interfaces". During the
39 upgrade, I built the kernel from square 1. I already ran into problems
40 with not enabling FUSE in the new kernel, which killed MTP until I
41 enabled it. I wouldn't be surprised if I've disabled some kernel
42 parameter which is required to enable interface aliases. I didn't see
43 anything obvious in "make menuconfig". A Google search turned up a
44 gazillion examples of "how to create an alias using ifconfig". That's
45 not what I want. I want the kernel setting that allows creating alias
46 interfaces.
47
48 --
49 Walter Dnes <waltdnes@××××××××.org>
50 I don't run "desktop environments"; I run useful applications

Replies

Subject Author
Re: [gentoo-user] What happened to my 2nd eth0? Mick <michaelkintzios@×××××.com>
Re: [gentoo-user] What happened to my 2nd eth0? Tom H <tomh0665@×××××.com>