* [LARTC] IFUP scripts
@ 2003-08-18 21:36 paul.walling
2003-08-18 22:06 ` Eric Leblond
2003-08-18 22:43 ` paul.walling
0 siblings, 2 replies; 3+ messages in thread
From: paul.walling @ 2003-08-18 21:36 UTC (permalink / raw)
To: lartc
Hi,
can someone tell me the script to hook my routing commands
into so that after my ethernet interface has gone down and
subsequently been started again the routes are restored.
I have been looking at ifup in the /etc/sysconfig/network
scripts directory.
Many thanks
Paul
-----------------------------------------
Email provided by http://www.ntlhome.com/
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LARTC] IFUP scripts
2003-08-18 21:36 [LARTC] IFUP scripts paul.walling
@ 2003-08-18 22:06 ` Eric Leblond
2003-08-18 22:43 ` paul.walling
1 sibling, 0 replies; 3+ messages in thread
From: Eric Leblond @ 2003-08-18 22:06 UTC (permalink / raw)
To: lartc
[-- Attachment #1: Type: text/plain, Size: 579 bytes --]
Le lun 18/08/2003 à 23:36, paul.walling@ntlworld.com a écrit :
> Hi,
> can someone tell me the script to hook my routing commands
> into so that after my ethernet interface has gone down and
> subsequently been started again the routes are restored.
you can use the keyword : up
iface ...
network
up ip route add 192.168.1.0L/24 .....
more detail on "man interfaces" ;-)
> I have been looking at ifup in the /etc/sysconfig/network
> scripts directory.
>
> Many thanks
--
Eric Leblond
Gnufw is Not a User mode FireWall : http://www.gnufw.org
[-- Attachment #2: Ceci est une partie de message numériquement signée --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LARTC] IFUP scripts
2003-08-18 21:36 [LARTC] IFUP scripts paul.walling
2003-08-18 22:06 ` Eric Leblond
@ 2003-08-18 22:43 ` paul.walling
1 sibling, 0 replies; 3+ messages in thread
From: paul.walling @ 2003-08-18 22:43 UTC (permalink / raw)
To: lartc
Many thanks
I added my routes to file /etc/sysconfig/static-routes
They initially failed as the calling script
/etc/sysconfig/network-scripts/ifup-routes.
was using the route command not the ip route command.
So I changed the ifup-routes script to use ip route.
Note I used the ip route replace command.
All seems to work now.
Paul
>
> From: "Tarek W." <ticallion@terra.net.lb>
> Date: 2003/08/18 Mon PM 10:16:06 GMT
> To: paul.walling@ntlworld.com
> Subject: Re: [LARTC] IFUP scripts
>
>
> in case ur talking about RHL, I usually spike my
> /etc/rc.d/init.d/network at the end of the start section, that way I can
> override any unwanted routing rules the ifup scripts inject into my
> tables, especially useful if u have several nics on the same subnet
>
> On Tue, 2003-08-19 at 00:36, paul.walling@ntlworld.com wrote:
> > Hi,
> > can someone tell me the script to hook my routing commands
> > into so that after my ethernet interface has gone down and
> > subsequently been started again the routes are restored.
> > I have been looking at ifup in the /etc/sysconfig/network
> > scripts directory.
> >
> > Many thanks
> >
> > Paul
> >
> > -----------------------------------------
> > Email provided by http://www.ntlhome.com/
> >
> >
> > _______________________________________________
> > LARTC mailing list / LARTC@mailman.ds9a.nl
> > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>
>
>
-----------------------------------------
Email provided by http://www.ntlhome.com/
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-08-18 22:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-18 21:36 [LARTC] IFUP scripts paul.walling
2003-08-18 22:06 ` Eric Leblond
2003-08-18 22:43 ` paul.walling
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.