On Tue, Feb 24, 2015 at 05:08:50PM -0500, Tom H wrote

> # ip a sh dev wlan0
> 2: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP
> group default qlen 1000
>     link/ether e8:2a:ea:0f:68:ec brd ff:ff:ff:ff:ff:ff
>     inet 192.168.1.240/24 brd 192.168.1.255 scope global wlan0
>        valid_lft forever preferred_lft forever
>     inet 192.168.1.250/24 brd 192.168.1.255 scope global secondary wlan0:0
>        valid_lft forever preferred_lft forever

  I've been Googling and playing around a bit.  I have the main ADSL
connection to the world working via iproute2, but not the 169.254.0.0/16
net.  I can't figure out what I'm doing wrong.  My setup...

* desktop PC 192.168.123.251/29, with NIC interface eth0
* HDHomerun network TV tuner in 169.254.0.0/16

  Both are attached to an ADSL router at 192.168.123.254   I start off
with "/etc/init.d/net.eth0 stop" to get to a known state.  Then I run a
script which issues the commands...

ip link set eth0 down
ip link set eth0 up
ip address add 192.168.123.251/29 dev eth0
ip route add default via 192.168.123.254 metric 100
ip address add 169.254.1.1/16 dev eth0
ip route add 169.254.0.0/16 via 192.168.123.254 metric 0
ip address show
ip route show

  The output from the commands is...
 
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group 
default 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 brd 127.255.255.255 scope host lo
       valid_lft forever preferred_lft forever
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state 
DOWN group default qlen 1000
    link/ether 00:1d:09:96:6c:1c brd ff:ff:ff:ff:ff:ff
    inet 192.168.123.251/29 scope global eth0
       valid_lft forever preferred_lft forever
    inet 169.254.1.1/16 scope global eth0
       valid_lft forever preferred_lft forever
default via 192.168.123.254 dev eth0  metric 100 
127.0.0.0/8 dev lo  scope host 
169.254.0.0/16 dev eth0  proto kernel  scope link  src 169.254.1.1 
192.168.123.248/29 dev eth0  proto kernel  scope link  src 192.168.123.251


  Like I said above, the default route to the world works, but not to
169.254.0.0.  Once I get that figured out, the next questions are...
1) What is the setup in /etc/conf.d/net to accomplish that?
2) Should iproute2 be built with or without the "iptables" flag?

-- 
Walter Dnes <waltd...@waltdnes.org>
I don't run "desktop environments"; I run useful applications

Reply via email to