RE: Static Routes in Redhat 8.0
I thought this was a bug because I was getting the same issues. They talk about the workaround as getting the following script from RH7.x: /etc/sysconfig/network-scripts/ifup-routes I don't have any RH7.x machines, can someone provide the script here? BTW, when I use redhat-config-network to configure my network under RH8, it creates the route.eth0 file. The only other issue I have with this setup is when I use redhat-config-network to add an alias, it adds many default route entries in my routing table for each alias device ie. if I have 10 alias devices, I also have 10 default route entries. Any help here would be appreciated. Michael. --- "Tapang, Roderick Eugenio (GXS)" <[EMAIL PROTECTED]> wrote: > check this bug report: > > https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=75604 > > > -Original Message- > > From: Gary Applin [mailto:[EMAIL PROTECTED] > > Sent: Friday, March 28, 2003 9:01 AM > > To: [EMAIL PROTECTED] > > Subject: Re: Static Routes in Redhat 8.0 > > > > > > Is the use of these two files documented somewhere > by RedHat? I have > > purchased many books on RedHat Linux and they > don't cover the > > topic to any > > depth. > > > > BTW I also have this file. The entry seems to be > different than yours. > > > > ADDRESS0=192.168.50.0 > > GATEWAY0=192.168.1.1 > > NETMASK0=255.255.255.0 > > > > Gary > > - Original Message ----- > > From: "Tapang, Roderick Eugenio (GXS)" > > <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Thursday, March 27, 2003 11:23 PM > > Subject: RE: Static Routes in Redhat 8.0 > > > > > > > u need to create it - like the > /etc/sysconfig/static-routes file > > > > > > > > > > > > > [EMAIL PROTECTED] root]# cat > > /etc/sysconfig/networking/devices/eth0.route > > > > > > > > FWIW, I don't have this file (or similar) on > my system. Only > > > > /etc/sysconfig/static-routes. > > > > > > > > > > > > -- > > > > Hal Burgiss > > > > > > > > > > > > > > > > > > > > -- > > > > redhat-list mailing list > > > > unsubscribe > > > mailto:[EMAIL PROTECTED] > > > > > https://listman.redhat.com/mailman/listinfo/redhat-list > > > > > > > > > > > > > > > > -- > > > redhat-list mailing list > > > unsubscribe > > > mailto:[EMAIL PROTECTED] > > > > https://listman.redhat.com/mailman/listinfo/redhat-list > > > > > > > > > > > > > -- > > redhat-list mailing list > > unsubscribe > mailto:[EMAIL PROTECTED] > > > https://listman.redhat.com/mailman/listinfo/redhat-list > > > > > > -- > redhat-list mailing list > unsubscribe > mailto:[EMAIL PROTECTED] > https://listman.redhat.com/mailman/listinfo/redhat-list __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
RE: Static Routes in Redhat 8.0
check this bug report: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=75604 > -Original Message- > From: Gary Applin [mailto:[EMAIL PROTECTED] > Sent: Friday, March 28, 2003 9:01 AM > To: [EMAIL PROTECTED] > Subject: Re: Static Routes in Redhat 8.0 > > > Is the use of these two files documented somewhere by RedHat? I have > purchased many books on RedHat Linux and they don't cover the > topic to any > depth. > > BTW I also have this file. The entry seems to be different than yours. > > ADDRESS0=192.168.50.0 > GATEWAY0=192.168.1.1 > NETMASK0=255.255.255.0 > > Gary > - Original Message - > From: "Tapang, Roderick Eugenio (GXS)" > <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, March 27, 2003 11:23 PM > Subject: RE: Static Routes in Redhat 8.0 > > > > u need to create it - like the /etc/sysconfig/static-routes file > > > > > > > > > > [EMAIL PROTECTED] root]# cat > /etc/sysconfig/networking/devices/eth0.route > > > > > > FWIW, I don't have this file (or similar) on my system. Only > > > /etc/sysconfig/static-routes. > > > > > > > > > -- > > > Hal Burgiss > > > > > > > > > > > > > > > -- > > > redhat-list mailing list > > > unsubscribe > mailto:[EMAIL PROTECTED] > > > https://listman.redhat.com/mailman/listinfo/redhat-list > > > > > > > > > > > -- > > redhat-list mailing list > > unsubscribe > mailto:[EMAIL PROTECTED] > > https://listman.redhat.com/mailman/listinfo/redhat-list > > > > > > > -- > redhat-list mailing list > unsubscribe mailto:[EMAIL PROTECTED] > https://listman.redhat.com/mailman/listinfo/redhat-list > -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: Static Routes in Redhat 8.0
Is the use of these two files documented somewhere by RedHat? I have purchased many books on RedHat Linux and they don't cover the topic to any depth. BTW I also have this file. The entry seems to be different than yours. ADDRESS0=192.168.50.0 GATEWAY0=192.168.1.1 NETMASK0=255.255.255.0 Gary - Original Message - From: "Tapang, Roderick Eugenio (GXS)" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 27, 2003 11:23 PM Subject: RE: Static Routes in Redhat 8.0 > u need to create it - like the /etc/sysconfig/static-routes file > > > > > > > [EMAIL PROTECTED] root]# cat /etc/sysconfig/networking/devices/eth0.route > > > > FWIW, I don't have this file (or similar) on my system. Only > > /etc/sysconfig/static-routes. > > > > > > -- > > Hal Burgiss > > > > > > > > > > -- > > redhat-list mailing list > > unsubscribe mailto:[EMAIL PROTECTED] > > https://listman.redhat.com/mailman/listinfo/redhat-list > > > > > > -- > redhat-list mailing list > unsubscribe mailto:[EMAIL PROTECTED] > https://listman.redhat.com/mailman/listinfo/redhat-list > -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
RE: Static Routes in Redhat 8.0
ok, so do you have any idea how i can use my eth0.route entries via /etc/sysconfig/static-routes? > -Original Message- > From: Hal Burgiss [mailto:[EMAIL PROTECTED] > Sent: Friday, March 28, 2003 7:06 AM > To: [EMAIL PROTECTED] > Subject: Re: Static Routes in Redhat 8.0 > > > On Fri, Mar 28, 2003 at 12:23:25PM +0800, Tapang, Roderick > Eugenio (GXS) wrote: > > u need to create it - like the /etc/sysconfig/static-routes file > > Why, my system is working fine as is ? :-) > -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: Static Routes in Redhat 8.0
On Fri, Mar 28, 2003 at 12:23:25PM +0800, Tapang, Roderick Eugenio (GXS) wrote: > u need to create it - like the /etc/sysconfig/static-routes file Why, my system is working fine as is ? :-) > > > > > > [EMAIL PROTECTED] root]# cat /etc/sysconfig/networking/devices/eth0.route > > > > FWIW, I don't have this file (or similar) on my system. Only > > /etc/sysconfig/static-routes. -- Hal Burgiss -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
RE: Static Routes in Redhat 8.0
u need to create it - like the /etc/sysconfig/static-routes file > > > > [EMAIL PROTECTED] root]# cat /etc/sysconfig/networking/devices/eth0.route > > FWIW, I don't have this file (or similar) on my system. Only > /etc/sysconfig/static-routes. > > > -- > Hal Burgiss > > > > > -- > redhat-list mailing list > unsubscribe mailto:[EMAIL PROTECTED] > https://listman.redhat.com/mailman/listinfo/redhat-list > -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: Static Routes in Redhat 8.0
On Thu, Mar 27, 2003 at 09:12:45PM +0800, Tapang, Roderick Eugenio (GXS) wrote: > here's something: > > the file: > > [EMAIL PROTECTED] root]# cat /etc/sysconfig/networking/devices/eth0.route FWIW, I don't have this file (or similar) on my system. Only /etc/sysconfig/static-routes. -- Hal Burgiss -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
RE: Static Routes in Redhat 8.0
here's something: the file: [EMAIL PROTECTED] root]# cat /etc/sysconfig/networking/devices/eth0.route contains: route add -net 10.24.208.1 netmask 255.255.255.255 dev eth0 route add -net 10.24.208.128 netmask 255.255.255.128 dev eth0 route add -net 0.0.0.0 gw 10.24.208.1 netmask 0.0.0.0 dev eth0 those lines are ran whenever a '/sbin/service network start | restart' is executed. anything wrong here? i can't figure out how to make the routes available via static-routes file. thanks. /erik -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
RE: Static Routes in Redhat 8.0
well, it doesn't read mine. i'm using the same static routes from my 7.3 system. only the rc.local approach worked for me. > -Original Message- > From: Hal Burgiss [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 27, 2003 6:56 AM > To: [EMAIL PROTECTED] > Subject: Re: Static Routes in Redhat 8.0 > > > On Thu, Mar 27, 2003 at 05:02:28PM +0800, Tapang, Roderick Eugenio > (GXS) wrote: > > RHL 8 doesn't read /etc/sysconfig/static-routes anymore (correct me > > if i'm wrong). > > Wrong! It reads mine (same file and syntax as 7.x). See: > /usr/share/doc/initscripts-6.95/sysconfig.txt. > > -- > Hal Burgiss > > > > > -- > redhat-list mailing list > unsubscribe mailto:[EMAIL PROTECTED] > https://listman.redhat.com/mailman/listinfo/redhat-list > -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: Static Routes in Redhat 8.0
On Thu, Mar 27, 2003 at 05:02:28PM +0800, Tapang, Roderick Eugenio (GXS) wrote: > RHL 8 doesn't read /etc/sysconfig/static-routes anymore (correct me > if i'm wrong). Wrong! It reads mine (same file and syntax as 7.x). See: /usr/share/doc/initscripts-6.95/sysconfig.txt. -- Hal Burgiss -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
RE: Static Routes in Redhat 8.0
RHL 8 doesn't read /etc/sysconfig/static-routes anymore (correct me if i'm wrong). put your route commands to /etc/rc.local instead. hth. /erik (o_.' http://counter.li.org/ //\ -- V_/_Linux User # 253842 > -Original Message- > From: Gary Applin [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 26, 2003 11:17 AM > To: [EMAIL PROTECTED] > Subject: Re: Static Routes in Redhat 8.0 > > > Ben, > > No I did not. I did however, reboot the box. > > Gary > > - Original Message - > From: "Ben Russo" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, March 26, 2003 11:00 AM > Subject: Re: Static Routes in Redhat 8.0 > > > > Gary Applin wrote: > > > > > Can someone point me to info on static routes in RedHat > 8.0? I have > > > tried to enter them in the /etc/sysconfig/static-routes using the > > > systax from RH 7X. This does not seem to work. They do > not show up > > > with a netstat -nr. Any help would be appreciated. > > > > after adding the static-routes to the > /etc/sysconfig/static-routes did > > you run "service network reload" ? > > > > -Ben. > > > > > > > > > > -- > > redhat-list mailing list > > unsubscribe > mailto:[EMAIL PROTECTED] > > https://listman.redhat.com/mailman/listinfo/redhat-list > > > > -- > redhat-list mailing list > unsubscribe mailto:[EMAIL PROTECTED] > https://listman.redhat.com/mailman/listinfo/redhat-list > -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: Static Routes in Redhat 8.0
Hmm, well can you show us what you have in the file? I haven't had a need to use /etc/sysconfig/static-routes in a while, but I checked my /etc/rc.d/init.d/network script to see how it uses the content of "static-routes" file: # Add non interface-specific static-routes. if [ -f /etc/sysconfig/static-routes ]; then grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do /sbin/route add -$args done fi So it looks like the static-routes file has the format of a line beginning (with no spaces) either the name of the interface "eth0" or "eth1" for example, or "any" and then some whitespace followed by all the arguments and options that would normally follow the command "route" if it were used on the command line. Gary Applin wrote: Ben, No I did not. I did however, reboot the box. Gary - Original Message - From: "Ben Russo" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 26, 2003 11:00 AM Subject: Re: Static Routes in Redhat 8.0 Gary Applin wrote: Can someone point me to info on static routes in RedHat 8.0? I have tried to enter them in the /etc/sysconfig/static-routes using the systax from RH 7X. This does not seem to work. They do not show up with a netstat -nr. Any help would be appreciated. after adding the static-routes to the /etc/sysconfig/static-routes did you run "service network reload" ? -Ben. -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: Static Routes in Redhat 8.0
Ben, No I did not. I did however, reboot the box. Gary - Original Message - From: "Ben Russo" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 26, 2003 11:00 AM Subject: Re: Static Routes in Redhat 8.0 > Gary Applin wrote: > > > Can someone point me to info on static routes in RedHat 8.0? I have > > tried to enter them in the /etc/sysconfig/static-routes using the > > systax from RH 7X. This does not seem to work. They do not show up > > with a netstat -nr. Any help would be appreciated. > > after adding the static-routes to the /etc/sysconfig/static-routes did > you run "service network reload" ? > > -Ben. > > > > > -- > redhat-list mailing list > unsubscribe mailto:[EMAIL PROTECTED] > https://listman.redhat.com/mailman/listinfo/redhat-list -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: Static Routes in Redhat 8.0
Gary Applin wrote: Can someone point me to info on static routes in RedHat 8.0? I have tried to enter them in the /etc/sysconfig/static-routes using the systax from RH 7X. This does not seem to work. They do not show up with a netstat -nr. Any help would be appreciated. after adding the static-routes to the /etc/sysconfig/static-routes did you run "service network reload" ? -Ben. -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
RE: Static Routes
Hi Ian, check /etc/sysconfig/static-routes cheers Christopher CUSE RHCE/CCNA -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ian Dobson Sent: Tuesday, March 25, 2003 11:27 AM To: [EMAIL PROTECTED] Subject: Static Routes where is the correct place to add static routes in Redhat? I know I can add it to rc.local, but is there a RedHat place? -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
RE: static-routes with RH8.0
Rick, Thanks. It finally worked. I put any net 10.0.254.248 gw 63.214.2.234 netmask 255.255.255.252 in the "static-routes" file under /usr/sysconfig/. In other words, to add specific route on to a specific interface, I probably need to put the same info in a different place, I guess, as other people suggested. My objective has been accomplished by your suggestion. And I don't have time to pursue the other way. But I couldn't find any description for the other options. By the way, if this paticular change is an official one, it should be documented somewhere in RedHat. I found the original one in the RedHat web search : http://www.redhat.com/support/resources/tips/Network-Config-Tips/Network-Con fig-Tips-4.html At least this description has to be changed. Sorry, I'm writing to somebody who is responsible for this document or the change itself. Again I appreciate your help, Rick. Toshi Esumi AuBeta Networks Corp. -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list
RE: static-routes with RH8.0
The shell code from /etc/init.d/network # Add non interface-specific static-routes. if [ -f /etc/sysconfig/static-routes ]; then grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do /sbin/route add -$args done fi It only wants lines that begin with "any". Apparently the file syntax has changed between your version to version 8. Rick -Original Message- From: Toshi Esumi [mailto:[EMAIL PROTECTED]] Sent: Friday, January 17, 2003 6:46 PM To: '[EMAIL PROTECTED]' Subject:static-routes with RH8.0 Does someone have the same experience with RH8.0? I put a static router statement in /etc/sysconfig/static-routes file as I did with RH7.0. But it doesn't seem to work when I reboot the PC. It takes the same static route when I put it manualy using "route" command when it's running. The route I wanted to put is Kernel IP routing table Destination Gateway Genmask Flags Metric RefUse Iface 63.214.2.224* 255.255.255.240 U 0 00 eth0 127.0.0.0 * 255.0.0.0 U 0 00 lo default 63.214.2.2250.0.0.0 UG0 00 eth0 route add -net 10.0.254.248 gw 63.214.2.234 netmask 255.255.255.252 Kernel IP routing table Destination Gateway Genmask Flags Metric RefUse Iface 10.0.254.24863.214.2.234255.255.255.252 UG0 00 eth0 63.214.2.224* 255.255.255.240 U 0 00 eth0 127.0.0.0 * 255.0.0.0 U 0 00 lo default 63.214.2.2250.0.0.0 UG0 00 eth0 eth0 net 10.0.254.248 netmask 255.255.255.252 gw 63.214.2.234 This didn't work when I rebooted. Toshi -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list
Re: static-routes with RH8.0
On Mon, 2003-01-20 at 00:11, Matthew Melvin wrote: > On Fri, 17 Jan 2003 at 3:46pm (-0800), Toshi Esumi wrote: > > > Does someone have the same experience with RH8.0? I put a static router > > statement in /etc/sysconfig/static-routes file as I did with RH7.0. But it > > doesn't seem to work when I reboot the PC. It takes the same static route > > when I put it manualy using "route" command when it's running. The route I > > wanted to put is > > > > > > Kernel IP routing table > > Destination Gateway Genmask Flags Metric RefUse > > Iface > > 63.214.2.224* 255.255.255.240 U 0 00 eth0 > > 127.0.0.0 * 255.0.0.0 U 0 00 lo > > default 63.214.2.2250.0.0.0 UG0 00 eth0 > > > > > > route add -net 10.0.254.248 gw 63.214.2.234 netmask 255.255.255.252 > > > > Kernel IP routing table > > Destination Gateway Genmask Flags Metric RefUse > > Iface > > 10.0.254.24863.214.2.234255.255.255.252 UG0 00 eth0 > > 63.214.2.224* 255.255.255.240 U 0 00 eth0 > > 127.0.0.0 * 255.0.0.0 U 0 00 lo > > default 63.214.2.2250.0.0.0 UG0 00 eth0 > > > > > > eth0 net 10.0.254.248 netmask 255.255.255.252 gw 63.214.2.234 > >This didn't work when > > I rebooted. > > > > RH8.0 doens't use /etc/sysconfig/static-routes any more but instead has a > routes file for each interface... try adding... > > 10.0.254.248/30 via 63.214.2.234 > > ... to /etc/sysconfig/network-scripts/route-eth0 instead. > Looking at /etc/sysconfig/network/ifup-routes seems to show that that was the 'old way'. It seems they now expect a file such as '/etc/sysconfig/networking/devices/$1.route' where $1 is the device name and the file contains environment variable statements (just like ifcfg-eth0). (I'm at home at the mo, but I'll try this tomorrow at work.) John. -- John Horne, University of Plymouth, UK Tel: +44 (0)1752 233914 E-mail: [EMAIL PROTECTED] PGP key available from public key servers -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list
Re: static-routes with RH8.0
On Fri, 17 Jan 2003 at 3:46pm (-0800), Toshi Esumi wrote: > Does someone have the same experience with RH8.0? I put a static router > statement in /etc/sysconfig/static-routes file as I did with RH7.0. But it > doesn't seem to work when I reboot the PC. It takes the same static route > when I put it manualy using "route" command when it's running. The route I > wanted to put is > > > Kernel IP routing table > Destination Gateway Genmask Flags Metric RefUse > Iface > 63.214.2.224* 255.255.255.240 U 0 00 eth0 > 127.0.0.0 * 255.0.0.0 U 0 00 lo > default 63.214.2.2250.0.0.0 UG0 00 eth0 > > > route add -net 10.0.254.248 gw 63.214.2.234 netmask 255.255.255.252 > > Kernel IP routing table > Destination Gateway Genmask Flags Metric RefUse > Iface > 10.0.254.24863.214.2.234255.255.255.252 UG0 00 eth0 > 63.214.2.224* 255.255.255.240 U 0 00 eth0 > 127.0.0.0 * 255.0.0.0 U 0 00 lo > default 63.214.2.2250.0.0.0 UG0 00 eth0 > > > eth0 net 10.0.254.248 netmask 255.255.255.252 gw 63.214.2.234 >This didn't work when > I rebooted. > RH8.0 doens't use /etc/sysconfig/static-routes any more but instead has a routes file for each interface... try adding... 10.0.254.248/30 via 63.214.2.234 ... to /etc/sysconfig/network-scripts/route-eth0 instead. M. -- WebCentral Pty Ltd Australia's #1 Internet Web Hosting Company Level 5, 100 Wickham St. Network Operations - Systems Engineer PO Box 930, Fortitude Valley. phone: +61 7 3249 2552 Queensland, Australia 4006. pgp key id: 0x900E515F -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list
RE: static-routes with RH8.0
Matthew, I put the line you suggested, which is.. 10.0.254.248/30 via 63.214.2.234 in ... -rw-r--r--1 root root 33 Jan 20 07:52 route-eth0 under ... /etc/sysconfig/network-scripts/ then, 'shutdown -r 0' to reboot it. But it still doesn't take it. By the way, is this described in someware like a man page or in a doc? Toshi -Original Message- From: Matthew Melvin [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 19, 2003 4:11 PM To: Toshi Esumi Cc: '[EMAIL PROTECTED]' Subject: Re: static-routes with RH8.0 On Fri, 17 Jan 2003 at 3:46pm (-0800), Toshi Esumi wrote: > Does someone have the same experience with RH8.0? I put a static router > statement in /etc/sysconfig/static-routes file as I did with RH7.0. But it > doesn't seem to work when I reboot the PC. It takes the same static route > when I put it manualy using "route" command when it's running. The route I > wanted to put is > > > Kernel IP routing table > Destination Gateway Genmask Flags Metric RefUse > Iface > 63.214.2.224* 255.255.255.240 U 0 00 eth0 > 127.0.0.0 * 255.0.0.0 U 0 00 lo > default 63.214.2.2250.0.0.0 UG0 00 eth0 > > > route add -net 10.0.254.248 gw 63.214.2.234 netmask 255.255.255.252 > > Kernel IP routing table > Destination Gateway Genmask Flags Metric RefUse > Iface > 10.0.254.24863.214.2.234255.255.255.252 UG0 00 eth0 > 63.214.2.224* 255.255.255.240 U 0 00 eth0 > 127.0.0.0 * 255.0.0.0 U 0 00 lo > default 63.214.2.2250.0.0.0 UG0 00 eth0 > > > eth0 net 10.0.254.248 netmask 255.255.255.252 gw 63.214.2.234 >This didn't work when > I rebooted. > RH8.0 doens't use /etc/sysconfig/static-routes any more but instead has a routes file for each interface... try adding... 10.0.254.248/30 via 63.214.2.234 ... to /etc/sysconfig/network-scripts/route-eth0 instead. M. -- WebCentral Pty Ltd Australia's #1 Internet Web Hosting Company Level 5, 100 Wickham St. Network Operations - Systems Engineer PO Box 930, Fortitude Valley. phone: +61 7 3249 2552 Queensland, Australia 4006. pgp key id: 0x900E515F -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list
Re: static-routes with RH8.0
Hey Toshi, What is your ifconfig output? Brent *** REPLY SEPARATOR *** On 1/17/03 at 3:46 PM Toshi Esumi wrote: >Does someone have the same experience with RH8.0? I put a static router >statement in /etc/sysconfig/static-routes file as I did with RH7.0. But it >doesn't seem to work when I reboot the PC. It takes the same static route >when I put it manualy using "route" command when it's running. The route I >wanted to put is > > >Kernel IP routing table >Destination Gateway Genmask Flags Metric RefUse >Iface >63.214.2.224* 255.255.255.240 U 0 00 >eth0 >127.0.0.0 * 255.0.0.0 U 0 00 lo >default 63.214.2.2250.0.0.0 UG0 00 >eth0 > > >route add -net 10.0.254.248 gw 63.214.2.234 netmask 255.255.255.252 > >Kernel IP routing table >Destination Gateway Genmask Flags Metric RefUse >Iface >10.0.254.24863.214.2.234255.255.255.252 UG0 00 >eth0 >63.214.2.224* 255.255.255.240 U 0 00 >eth0 >127.0.0.0 * 255.0.0.0 U 0 00 lo >default 63.214.2.2250.0.0.0 UG0 00 >eth0 > > >eth0 net 10.0.254.248 netmask 255.255.255.252 gw 63.214.2.234 > This didn't work >when >I rebooted. > > >Toshi > > > >-- >redhat-list mailing list >unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe >https://listman.redhat.com/mailman/listinfo/redhat-list -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list
Re: static-routes with RH8.0
On Sat, 2003-01-18 at 00:24, Ted Gervais wrote: > On Friday 17 January 2003 07:46 pm, Toshi Esumi wrote: > I seem to have the same problem. > > My /etc/sysconfig/static-routes file has 4 lines of routes in it but none of > them show up when I run 'route -n '. > > I need to enter them manually for them to 'take' or show. > > Anyone have any ideas as to why this is happening, or at least how to get the > routes to be installed when I reboot the machine?? > I have looked at adding static routes for a couple of our servers. With RH8 it seems that 'static-routes' is looked at by /etc/init.d/network. But it only seems to be used for non interface-specific routes. As the code shows: # Add non interface-specific static-routes. if [ -f /etc/sysconfig/static-routes ]; then grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do /sbin/route add -$args done fi If the line in the file begins with the word 'any' then the rest of the line is passed to 'route add -'. From what you've said I assume this is different from what it was in RH7. In our case I have had to manually add the static routes - which are interface-specific because we have multihomed servers - directly into the /etc/init.d/network file. Not ideal but it vaguely works for now. John. -- John Horne, University of Plymouth, UK Tel: +44 (0)1752 233914 E-mail: [EMAIL PROTECTED] PGP key available from public key servers -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list
Re: static-routes with RH8.0
On Friday 17 January 2003 07:46 pm, Toshi Esumi wrote: I seem to have the same problem. My /etc/sysconfig/static-routes file has 4 lines of routes in it but none of them show up when I run 'route -n '. I need to enter them manually for them to 'take' or show. Anyone have any ideas as to why this is happening, or at least how to get the routes to be installed when I reboot the machine?? > Does someone have the same experience with RH8.0? I put a static router > statement in /etc/sysconfig/static-routes file as I did with RH7.0. But it > doesn't seem to work when I reboot the PC. It takes the same static route > when I put it manualy using "route" command when it's running. The route I > wanted to put is > > > Kernel IP routing table > Destination Gateway Genmask Flags Metric RefUse > Iface > 63.214.2.224* 255.255.255.240 U 0 00 > eth0 127.0.0.0 * 255.0.0.0 U 0 0 > 0 lo default 63.214.2.2250.0.0.0 UG0 0 > 0 eth0 > > > route add -net 10.0.254.248 gw 63.214.2.234 netmask 255.255.255.252 > > Kernel IP routing table > Destination Gateway Genmask Flags Metric RefUse > Iface > 10.0.254.24863.214.2.234255.255.255.252 UG0 00 > eth0 63.214.2.224* 255.255.255.240 U 0 0 > 0 eth0 127.0.0.0 * 255.0.0.0 U 0 0 > 0 lo default 63.214.2.2250.0.0.0 UG0 0 > 0 eth0 > > > eth0 net 10.0.254.248 netmask 255.255.255.252 gw 63.214.2.234 >This didn't work > when I rebooted. > > > Toshi -- T.L.Gervais Coldbrook, NS Canada. -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list
Re: Static routes get ignored
Hi Peter, Well at least one place to check is /etc/sysctl.conf Make sure there is a line like this net.ipv4.ip_forward = 1 to enable packet forwarding. Otherwise, you should post more about your configuration to get more help. There are quite a few differences between 6.0 and 6.2. Not major ones, just enough to make things have to be gone over to make things work. Have fun, -- _ Brian Ashe CTO [EMAIL PROTECTED] Dee-Web Software Services, LLC. http://www.dee-web.com/ - You don't have to swim faster than the shark... You just have to swim faster than the people you're with. Friday, September 15, 2000, 10:19:20 PM, you wrote: PK> Hi all, PK> I've just redone my network with a switch instead of the coax cable and also PK> set up a new firewall machine with 2 NICs in it to prepare for ADSL. PK> The firewall local IP address is 192.168.0.1 but my servers are on real IP PK> address of the 203.46.4.192/255.255.255.224 network. So I need to tell the PK> firewall about the other network. PK> Using netconf I added the following into "Routing and Gateways", "routes to PK> alternate local nets" PK> Network NetmaskInterface PK> 203.46.4.192255.255.255.224eth0 PK> What gets inserted into /etc/sysconfig/static-routes is: PK> any net 203.46.4.192 netmask 255.255.255.224 gw eth0 PK> Now why is it when I reboot that the above route never gets added. I can't PK> find any errors in any logs, it just ignores the static route. PK> The funny thing is the old firewall (RH6.0) box did this fine but my new PK> firewall (RH6.2) doesn't do it. PK> Any ideas? PK> +---+-+ PK> | Peter Kiem| E-Mail: <[EMAIL PROTECTED]> | PK> | Zordah IT | Mobile: +61 0418 798 121| PK> | IT Consultancy &| WWW : www.zordah.net | PK> | Internet Hosting| ICQ : "Zordah" 81 | PK> +---+-+ PK> The Rules Have Changed...Be paid to Surf the Web! PK> http://au.nz.alladvantage.com/go.asp?refid=OMP682 PK> ___ PK> Redhat-list mailing list PK> [EMAIL PROTECTED] PK> https://listman.redhat.com/mailman/listinfo/redhat-list ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: static routes?
eth2 net 207.113.56.1 netmask 255.255.255.255 gw 207.113.56.129 eth2 n default gw 207.113.56.1 here is mine. replace 207.113.56.1 with your gateway, your isp. 207.113.56.129 is my gateway for the internal lan. hope that helps Darryl Harvey wrote: > there is a file /etc/sysconfig/static-routes > > Does anyone know the format of entries for this file? > > I need to add some routes and take it that they should be put in here? > > Thanks > Darryl > > -- > To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" > as the Subject. -- To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject.
Re: static routes?
That, or just use route add etc... to your rc.local file > there is a file /etc/sysconfig/static-routes > Does anyone know the format of entries for this file? > I need to add some routes and take it that they should be > put in here? > Thanks > Darryl > -- > To unsubscribe: mail [EMAIL PROTECTED] with > "unsubscribe" > as the Subject. -- To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject.