Account Links: Cart | Your Account | Logout

Skip to content

Red Hat Knowledgebase

Red Hat Knowledgebase Search:

Updated Within the Last:

New Solutions within the last day New Solutions within the last week New Solutions within the last month

Browse by topics:


Click to View a Topic
Red Hat Enterprise Linux > AS/ES/WS v. 3 > Issue <<  5 of 594 >>

Solution Tools:


Email a Solution Postcard Printer version Submit a comment on this answer Update notifications Request an answer Back

Article Reference

Article ID: 2561
Last update: 01-28-05
Issue:
How do I configure static routes in Red Hat Enterprise Linux version 3?
Resolution:
The new way to add static routes on Red Hat Enterprise Linux systems is to create a file /etc/sysconfig/network-scripts/route-ethX where X corresponds to the network interface you wish to use the alternate route(s). This file deals with three fields: GATEWAY, NETMASK, and ADDRESS. Each field should have a number appended to it indicating what route it relates to. The example below shows two static routes configured for the eth0 network interface.

/etc/sysconfig/network-scripts/route-eth0

GATEWAY0=10.10.0.1 
NETMASK0=255.0.0.0 
ADDRESS0=10.0.0.0 

GATEWAY1=10.2.0.1 
NETMASK1=255.255.0.0 
ADDRESS1=192.168.0.0 



After this is done either reboot the system or restart networking: service network restart


How well did this entry answer your question?


good wrong incomplete out of date
Red Hat Enterprise Linux > AS/ES/WS v. 3 > Issue <<   5  of  594  >>