发新话题
打印

我的网卡卡驱动安装好了,但是连不了网?

我的网卡卡驱动安装好了,但是连不了网?

我的显卡驱动安装好了,但是连不了网?
我的网卡是3c905c,驱动已经安装好,但是用ifconfig配置ip和网关后还是联不到局域网,ping其他机不起作用,为什么会这样,需要怎样配置才能联上局域网??

      

TOP

ping 一下本地网卡的ip,如不通,还是网卡与驱动的问题。
我的intel pro1000网卡也一样。      

TOP

能ping通本地局域网,但是就是连不上internet      

TOP

用netstat -i检测网关是否正确还有dns      

TOP

这是我的网卡的配置:

------------------------------------------# cat hosts
----------------------------------------
127.0.0.1localhostloghost eda2000
192.168.0.101 3com loghost
--------------------------------------------
# cat hostname.elbc0
--------------------------------------------
3com
# ifconfig -a
lo0: flags=1000849 mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
elbc0: flags=1000843 mtu 1500 index 2
inet 192.168.0.101 netmask ffffff00 broadcast 192.168.0.255
ether 0:1:2:20:93:74
--------------------------------------------
# cat nsswitch.conf
--------------------------------------------
#
# /etc/nsswitch.nis:
#
# An example file that could be copied over to /etc/nsswitch.conf; it
# uses NIS (YP) in conjunction with files.
#
# "hosts:" and "services:" in this file are used only if the
# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.

# the following two lines obviate the "+" entry in /etc/passwd and /etc/group.
passwd: files nis
group: files nis

# consult /etc "files" only if nis is down.
hosts: dns files 《===这里这样设置对吗?还是用一个具体的ip地址来代替dns呢?
ipnodes: files
# Uncomment the following line and comment out the above to resolve
# both IPv4 and IPv6 addresses from the ipnodes databases. Note that
# IPv4 addresses are searched in all of the ipnodes databases before
# searching the hosts databases. Before turning this option on, consult
# the Network Administration Guide for more details on using IPv6.
#ipnodes: nis [NOTFOUND=return] files

networks: nis [NOTFOUND=return] files
protocols: nis [NOTFOUND=return] files
rpc: nis [NOTFOUND=return] files
ethers: nis [NOTFOUND=return] files
netmasks: nis [NOTFOUND=return] files
bootparams: nis [NOTFOUND=return] files
publickey: nis [NOTFOUND=return] files

netgroup: nis

automount: files nis
aliases: files nis

# for efficient getservbyname() avoid nis
services: files nis
sendmailvars: files
printers:user files nis

auth_attr: files nis
prof_attr: files nis
---------------------------------------------
# cat netmasks
--------------------------------------------
192.168.0.0 255.255.255.0
---------------------------------------------
# netstat -nr
--------------------------------------------
Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
192.168.0.0 192.168.0.101 U 1 1 elbc0
224.0.0.0 127.0.0.1 U 1 0 lo0
default 192.168.0.1 UG 1 0
127.0.0.1 127.0.0.1 UH 17 1117 lo0
---------------------------------------------
# cat defaultrouter
192.168.0.1


能ping通局域网里的机,但是就是连不上网,是不是因为我的配置出问题了??
我要设置DNS和网关都是192.168.0.1但是好象不行,请问要怎样设置呢?      

TOP

我的也是3com905c ,但是

ifconfig -a 和你不一样.


elxl0      
ftp://ftp.xjtu.edu.cn/pub/ <---好多书 http://www.planetmirror.com/pub/ <---很好! http://www.linuxiso.org, ftp://202.115.39.70 , ftp://166.111.136.2, ftp://166.111.121.3, <--含Solaris8 02/02 ftp://ftp.kando.hu/pub/CDROM-Images/ __________________ -忆昔西池池上饮,年年多少欢娱。 -别来不寄一行书,寻常相见了,犹道不如初。 -安稳锦屏今夜梦,月明好渡江湖。 -相思休问定何如。 -情知春去后,管得落花无。 -人生本是一个梦,春花秋月无奈何。

TOP

不会吧?难道我的是假货??我买的是别人从原装机拆下来的。。。      

TOP

发新话题