怎样设置Solaris上网
2013-09-03 17:46
197 查看
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
------------------------------------------------
最后,网卡进行重新启动。
无效 ifconfig hme1 down
有效 ifconfig hme1 up
其中hme1是网卡的名字。 使用ifconfig -a可以看到网卡的信息。
【发表评论】 【查看原文】 【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 中怎样设置上网?
- xp或win7等操作系统的电脑怎样共享网路上网设置-----图解 netsh命令怎样修改本地计算机网路设置
- solaris上网设置
- 怎样设置双网卡上网?
- G1怎样设置WAP上网
- Solaris的X-window设置和上网设置
- ubuntu怎样设置代理上网?以下介绍常用的两种方法
- 路由器WIFI上网怎样设置固定IP
- solaris 9 x86网卡设置上网
- solaris下上网设置
- 在linux下怎样修改Oracle(客户端)语言设置
- 怎样设置DBGrid标题行、所选记录行的行高度和行背景颜色,所选列宽度
- virtualbox虚拟机系统网卡设置,既能上网,又能独立ip相互访问
- vmware上得linux下上网得设置
- 转 -- Linux系列:Ubuntu虚拟机设置固定IP上网(配置IP、网关、DNS、防止resolv.conf被重写)
- WiFi上网设置方法(含无路由情况下共享宽带设置方法)
- VMware下最小化安装centos 7 后上网设置
- 怎样设置powershell的远程
- 微软控件telerik report中怎样设置分页