Default routes should not have anything to do with what I'm trying to
achieve, I just want to add a network to a routing table via a router. I
tried it out and found that even if I do add a default route it doesn't
make any difference.

You could be right about the interface though, I don't seem to be able to force 
the routing table to use eth0:avahi.
:~$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.2.0     gainward.local  255.255.255.0   UG    0      0        0 eth0
link-local      *               255.255.0.0     U     0      0        0 eth0
default         gainward.local  0.0.0.0         UG    0      0        0 eth0
default         *               0.0.0.0         U     1000   0        0 eth0

:~$ ip route
192.168.2.0/24 via 169.254.2.102 dev eth0
169.254.0.0/16 dev eth0  proto kernel  scope link  src 169.254.6.152
default via 169.254.2.102 dev eth0
default dev eth0  scope link  metric 1000

*** The address has changed from earlier posts, 169.254.6.101 ->
169.254.6.152 (auto-ip) ***

The last default record was added by avahi-autoip, with such a large
metric I don't think it will be interfering.

:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:05:1B:00:7A:E4  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4970 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2834 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:6866254 (6.5 MiB)  TX bytes:205088 (200.2 KiB)

eth0:avah Link encap:Ethernet  HWaddr 00:05:1B:00:7A:E4  
          inet addr:169.254.6.152  Bcast:169.254.255.255  Mask:255.255.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

:~$ ip addr
1: lo: <LOOPBACK,UP,10000> mtu 16436 qdisc noqueue 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:05:1b:00:7a:e4 brd ff:ff:ff:ff:ff:ff
    inet 169.254.6.152/16 brd 169.254.255.255 scope link eth0:avahi

Think of this as ICS, with a link-local subnet hidden behind a NAT. I
also have a squid proxy on this subnet and I can connect through that
without any problems.

Thanks for the help

-- 
avahi-autoipd in roaming mode set ip address to 0.0.0.0
https://bugs.launchpad.net/bugs/102865
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to