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
1 My DSL router modem is at 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...
6 config_eth0="
7 broadcast
8 broadcast"
9 routes_eth0="
10 default via metric 20
11 via metric 0
12 via metric 0"
14 The 2nd interface is no longer being set up. As amatter of fact, it
15 appears to be totally unavailable. E.g....
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 broadcast
21 SIOCSIFNETMASK: Cannot assign requested address
22 [d531][root][~] ifconfig eth0 broadcast
23 [d531][root][~]
25 So my system doesn't support even the concept of an alias for eth0.
26 Looking at the ifconfig manpage...
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).
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.
48 --
49 Walter Dnes <waltdnes@××××××××.org>
50 I don't run "desktop environments"; I run useful applications


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>