免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3372 | 回复: 0

用vmware6.5.2安装完solaris10后怎样找到网卡 [复制链接]

论坛徽章:
0
发表于 2009-11-16 09:52 |显示全部楼层
vmware版本:6.5.2build-156735
solaris版本:solaris10 (sunos 5.10)

安装完solaris后,查看网卡 ifconfig -a 只能看到lo0网卡
# ifconfig -a
lo0: flags=2001000849 mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000

1.执行 ifconfig -a plumb  等待一段时间
# ifconfig -a plumb

2.再执行 ifconfig -a 会看到新网卡
# ifconfig -a
lo0: flags=2001000849 mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
e1000g0: flags=1000842 mtu 1500 index 2
        inet 0.0.0.0 netmask 0
        ether 0:c:29:80:9d:26

获取动态ip地址
# ifconfig e1000g0 dhcp

再生成下面2个文件,西次启动会自动获得ip地址
# touch /etc/hostname.e1000g0        #激活网卡
# touch /etc/dhcp.e1000g0            #连接dhcp服务器的一些参数

查看当前dhcp状态
# ifconfig e1000g0 dhcp status

使主机不接受DCHP指派的主机名
1.新建/etc/nodename,在里面写入hostname(主机名)

2.然后设置dhcp参数列表,使主机不接受DCHP指派的主机名.参数列表文件在/etc/default/dhcpagent

reboot之前, 用一下sys-unconfig,这样重启后马上重新设置,就可以在每次启动之后自动由dchp激活你的网卡,不用任何操作就能直接上网了

设置静态ip地址
主机名 vi /etc/nodename
s10

ip地址对应主机名 vi /etc/inet/hosts
192.168.1.100 s10 loghost

ip地址 vi /etc/hostname.e1000g0
192.168.1.100              

网络掩码 vi /etc/inet/netmask
192.168.1.0 255.255.255.0

默认网关 vi /etc/defaultrouter
192.168.1.1

dns服务器 vi /etc/resolv.conf
nameserver:202.106.0.20

设置临时ip
ifconfig e1000g0 192.168.1.00/24
route add default 192.168.1.1
domainname 202.106.0.20


参考:
http://cool.worm.blog.163.com/blog/static/64339006200971505719253/


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/28814/showart_2095333.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP