Chinaunix首页 | 论坛 | 博客
  • 博客访问: 167651
  • 博文数量: 68
  • 博客积分: 1410
  • 博客等级: 上尉
  • 技术积分: 650
  • 用 户 组: 普通用户
  • 注册时间: 2005-05-18 11:13
文章分类

全部博文(68)

文章存档

2011年(1)

2006年(21)

2005年(46)

我的朋友

分类:

2005-05-18 13:10:04

How to set default route in Solaris - -

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
阅读(792) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~