[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Routing Q.



Benji Selano wrote:
Hi...

how can I keep multiple permanent routes in Linux (same as /etc/defaultroute
in Solaris)

Benji

=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il

for redhat(6.x)
/etc/sysconfig/static-routes

the format is:

device net network netmask netmask gw gateway
 

for example:
eth0 net 192.168.2.0 netmask 255.255.255.0 gw 192.168.2.254


cheers
-- 
Avishay Aton
Unix system administrator
mcse.
linux + freebsd lover.
avishaya@breezecom.co.il