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

本文介绍了解决Solaris系统中新安装后无法从本地Telnet到服务器的问题。通过配置`/etc/defaultrouter`文件并重启系统,或者立即删除当前默认路由并设置新的默认路由来解决此问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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

——————

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

 

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

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

 

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

 

【另附】

 

 

【参考】

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

 

solaris安装gcc,g++,gdb等工具 包含以下安装包 libexpat1-2.1.0,REV=2013.01.01-SunOS5.10-i386-CSW.pkg.gz bash-4.3.33,REV=2015.02.15-SunOS5.10-i386-CSW.pkg.gz libgcc_s1-4.8.0,REV=2013.03.29-SunOS5.10-i386-CSW.pkg.gz binutils-2.23.1,REV=2012.12.04-SunOS5.10-i386-CSW.pkg.gz libgmp10-6.0.0,REV=2014.10.29-SunOS5.10-i386-CSW.pkg.gz cas_etcshells-1.50,REV=2015.01.17-SunOS5.10-all-CSW.pkg.gz libiconv2-1.14,REV=2012.11.19-SunOS5.10-i386-CSW.pkg.gz cas_texinfo-1.50,REV=2015.01.17-SunOS5.10-all-CSW.pkg.gz libintl8-0.18.1.1,p,REV=2011.03.15-SunOS5.9-i386-CSW.pkg.gz common-1.7,REV=2012.11.24-SunOS5.10-all-CSW.pkg.gz libintl9-0.19.8,REV=2016.09.07-SunOS5.10-i386-CSW.pkg.gz expat-2.1.0,REV=2013.01.01-SunOS5.10-i386-CSW.pkg.gz liblzma5-5.0.4,REV=2013.01.01-SunOS5.10-i386-CSW.pkg.gz gcc4ada-4.8.0,REV=2013.03.29-SunOS5.10-i386-CSW.pkg.gz libmpc3-1.0.2,REV=2014.03.17-SunOS5.10-i386-CSW.pkg.gz gcc4core-4.8.0,REV=2013.03.29-SunOS5.10-i386-CSW.pkg.gz libmpfr4-3.1.2,REV=2014.03.18-SunOS5.10-i386-CSW.pkg.gz gcc4g++-4.8.0,REV=2013.03.29-SunOS5.10-i386-CSW.pkg.gz libncurses5-5.9,REV=2011.11.21-SunOS5.9-i386-CSW.pkg.gz gcc4gfortran-4.8.0,REV=2013.03.29-SunOS5.10-i386-CSW.pkg.gz libpcap1-1.5.2,REV=2014.01.01-SunOS5.10-i386-CSW.pkg.gz gcc4java-4.8.0,REV=2013.03.29-SunOS5.10-i386-CSW.pkg.gz libpcap_dev-1.5.2,REV=2014.01.01-SunOS5.10-i386-CSW.pkg.gz gcc4objc-4.8.0,REV=2013.03.29-SunOS5.10-i386-CSW.pkg.gz libpython2_6_1_0-2.6.9,REV=2016.03.03-SunOS5.10-i386-CSW.pkg.gz gdb-7.6,REV=2013.08.14-SunOS5.10-i386-CSW.pkg.gz libreadline6-6.3,REV=2015.10.19-SunOS5.10-i386-CSW.pkg.gz gdb-7.7,REV=2014.02.09-SunOS5.10-i386-CSW.pkg.gz libz1-1.2.8,REV=2013.09.23-SunOS5.10-i386-CSW.pkg.gz iconv_stub-1.14,REV=2011.08.08-SunOS5.9-all-CSW.pkg.gz isaexec-0.2,REV=2009.03.26-SunOS5.8-all-CSW.pkg python-2.6.9,REV=2016.03.03-SunOS5.10-i386-CSW.pkg.gz libexpat0-1.95.8,REV=2011.07.15-SunOS5.9-i386-CSW.pkg.gz
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值