Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing default gateway in routing table

Status
Not open for further replies.

grega

Programmer
Feb 2, 2000
932
GB
All,

Probably a simple question .. How do I permanently change the default gateway in my routing table (Solaris 2.5.1, soon to be 2.6)? Everytime I reboot my server I have to issue the route add default n.n.n.n 2 before developers can see the machine. This happened after our tech support changed a pile of network IP addresses. I know I could change the IP of the server to be on the new subnet, but would like to know how to add the new route permanently, as on occassions I need to add routes for other networks.

Thanks in advance.

Greg. [sig][/sig]
 
Create the file &quot;/etc/defaultrouter&quot; and enter just the IP address of your default gateway. Reboot the system and your new default route will be in place. [sig]<p> Andy Bold<br><a href=mailto: > </a><br><a href= > </a><br>"I've probably made most of the mistakes already, so hopefully you won't have to..." Me, most days.[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top