惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

C
Check Point Blog
罗磊的独立博客
博客园 - 叶小钗
Google DeepMind News
Google DeepMind News
Hugging Face - Blog
Hugging Face - Blog
人人都是产品经理
人人都是产品经理
J
Java Code Geeks
WordPress大学
WordPress大学
大猫的无限游戏
大猫的无限游戏
Blog — PlanetScale
Blog — PlanetScale
F
Fortinet All Blogs
小众软件
小众软件
M
MIT News - Artificial intelligence
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
酷 壳 – CoolShell
酷 壳 – CoolShell
The GitHub Blog
The GitHub Blog
A
About on SuperTechFans
Y
Y Combinator Blog
Recorded Future
Recorded Future
量子位
美团技术团队
S
Security @ Cisco Blogs
G
Google Developers Blog
Cyberwarzone
Cyberwarzone
C
Cybersecurity and Infrastructure Security Agency CISA
博客园 - 三生石上(FineUI控件)
博客园 - 司徒正美
D
Docker
S
Schneier on Security
T
Tor Project blog
阮一峰的网络日志
阮一峰的网络日志
T
Threatpost
P
Privacy & Cybersecurity Law Blog
C
Cisco Blogs
L
Lohrmann on Cybersecurity
NISL@THU
NISL@THU
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - 聂微东
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
T
The Exploit Database - CXSecurity.com
A
Arctic Wolf
I
Intezer
Latest news
Latest news
Martin Fowler
Martin Fowler
G
GRAHAM CLULEY
B
Blog
V
Vulnerabilities – Threatpost
The Register - Security
The Register - Security
S
Securelist
T
Tenable Blog

博客园 - Huntercat

手机流媒体技术介绍--转载 两个标签:EpiData和Nginx Ubuntu 8.10 Server Apache + SVN + SSL配置 Ubuntu install process show "dpkg was interrupted,you must manually run dpkg --configure -a to correct the problem" Ubuntu 8.10 Server Edition桌面系统的安装 ubuntu8.04做PXE安装服务器 通过PXE安装LINUX操作系统 NX远程连接认证失败的原因及解决方法 Ubuntu使用技巧 Ubuntu下文件移动|复制|打包|解包|挂载iso小结 Ubuntu下Reciteword的安装 SUN SL48磁带库总是离线的解决方案 Ubuntu下配置Telnet服务 Ubuntu下配置SSH服务 Ubuntu启动后死机 Xmanager远程连接Linux的配置 NX访问Ubuntu远程桌面配置 周末终于可以正常休息了 评估倒计时
solaris10 网络配置
Huntercat · 2008-12-02 · via 博客园 - Huntercat

安装完solaris后,默认是不能上网的,需要修改如下四个文件:

1.   /etc/hosts or /etc/inet/hosts
2.   /etc/resolv.conf 默认是没有的,需要手工添加
3. /etc/nsswitch.conf这个修改一下就ok
4. /etc/defaultrouter默认也是没有的,手工添加

详细如下:

1.编辑/etc/hosts文件,用过linux的朋友明白这步是什么意思的,只不过/etc/hosts文件是/etc/inet/hosts文件的一个软链接,如下所示:

#cd /etc

#ls -l hosts

lrwxrwxrwx 1 root     root       12 Jan   6 17:12 hosts -> ./inet/hosts

#cd   /etc/inet

#ls -l hosts

-r--r--r-- 1 root     sys       107 Jan   6 19:56 hosts

2.创建resolv.conf文件,加入dns服务器地址:

#vi /etc/resolv.conf

nameserver 202.101.172.48
nameserver 202.101.172.46

3.修改/etc/nsswitch.conf,只修改如下行:

hosts:    files dns

4.创建/etc/defaultrouter文件,加入网关地址:

#vi /etc/defaultrouter

192.168.1.1

到此结束。

现在,您就可以体验Solaris上网的乐趣了。