Gidday there,
Summary: No routes to other hosts are staying.
I'm trying to use linuxconf to set up my static routes for my internal
networks. I have a LAN in
Ottawa, and work has a LAN in Montreal. Both are only a few machines, so we have a
flat 192.168.1.0
network for them. I have a gateway here (Ottawa) which dials into the Montreal LAN.
In order to get to the
machines in Montreal, I've just been 'route add -host montrealBox gw ottawaGateway'
for each montreal
machine.
Since I'm trying to do everything with linuxconf I added the hosts in
linuxconf, but when I do a
'/etc/rc.d/init.d/network reload' this is what I get...
[root@pukeko network-scripts]# /etc/rc.d/init.d/network reload
Performing routes
route: netmask doesn't make sense with host route
Usage: route [-nNvee] [-FC] [Address_families] List kernel routing tables
route {-V|--version} Display command version and exit.
route {-h|--help} [Address_family] Usage Syntax for specified AF.
route [-v] [-FC] {add|del|flush} ... Modify routing table for AF.
Address_families: inet,inet6,ddp,ipx,netrom,ax25
specify AF: -A af1,af2.. or --af1 --af2 or af_route
route: netmask doesn't make sense with host route
Usage: route [-nNvee] [-FC] [Address_families] List kernel routing tables
route {-V|--version} Display command version and exit.
route {-h|--help} [Address_family] Usage Syntax for specified AF.
route [-v] [-FC] {add|del|flush} ... Modify routing table for AF.
Address_families: inet,inet6,ddp,ipx,netrom,ax25
specify AF: -A af1,af2.. or --af1 --af2 or af_route
okay, so this is actually the output from
'/etc/sysconfig/network-scripts/ifup-routes'. Which executes;
if [ -x /bin/linuxconf ] ; then
linuxconf --hint routing "$1" | while read args; do
/sbin/route $args
done
But, when I do 'linuxconf --hint routing "eth0"' I get no output. Now, this confuses
me, because I don't
know how it is even looking in /etc/sysconfig/static-routes, which contains.
eth0 net 192.168.1.5 netmask 255.255.255.255 gw 192.168.1.9
eth0 net 192.168.1.2 netmask 255.255.255.255 gw 192.168.1.9
eth0 net 192.168.1.3 netmask 255.255.255.255 gw 192.168.1.9
Which is what is causing the errors above. I know that this should actually be....
eth0 host 192.168.1.5 gw 192.168.1.9
(or at least, I think it should be...) but when I change it to this, the routes
dissappear from the
linuxconf 'Route to other hosts' list.
Another thing that might be useful for debugging is the output from --hint netdev...
[jlamorie@pukeko jlamorie]$ /bin/linuxconf --hint netdev
DEV_UP=""
DEV_RECONF=""
DEV_DOWN=""
DEV_RECONF_ALIASES=""
IPV4ROUTING="true"
DEV_RECONF_ROUTES="dummy"
Is this right?
okay, so any clues about how this does/doesn't work? It could be my ssystem but I'm
not sure. I'm using
RH5.1, and have been using linuxconf and upgrading it since 1.11. (the first RH one).
I'm now running...
[jlamorie@pukeko init.d]$ rpm -qa |grep linuxconf
linuxconf-gui-1.13r3-1
linuxconf-1.13r3-1
linuxconf-devel-1.13r3-1
gnome-linuxconf-0.14-4rh
thanks in advance
Joshua
---
You are currently subscribed to linuxconf as: [[email protected]]
To unsubscribe, forward this message to [EMAIL PROTECTED]