James Gregory wrote: > > Richard Hayes wrote: > [...] > 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
Last time I used Mandrake, /etc/sysconfig/static-routes used the same format as RedHat's. Assuming the above... The format of each line in the file is: any|<interface> [net|host] target [netmask Nm] [gw Gw] [metric N] [mss M] [window W] [irtt I] [reject] [mod] [dyn] [reinstate] For example: eth2 net 172.16.16.0 netmask 255.255.255.0 any host 10.1.1.1 gateway 192.168.1.1 A hyphen is prepended to the arguments so that the above configurations would become the following commands: /sbin/route add -net 172.16.16.0 netmask 255.255.255.0 eth2 /sbin/route add -host 10.1.1.1 gateway 192.168.1.1 I don't think you can add default routes using /etc/sysconfig/static-routes - only host/net routes. knet. -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
