Red Hat Bugzilla – Bug 99368
Wrong routes are set up
Last modified: 2007-04-18 12:55:44 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686) Gecko/20030530 Galeon/1.3.4
Description of problem:
Since the version of redhat-config-network as shipped with version 9 is useless
(all it does is crash), I decided to grab the rawhide version. It works fine,
except it fails under the following scenario:
eth0: Configured via DHCP to grab a real Internet IP.
eth0:1 Fixed local IP: 192.168.1.66 netmask 255.255.255.192
I set up the following static route for eth0:1
That is, I want to access the rest of my 192.168.1.0/24 network via 192.168.1.65 .
It works fine, the app doesn't crash, and even ifup-routes seems to assemble the
ip command line OK (I know, because I added
echo "$line" >> /some/log/file
before /sbin/ip route add $line into the script). The command line becomes
/sbin/ip route add 192.168.1.0/24 via 192.168.1.65 dev eth0:1
All seems well, right ? Wrong. The route that ends up being added to the table
is equivalent to
route add -net 0.0.0.0 netmask 0.0.0.0 gw 192.168.1.0 dev eth0
route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.65 dev eth0
When I try to duplicate the command line executed from the script, I get
Cannot find device "eth0:1"
... not to mention that the route (even the wrong one) doesn't get added every
time I perform ifup eth0 (It's a pcmcia card and this route only gets added if I
perform (cardctl eject ; cardctl insert ;) .
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Add a route as prescribed above to an IP alias as described above
2. Bring up the interface
3. Behold the wrong route in your routing table
Actual Results: A default gateway was added despite my specifying a route to a
Expected Results: A static route to a particular network via a particular gateway.
you should use version 1.2.14 from
Closing due to inactivity. Reopen, if the problem is still existing.