Richard Hayes wrote:
>Dear list,
>
>I have 2 network card and have configured them using netconf.
>
>I can add the routes manually but how do I edit /etc/sysconfig/networkscripts
>file?
>
As far as I know the file you want to edit is
/etc/sysconfig/static-routes and the format of the file is just the
command you'd be using with route, but without the "route add" bit at
the start. eg
$ route add default gw firewall
becomes
default gw firewall
in /etc/sysconfig/static-routes. The shell script which does the dirty
work is /etc/sysconfig/network-scripts/ifup-routes.
I think that's right :)
>
>Is there this a reason why Linuxconf route commands does not add the gateway?
>
hmmm.. good question. You shouldn't need to add static routes for
gateways though. If it's just a gateway you want to add then add a line
that says
GATEWAY=gateway
in your /etc/sysconfig/network file.
I don't know enough about linuxconf to tell you why it's not working.
James.
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug