Change the default route in Solaris

Home -> UNIX -> Solaris -> Network administration

49570 views

From the computer of: qmchenry (338 recipes)
Created: Jul 11, 2003     Updated: Sep 29, 2003


1 comments:
View all comments

Add a comment

Add to:
Add to stumbleuponAdd to del.icio.usDigg itAdd to FURL

Step 1: edit /etc/defaultrouter

Using the editor of your choice, edit the file /etc/defaultrouter -- the only line in the file should be the default route of the system, for example: 192.168.1.1. This change will not take effect until the system is rebooted.

Step 2: Delete the current default route

To make the route change take effect immediately, you must first delete the default route. If the current default route is 192.168.254.1, then the command would be:

route delete default 192.168.254.1


Step 3: Assign the current default route

To implement the new default route without rebooting the system, use the following command substituting your default route for 192.168.1.1:

route add default 192.168.1.1

Subscribe to the Tech-Recipes Newsletter

You can get tips like this delivered in your email every week!

Enter your Email

We will never, ever sell your email address or spam you.




1 Recipe comments: View comments

Change the default route in Solaris by zapman



Related recipes:

  Add a default route
  Get default route information
  Remove a virtual interface in Solaris
  Setting Solaris Network Tunable Parameters
  Check hme ethernet link speed, duplex, and status in Solaris
  View the routing table in Solaris
  Get MAC address without root
  Change the subnet mask of an interface
  Simple Solaris IP Multipathing
  Create a virtual interface in Solaris

 

Sponsored links

 

Login

Nickname

Password

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.