免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3409 | 回复: 4
打印 上一主题 下一主题

solaris10 X86 如何在(VMWARE)上网,麻烦大家帮忙. [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-08-23 16:34 |只看该作者 |倒序浏览
我是solaris新手,昨天才把系统装在VMWARE上,因为没有盘,只有在网上下的SAID的ISO文件,只能在VMWARE上装了.

我家里的真实的机器是普通的宽带上网,是自动获得IP.

公司的机器也是自动获得IP.

论坛徽章:
0
2 [报告]
发表于 2006-08-23 16:37 |只看该作者
vmware有手册,看看吧

论坛徽章:
0
3 [报告]
发表于 2006-08-24 13:47 |只看该作者
是不是应该选择NAT的连接方式啊,在VMWARE里都需要怎么设置啊?我都是自动获得的IP的环境.

论坛徽章:
0
4 [报告]
发表于 2006-08-24 16:04 |只看该作者
我也是用VM装solaris10的,新建虚拟机的时候要网络设置选择第一个桥接网络,然后在安装solaris时候设置一个ip地址,还有主机名,路由就是网关的地址。
我们公司的ip地址是固定的。所以分配给他一个地址就好了。

论坛徽章:
0
5 [报告]
发表于 2006-08-24 16:07 |只看该作者
好像也是这里的一个文章,记不得是谁写的。我试过多次,屡用屡爽。

============
怎样设置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

router 192.168.0.1
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP