This topic has been archived. It cannot be replied.
-
工作学习 / IT技术讨论 / 请教一个linux下网络配置的技术问题。一台机器装了linux redhat 7.3,网络怎么也配不上去。在ifcfg-eth0中,无论是把ip地址设成动态的还是静态的都不行。hub的灯亮,且这台机器能ping通自己的地址,但其他任何地址都不行,包括gateway的。这是什么道理?还有什么其他地方需要配置的么?谢谢高手指点。
-jqian(Q_Q);
2002-8-6
{244}
(#677226@0)
-
你用的什么网卡?网卡模块加载了没有?什么叫做能PING通自己的地址?PING 127.0.0.1?
-mengo(芒果);
2002-8-6
(#678178@0)
-
当然不是127.0.0.1啦,这个地址没有网卡都能ping的。是router内部分配的一个实实在在的地址,比如192.168.0.20,但是除了这个地址,其他地址一律不通,而hub上的那个等还是亮的。
-jqian(Q_Q);
2002-8-6
(#678301@0)
-
go download a tcpdump kinda stuff
-falcon(令狐葱@胖头鱼);
2002-8-6
(#678182@0)
-
我装好Redhat 7.3,什么也没配置,网络通的.你网卡是不是很老啊?
-rabbitbug(兔八哥);
2002-8-6
(#678185@0)
-
应该不算太老,好像是3com的。除了一个ifcfg-eth0文件需要配置外,还有其他什么地方没有?我这个机器只有文本模式,没有x-windows。
-jqian(Q_Q);
2002-8-6
(#678305@0)
-
好象还有几个文件, 最好在网上搜一下, 这方面文章很多/etc/modules.conf, /etc/hostname, /etc/host.conf, /etc/sysconfig/network, /etc/hosts
-alohamac(aloha);
2002-8-6
{84}
(#678374@0)
-
试试netconf命令(不同linux版本该命令可能不同)去配置网络,设置路由IP和自身IP.
-bill_hu(huhu);
2002-8-6
(#678405@0)
-
Mostly the module for the network card is not correct version. Check on the internet to see what kind of module file you need for your card. Old 3com card needs different driver.
-aiattendant(创业soho.aimoo.com);
2002-8-7
(#678640@0)
-
You network cad and module seems work. Maybe you need a default GATEWAY. Please have a look of /etc/sysconfig/network
-mengo(芒果);
2002-8-7
(#679667@0)
-
什么叫做default gateway?和gateway什么区别?
-jqian(Q_Q);
2002-8-7
(#679867@0)
-
gateway在ifcfg-eth0中已经设置了,还有其他什么地方需要设的么?
-jqian(Q_Q);
2002-8-7
(#679881@0)
-
/etc/sysconfig/network has default gateway setting line
-mengo(芒果);
2002-8-7
(#680415@0)
-
你所指的这个network文件是空的,如何加入default gw?语法如何?
-jqian(Q_Q);
2002-8-7
(#680442@0)
-
Post my network file here. It's just a suggestion. Maybe it work, maybe not. Please read other guy's comments carefully. Linux have too many configurations everywhere. It's very easy to get your machine weird.Don't ask me post any more stuff, otherwise I'll post my root password on the website!
NETWORKING=yes
FORWARD_IPV4="no"
HOSTNAME="xxxxxx"
DOMAINNAME=localdomain
GATEWAY="192.168.0.1"
GATEWAYDEV="eth0"
-mengo(芒果);
2002-8-8
{218}
(#680549@0)
-
thank you very much. I will try it now
-jqian(Q_Q);
2002-8-8
(#680557@0)
-
哎,刚试了,还是不行。ip地址设为192.168.0.2,gateway设置也正确,ping的时候只通自己的地址,其他的一概destination unreachable。昏倒!
-jqian(Q_Q);
2002-8-8
(#680584@0)
-
If the machine can not ping others, gateway is no use.
-aiattendant(创业soho.aimoo.com);
2002-8-7
(#680417@0)