From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030120 Description of problem: when you set $# route add -net 10.0.0.0 netmask 255.0.0.0 gw 10.217.113.20 $# route 10.217.113.20 * 255.255.255.255 UH 0 0 0 ppp0 192.168.17.0 * 255.255.255.0 U 0 0 0 eth0 169.254.0.0 * 255.255.0.0 U 0 0 0 eth0 10.0.0.0 10.217.113.20 255.0.0.0 UG 0 0 0 ppp0 127.0.0.0 * 255.0.0.0 U 0 0 0 lo default somehost.a 0.0.0.0 UG 0 0 0 eth0 manually everytning is OK but when tou use redhat-config-network with following values in Static network routes menu: Address: 10.0.0.0 Subnet Mask: 255.0.0.0 Gateway: 10.217.113.20 route tables look thus : 10.217.113.20 * 255.255.255.255 UH 0 0 0 ppp0 192.168.17.0 * 255.255.255.0 U 0 0 0 eth0 169.254.0.0 * 255.255.0.0 U 0 0 0 eth0 127.0.0.0 * 255.0.0.0 U 0 0 0 lo default somehost.a 0.0.0.0 UG 0 0 0 eth0 according to my mind it is bug. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1.redhat-config-network 2.setup route configuration 3.dial account Additional info:
workx for me for non-dialup routes... maybe a bug in initscripts?
What do your network config files look like?
There is how my default network configuration looks like, sometimes I need to set up dial-up with static route. $# route add -net 10.0.0.0 netmask 255.0.0.0 gw 10.217.113.20 witch would route all trafic from 10.0.0.0 network over gw 10.217.113.20 From command like it work pretty good, but with using redhat-config-network dial-up values: Address: 10.0.0.0 Subnet Mask: 255.0.0.0 Gateway: 10.217.113.20 It doesn`t change my routing table. I think it`s a bug !? ------------------------------------------------------------------------------ eth0 ZapouzdÅenÃ:Ethernet HWadr 00:C0:9F:1C:57:DE inet adr:192.168.17.51 VÅ¡esmÄr:192.168.17.255 Maska:255.255.255.0 AKTIVOVÃNO VÅ ESMÄROVÃ_VYSÃLÃNà BÄŽà MULTICAST MTU:1500 Metrika:1 RX packets:1095 errors:0 dropped:0 overruns:0 frame:0 TX packets:931 errors:0 dropped:0 overruns:0 carrier:0 kolizÃ:0 délka odchozà fronty:100 RX bytes:884387 (863.6 Kb) TX bytes:135242 (132.0 Kb) PÅeruÅ¡enÃ:11 VstupnÄ/Výstupnà port:0x3000 route Adresát Brána Maska PÅÃzn Metrik Odkaz Užt Rozhranà 192.168.17.0 * 255.255.255.0 U 0 0 0 eth0 169.254.0.0 * 255.255.0.0 U 0 0 0 eth0 127.0.0.0 * 255.0.0.0 U 0 0 0 lo default somehost.a.cz 0.0.0.0 UG 0 0 0 eth0 -------------------------------------------------------------------------------
Again, what *exactly* do your config files (/etc/sysconfig/network, /etc/sysconfig/network-scripts/ifcfg-*) look like? To debug the problem, I need to know exactly how your system is set up?
[citron@citron citron]$ cat /etc/sysconfig/network NETWORKING=yes HOSTNAME=citron.i.cz GATEWAY=192.168.17.1 [citron@citron citron]$ cat /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 BOOTPROTO=none BROADCAST=192.168.17.255 IPADDR=192.168.17.51 NETMASK=255.255.255.0 NETWORK=192.168.17.0 ONBOOT=yes USERCTL=no PEERDNS=no TYPE=Ethernet [citron@citron citron]$ cat /etc/sysconfig/network-scripts/ifcfg-ppp0 # Please read /usr/share/doc/initscripts-*/sysconfig.txt # for the documentation of these parameters. USERCTL=yes PEERDNS=yes TYPE=Modem DEVICE=ppp0 BOOTPROTO=dialup ONBOOT=no NAME=skoda-auto CCP=off PC=off AC=off BSDCOMP=off VJ=off VJCCOMP=off LINESPEED=57600 MODEMPORT=/dev/modem IDLETIMEOUT=600 DEMAND=no PROVIDER=skoda-auto DEFROUTE=no PERSIST=no PAPNAME=xxx WVDIALSECT=skoda-auto MODEMNAME=Modem0
Sorry, need /etc/sysconfig/network-scripts/*route* too.
[citron@citron citron]$ ls /etc/sysconfig/network-scripts/*route* /etc/sysconfig/network-scripts/ifup-routes [citron@citron citron]$ cat /etc/sysconfig/network-scripts/ifup-routes #! /bin/bash # # adds static routes which go through device $1 if [ -z "$1" ]; then echo $"usage: ifup-routes <net-device>" exit 1 fi # Older format if [ -f "/etc/sysconfig/network-scripts/route-$1" ]; then while read line; do /sbin/ip route add $line done < "/etc/sysconfig/network-scripts/route-$1" fi # Red Hat network configuration format CONFIG="/etc/sysconfig/networking/devices/$1.route" [ -f $CONFIG ] || exit 0 . $CONFIG routenum=0 while [ "x$(eval echo '$'ADDRESS$routenum)x" != "xx" ]; do eval `ipcalc -p $(eval echo '$'ADDRESS$routenum) $(eval echo '$'NETMASK$routenum)` line="$(eval echo '$'ADDRESS$routenum)/$PREFIX" if [ "x$(eval echo '$'GATEWAY$routenum)x" != "xx" ]; then line="$line via $(eval echo '$'GATEWAY$routenum)" fi line="$line dev $1" /sbin/ip route add $line routenum=$(($routenum+1)) done
Woops. Sorry, need the actual stuff written by redhat-config-network. /etc/sysconfig/networking/devices/*.route.
[root@citron root]# ls /etc/sysconfig/networking/devices/*.route /etc/sysconfig/networking/devices/skoda-auto.route [root@citron root]# cat /etc/sysconfig/networking/devices/skoda-auto.route GATEWAY0=10.217.113.20 NETMASK0=255.0.0.0 ADDRESS0=10.0.0.0
What happens if you rename that to ppp0.route?
Bingo - name of device sould be good and name of connection is wrong... When I rename it from skoda-auto.route on ppp0.route it makes good route but it is not visible in redhat-config-network configuration .. when I save it in redhat-config-network it`s saved by name of connection (skoda-auto.route) and it doesn`t set a right route .. Martin
Does the attached make it work for you?
Created attachment 90203 [details] patch for ifup-routes, ifup-post, ifup-aliases
[root@citron network-scripts]# patch -p0 <initscripts.patch patching file ifup-aliases patching file ifup-post patching file ifup-routes Then dial-up and .. [root@citron network-scripts]# route SmÄrovacà tabulka v jádru pro IP Adresát Brána Maska PÅÃzn Metrik Odkaz Užt Rozhranà 10.217.113.20 * 255.255.255.255 UH 0 0 0 ppp0 192.168.17.0 * 255.255.255.0 U 0 0 0 eth0 169.254.0.0 * 255.255.0.0 U 0 0 0 eth0 10.0.0.0 10.217.113.20 255.0.0.0 UG 0 0 0 ppp0 127.0.0.0 * 255.0.0.0 U 0 0 0 lo default somehost.a. 0.0.0.0 UG 0 0 0 eth0 YES IT WORKS .. Thaks for solution .. Regards Martin
Fixed in 7.09-1.