// you’re reading...

How in the Tech

Setting the Default Route in Solaris

Setting the default route in Solaris is a rather painless process and chances are, you likely won’t be doing this very often. However, if you’ve made it to this article you must need some assistance, so here goes.

To temporarily set the default route, from the console use the syntax:

route add default ip_address where ip_address is your router or gateway of the network

You can verify that your change has taken place by using the netstat -r command. You should see your ip_address above on the line labelled default.

To ensure that the route remains defined between reboots you need to edit or create the file /etc/defaultrouter. From the console:

echo ip_address > /etc/defaultrouter

Routes can be changed on the fly but be careful if you are making these changes remotely. A fat finger could take your system completely offline.

Related Posts with Thumbnails

Discussion

No comments for “Setting the Default Route in Solaris”

Post a comment