Gentoo Archives: gentoo-user

From: Walter Dnes <waltdnes@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: [SOLVED] What happened to my 2nd eth0?
Date: Thu, 26 Feb 2015 06:26:21
Message-Id: 20150226062607.GA30772@waltdnes.org
In Reply to: Re: [gentoo-user] Re: [SOLVED] What happened to my 2nd eth0? by Tom H
1 On Tue, Feb 24, 2015 at 05:08:50PM -0500, Tom H wrote
2
3 > # ip a sh dev wlan0
4 > 2: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP
5 > group default qlen 1000
6 > link/ether e8:2a:ea:0f:68:ec brd ff:ff:ff:ff:ff:ff
7 > inet 192.168.1.240/24 brd 192.168.1.255 scope global wlan0
8 > valid_lft forever preferred_lft forever
9 > inet 192.168.1.250/24 brd 192.168.1.255 scope global secondary wlan0:0
10 > valid_lft forever preferred_lft forever
11
12 I've been Googling and playing around a bit. I have the main ADSL
13 connection to the world working via iproute2, but not the 169.254.0.0/16
14 net. I can't figure out what I'm doing wrong. My setup...
15
16 * desktop PC 192.168.123.251/29, with NIC interface eth0
17 * HDHomerun network TV tuner in 169.254.0.0/16
18
19 Both are attached to an ADSL router at 192.168.123.254 I start off
20 with "/etc/init.d/net.eth0 stop" to get to a known state. Then I run a
21 script which issues the commands...
22
23 ip link set eth0 down
24 ip link set eth0 up
25 ip address add 192.168.123.251/29 dev eth0
26 ip route add default via 192.168.123.254 metric 100
27 ip address add 169.254.1.1/16 dev eth0
28 ip route add 169.254.0.0/16 via 192.168.123.254 metric 0
29 ip address show
30 ip route show
31
32 The output from the commands is...
33
34 RTNETLINK answers: File exists
35 RTNETLINK answers: File exists
36 RTNETLINK answers: File exists
37 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
38 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
39 inet 127.0.0.1/8 brd 127.255.255.255 scope host lo
40 valid_lft forever preferred_lft forever
41 2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
42 link/ether 00:1d:09:96:6c:1c brd ff:ff:ff:ff:ff:ff
43 inet 192.168.123.251/29 scope global eth0
44 valid_lft forever preferred_lft forever
45 inet 169.254.1.1/16 scope global eth0
46 valid_lft forever preferred_lft forever
47 default via 192.168.123.254 dev eth0 metric 100
48 127.0.0.0/8 dev lo scope host
49 169.254.0.0/16 dev eth0 proto kernel scope link src 169.254.1.1
50 192.168.123.248/29 dev eth0 proto kernel scope link src 192.168.123.251
51
52
53 Like I said above, the default route to the world works, but not to
54 169.254.0.0. Once I get that figured out, the next questions are...
55 1) What is the setup in /etc/conf.d/net to accomplish that?
56 2) Should iproute2 be built with or without the "iptables" flag?
57
58 --
59 Walter Dnes <waltdnes@××××××××.org>
60 I don't run "desktop environments"; I run useful applications

Replies

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