怎样设置Solaris上网
来源:互联网 发布:北风大数据 编辑:程序博客网 时间:2024/05/17 08:02
http://www.chinaunix.net 作者:Benajmin 发表于:2005-09-27 23:35:14
【发表评论】 【查看原文】 【Solaris讨论区】【关闭】
I find there are many guys don't know how to setup files to connected to internet and ask the same question again and again. So, I post my configuration file here for those who need reference for internet set up. Hopefully this can help some one a little.
OK, basicly there are 4 file you have to config at Solaris to go to internet:
1. /etc/hosts or /etc/inet/hosts
2. /etc/resolv.conf
3. /etc/nsswitch.conf
4. /etc/defaultrouter
What i have to say is that the files /etc/resolv.conf and /etc/defaultrouter are not existed by default system installation. you have to create that 2 file when you need setup internet.
The following are my configuration file: (192.168.0.3 is my solaris 9 system and 192.168.0.1 is the machine of Windows 2000/XP which has 2 network interfice, one connected to internet by 24.101.186.193 and one connected to solaris9 by interfice 192.168.0.1. You have to choose to share internet for the interface that connected to internet at windows as you have)
Cat /etc/hosts
127.0.0.1 localhost
192.168.0.3 lion loghost
192.168.0.1 router
---------------------------------------------
vi /etc/resolv.conf
nameserver 192.168.0.1
-----------------------------------------------
vi /etc/nsswitch.conf
hosts: files dns
-----------------------------------------------
vi /etc/defaultrouter
192.168.0.1
------------------------------------------------
【发表评论】 【查看原文】 【Solaris讨论区】【关闭】
I find there are many guys don't know how to setup files to connected to internet and ask the same question again and again. So, I post my configuration file here for those who need reference for internet set up. Hopefully this can help some one a little.
OK, basicly there are 4 file you have to config at Solaris to go to internet:
1. /etc/hosts or /etc/inet/hosts
2. /etc/resolv.conf
3. /etc/nsswitch.conf
4. /etc/defaultrouter
What i have to say is that the files /etc/resolv.conf and /etc/defaultrouter are not existed by default system installation. you have to create that 2 file when you need setup internet.
The following are my configuration file: (192.168.0.3 is my solaris 9 system and 192.168.0.1 is the machine of Windows 2000/XP which has 2 network interfice, one connected to internet by 24.101.186.193 and one connected to solaris9 by interfice 192.168.0.1. You have to choose to share internet for the interface that connected to internet at windows as you have)
Cat /etc/hosts
127.0.0.1 localhost
192.168.0.3 lion loghost
192.168.0.1 router
---------------------------------------------
vi /etc/resolv.conf
nameserver 192.168.0.1
-----------------------------------------------
vi /etc/nsswitch.conf
hosts: files dns
-----------------------------------------------
vi /etc/defaultrouter
192.168.0.1
------------------------------------------------
最后,网卡进行重新启动。
无效 ifconfig hme1 down
有效 ifconfig hme1 up
其中hme1是网卡的名字。 使用ifconfig -a可以看到网卡的信息。
- 怎样设置Solaris上网
- 在solaris 10 中怎样设置上网?
- solaris下上网设置
- solaris上网设置
- solaris 9 x86网卡设置上网
- 怎样设置双网卡上网?
- G1怎样设置WAP上网
- Solaris的X-window设置和上网设置
- 路由器WIFI上网怎样设置固定IP
- Solaris adsl上网
- Solaris ADSL上网
- 解决Solaris不能上网
- 配置solaris上网
- Solaris 上网配置
- solaris 10 无法上网解决办法
- Solaris 10 X86 上网配置
- 在Solaris中使用NAT上网
- VMware solaris 10 无法上网解决办法
- 一步一步教你做ios推送
- 我们在囧途之我要投诉你
- vim session 配置
- Sql语句优化原则
- C++ 时间函数gmtime、gmtime_r、localtime、localtime_r
- 怎样设置Solaris上网
- e2.2b
- aapt 使用
- java调用python脚本方法
- 【整理】Android之项目推荐使用的第三方库,有助于快速开发
- linux中c++时间时区简介
- 从C到C++
- 大话PHP之性能
- Exercises 3.3 E7