免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: ^日出东方^
打印 上一主题 下一主题

配好网卡的ip.defaultrouter.dns却不能上网 [复制链接]

论坛徽章:
0
11 [报告]
发表于 2007-09-05 16:52 |只看该作者

回复 #10 ^日出东方^ 的帖子

show me the /etc/nsswitch.conf file,
host file dns

论坛徽章:
0
12 [报告]
发表于 2007-09-05 17:03 |只看该作者

回复 #11 Jion 的帖子

# cat /etc/nsswitch.conf
#
# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# ident "@(#)nsswitch.files     1.14    06/05/03 SMI"

#
# /etc/nsswitch.files:
#
# An example file that could be copied over to /etc/nsswitch.conf; it
# does not use any naming service.
#
# "hosts:" and "services:" in this file are used only if the
# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.

passwd:     files
group:      files
hosts:      files dns
ipnodes:    files
networks:   files
protocols:  files
rpc:        files
ethers:     files
netmasks:   files
bootparams: files
publickey:  files
# At present there isn't a 'files' backend for netgroup;  the system will
#   figure it out pretty quickly, and won't use netgroups at all.
netgroup:   files
automount:  files
aliases:    files
services:   files
printers:       user files

auth_attr:  files
prof_attr:  files
project:    files

tnrhtp:     files
tnrhdb:     files
我已设更过了有问题吗

论坛徽章:
0
13 [报告]
发表于 2007-09-05 17:07 |只看该作者

solaris配置上网

第一步:配置网关
    #vi /etc/defaultrouter
    内容如下:
    #gateway adress
    192.168.0.1(换为你的网关地址)
    保存退出;

  第二步:配置DNS

   #vi /etc/nsswitch.conf
   将        hosts:      files
   修改为  hosts:      files dns
   保存退出;

   #vi /etc/resolv.conf
   内容如下:
   #nameserver adress
   nameserver 202.98.0.68 (换为你的DNS)
   nameserver 202.98.5.68(换为你的DNS)
   保存退出。

  第三步:测试
  
  #ping 202.98.0.68
  如果返回202.98.0.68 is alive就表示设置成功,打开浏览器就可以上网了

论坛徽章:
0
14 [报告]
发表于 2007-09-05 17:13 |只看该作者

回复 #13 sxxzq 的帖子

这些我已经设好了你可看1楼我贴的

论坛徽章:
0
15 [报告]
发表于 2007-09-06 11:44 |只看该作者
为何我的用命令行配置临时的IP和网关就能正常和局域通信,而且上网也正常,但是写到配置文件就是连局域网都不通

论坛徽章:
0
16 [报告]
发表于 2008-01-01 20:58 |只看该作者

回复 #15 ^日出东方^ 的帖子

我也遇到这个问题!

本来配置好了VMnet8 192.168.0.2
然后临时配置好了ifconfig vmxnet0 192.168.0.3就可以上了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP