re: strange routes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Why am I plagued with odd route behaviour?

$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
172.16.0.0      0.0.0.0         255.255.255.0   U     0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth0
10.0.0.0        0.0.0.0         255.0.0.0       U     0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         172.16.0.4      0.0.0.0         UG    1      0        0 eth0
0.0.0.0         172.16.0.4      0.0.0.0         UG    1      0        0 eth0
0.0.0.0         172.16.0.4      0.0.0.0         UG    1      0        0 eth0

Firstly, where does 169.254.0.0 come from?  I never asked it to be
there!!  I found this line in /etc/sysconfig/network-scripts/ifup at
line 343:

# Add Zeroconf route.
if [ -z "${NOZEROCONF}" -a "${ISALIAS}" = "no" ]; then
    ip route replace 169.254.0.0/16 dev ${REALDEVICE} 
fi

and this one in /etc/sysconfig/network-scripts/network-functions-ipv6 at
line 920:

# test 169.254.0.0/16 (APIPA / DHCP link local)
/bin/ipcalc --network $testipv4addr_globalusable 255.255.0.0 | LC_ALL=C grep -q "NETWORK=169\.254\.0\.0" && return 10

Why are they there and are these the offending lines?

Secondly, why do I have _three_ default routes?  (The IP is right)  I
set this up with redhat-config-network (including the 10... alias).  The
default routes appear every time I do an ifup.

$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:04:76:EB:E9:30
          inet addr:172.16.0.52  Bcast:172.16.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4614 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4790 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:692940 (676.6 Kb)  TX bytes:533527 (521.0 Kb)
          Interrupt:11 Base address:0xdc00
 
eth0:1    Link encap:Ethernet  HWaddr 00:04:76:EB:E9:30
          inet addr:10.1.0.52  Bcast:10.255.255.255  Mask:255.0.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4614 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4790 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:692940 (676.6 Kb)  TX bytes:533527 (521.0 Kb)
          Interrupt:11 Base address:0xdc00
 
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:33629 errors:0 dropped:0 overruns:0 frame:0
          TX packets:33629 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2317519 (2.2 Mb)  TX bytes:2317519 (2.2 Mb)

Thanks for your help,
-- 
Iain Buchanan <iain@xxxxxxxxxxxx>

It destroys one's nerves to be amiable every day to the same human
being.
                -- Benjamin Disraeli


-- 
Shrike-list mailing list
Shrike-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/shrike-list

[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux