您的位置:首页 > 其它

安装SUN5.10后,不能远程登录的问题

2010-05-26 20:42 197 查看
【前言】这是一个n久以前的问题,最近在处理过去的陈旧问题。从昨天到今天,真是不爽,代码出现了很低级的错误,搞的我都快神经了,那个合作方的同事还一脸无辜的样子。我有时候也揣测合作方同事的工作态度和方式方法,他们应该体会不到我们的压力,当然也就没有和我们一样的责任心吧。呵呵,但是合作方中也有高尚者,比如我一直怀念、但是已经离职的一个同事。

——————

现象是:新安装的sun5.10后,从本机不能telnet到服务器上

原因:没有配置defaultrouter这个文件,所以从本机无法路由到服务器。

系统默认是没有这个文件的,原因是solaris默认开启的是什么包转发的功能),这里面只需填写你的路由网关即可,一般是所在网段的*.*.*.254。

配置好这个文件后,reboot就可

【另附】

Change the default route in Solaris

【参考】

http://aoding.blog.51cto.com/226250/170748/

http://blog.chinaunix.net/u1/41327/showart_402151.html

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: