LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 864|回复: 3

fc8上不了网了

[复制链接]
发表于 2007-11-17 17:09:36 | 显示全部楼层 |阅读模式
刚装的fc8,但是上不了网,具体情况是:
用路由器上网,dhcp自动获取ip和dns等
windows下一切正常,ip获得192.168.1.7/24,dns,网关192.168.1.1
linux下,dhcp超时无法获得地址,手动配上和windows下一样的,还是上不了
ping 127.0.0.1可通,ping网关不通
防火墙selinux都关了
 楼主| 发表于 2007-11-17 18:09:56 | 显示全部楼层
[root@localhost ~]#
[root@localhost ~]# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:11:2F:26:FA:04
          inet addr:192.168.1.7  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::211:2fff:fe26:fa04/64 Scopeink
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:19 Base address:0x8800

lo        Link encapocal 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:1511 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1511 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2859626 (2.7 MiB)  TX bytes:2859626 (2.7 MiB)








@localhost ~]# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
From 192.168.1.7 icmp_seq=2 Destination Host Unreachable
From 192.168.1.7 icmp_seq=3 Destination Host Unreachable
From 192.168.1.7 icmp_seq=4 Destination Host Unreachable

--- 192.168.1.1 ping statistics ---
6 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4999ms
, pipe 3
[root@localhost ~]#      






[root@localhost ~]# ping 127.0.0.1
PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.080 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.056 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.054 ms
64 bytes from 127.0.0.1: icmp_seq=4 ttl=64 time=0.055 ms

--- 127.0.0.1 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3000ms
rtt min/avg/max/mdev = 0.054/0.061/0.080/0.012 ms
[root@localhost ~]#                    




t ~]# lspci
00:00.0 Host bridge: Intel Corporation 82852/82855 GM/GME/PM/GMV Processor to I/O Controller (rev 02)
00:00.1 System peripheral: Intel Corporation 82852/82855 GM/GME/PM/GMV Processor to I/O Controller (rev 02)
00:00.3 System peripheral: Intel Corporation 82852/82855 GM/GME/PM/GMV Processor to I/O Controller (rev 02)
00:02.0 VGA compatible controller: Intel Corporation 82852/855GM Integrated Graphics Device (rev 02)
00:02.1 Display controller: Intel Corporation 82852/855GM Integrated Graphics Device (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 83)
00:1f.0 ISA bridge: Intel Corporation 82801DBM (ICH4-M) LPC Interface Bridge (rev 03)
00:1f.1 IDE interface: Intel Corporation 82801DBM (ICH4-M) IDE Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller (rev 03)
00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 03)
00:1f.6 Modem: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Modem Controller (rev 03)
01:03.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev ac)
01:03.1 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev ac)
01:03.2 FireWire (IEEE 1394): Ricoh Co Ltd R5C552 IEEE 1394 Controller (rev 04)
01:04.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
01:05.0 Network controller: Intel Corporation PRO/Wireless 2200BG Network Connection (rev 05)
[root@localhost ~]#







[root@localhost ~]# lsmod
Module                  Size  Used by
vfat                   13249  1
fat                    45277  1 vfat
i915                   23745  2
drm                    67028  3 i915
autofs4                20421  2
sunrpc                140765  1
nf_conntrack_ipv4      11717  12
ipt_REJECT              7617  2
iptable_filter          6465  1
ip_tables              14213  1 iptable_filter
nf_conntrack_ftp       10977  0
nf_conntrack_ipv6      18769  12
xt_state                6081  24
nf_conntrack           51977  4 nf_conntrack_ipv4,nf_conntrack_ftp,nf_conntrack_ipv6,xt_state
nfnetlink               8281  3 nf_conntrack_ipv4,nf_conntrack_ipv6,nf_conntrack
xt_tcpudp               6977  28
ip6t_ipv6header         6209  2
ip6t_REJECT             8257  2
ip6table_filter         6337  1
ip6_tables             15109  2 ip6t_ipv6header,ip6table_filter
x_tables               14277  7 ipt_REJECT,ip_tables,xt_state,xt_tcpudp,ip6t_ipv6header,ip6t_REJECT,ip6_tables
ib_iser                30997  0
rdma_cm                25585  1 ib_iser
ib_cm                  29613  1 rdma_cm
iw_cm                  10949  1 rdma_cm
ib_sa                  19829  2 rdma_cm,ib_cm
ib_mad                 33493  2 ib_cm,ib_sa
ib_core                44481  6 ib_iser,rdma_cm,ib_cm,iw_cm,ib_sa,ib_mad
ib_addr                 9413  1 rdma_cm
iscsi_tcp              21953  0
libiscsi               21953  2 ib_iser,iscsi_tcp
scsi_transport_iscsi    26953  4 ib_iser,iscsi_tcp,libiscsi
loop                   16581  0
dm_mirror              21697  0
dm_multipath           18249  0
dm_mod                 46465  2 dm_mirror,dm_multipath
ipv6                  245989  14 nf_conntrack_ipv6,ip6t_REJECT
snd_intel8x0m          16845  1
snd_seq_dummy           6725  0
snd_intel8x0           30429  1
snd_ac97_codec         92389  2 snd_intel8x0m,snd_intel8x0
ac97_bus                6081  1 snd_ac97_codec
snd_seq_oss            29889  0
snd_seq_midi_event      9793  1 snd_seq_oss
snd_seq                44849  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device         10061  3 snd_seq_dummy,snd_seq_oss,snd_seq
ipw2200               134665  0
8139too                24513  0
firewire_ohci          18113  0
firewire_core          36097  1 firewire_ohci
ieee80211              30985  1 ipw2200
8139cp                 21697  0
snd_pcm_oss            37569  0
mii                     8385  2 8139too,8139cp
crc_itu_t               6081  1 firewire_core
ieee80211_crypt         8513  1 ieee80211
snd_mixer_oss          16705  3 snd_pcm_oss
snd_pcm                63685  4 snd_intel8x0m,snd_intel8x0,snd_ac97_codec,snd_pcm_oss
video                  19921  0
iTCO_wdt               13797  0
battery                14025  0
ac                      8133  0
output                  6977  1 video
asus_laptop            18872  0
iTCO_vendor_support     7109  1 iTCO_wdt
button                 10321  0
snd_timer              20549  2 snd_seq,snd_pcm
snd                    43461  10 snd_intel8x0m,snd_intel8x0,snd_ac97_codec,snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
i2c_i801               12113  0
serio_raw               9029  0
i2c_core               21825  1 i2c_i801
soundcore               9633  3 snd
snd_page_alloc         11337  3 snd_intel8x0m,snd_intel8x0,snd_pcm
joydev                 11649  0
sg                     31965  0
sr_mod                 17509  0
cdrom                  33889  1 sr_mod
usb_storage            72961  0
ata_generic             8901  0
ata_piix               16709  3
libata                 99633  2 ata_generic,ata_piix
sd_mod                 27329  4
scsi_mod              119757  9 ib_iser,iscsi_tcp,libiscsi,scsi_transport_iscsi,sg,sr_mod,usb_storage,libata,sd_mod
ext3                  110665  1
jbd                    52457  1 ext3
mbcache                10177  1 ext3
uhci_hcd               23633  0
ohci_hcd               21445  0
ehci_hcd               31693  0
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]#
回复 支持 反对

使用道具 举报

发表于 2007-11-17 18:40:31 | 显示全部楼层
这样应该可以:cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=DHCP
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-11-17 18:53:00 | 显示全部楼层
是指开机激活eth0,dhcp获得地址吗?我设置成开机激活eth0,dhcp获得地址也不行
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表