红联Linux门户
Linux帮助

请教fedora9网络不能上网问题

发布时间:2010-10-11 10:53:43来源:红联作者:samble
我用的是虚拟机

网络连接标志显示小红叉

启动网络如下
[root@localman c]# /etc/init.d/network start
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: RTNETLINK answers: Invalid argument
[ OK ]
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists


重启过程
[root@localman c]# /etc/init.d/network restart
Shutting down interface eth0: [ OK ]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: RTNETLINK answers: Invalid argument
[ OK ]

配置文件

[root@localman c]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
DEVICE=eth0
BOOTPROTO=static
HWADDR=00:0c:29:d1:52:36
ONBOOT=yes
NM_CONTROLLED=no
TYPE=Ethernet
USERCTL=no
PEERDNS=yes
IPV6INIT=no
NETMASK=255.255.255.0
IPADDR=192.168.1.1
GATEWAY=192.168.1.0


主机IP10.1.3.57
虚拟机ip是 自己设的:[root@localman c]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:D1:52:36
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fed1:5236/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:387 errors:0 dropped:0 overruns:0 frame:0
TX packets:149 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:38202 (37.3 KiB) TX bytes:21450 (20.9 KiB)
Interrupt:19 Base address:0x2024

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1759 errors:0 dropped:0 overruns:0 frame:0
TX packets:1759 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:91284 (89.1 KiB) TX bytes:91284 (89.1 KiB)

之前能上网的,但是弄那个samba服务,弄了好久都没成功,不知道上网会不会有关sexlinux这个文件,弄samba服务时设置过这个东西,还弄到连虚拟机都不能上网了,请教高人
文章评论

共有 4 条评论

  1. samble 于 2010-10-11 11:10:26发表:

    Bringing up interface eth0: [ OK ]
    RTNETLINK answers: File exists

  2. samble 于 2010-10-11 11:06:29发表:

    杯具了

  3. samble 于 2010-10-11 10:55:51发表:

    主机上网用的是校园局域网,所以IP不同于一般的192.168段

  4. samble 于 2010-10-11 10:54:28发表:

    坐等高人解答小弟的问题