LinuxSir.cn,穿越时空的Linuxsir!

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

求助,刚装好debian,但不知道为什么上不了网

[复制链接]
发表于 2007-3-5 00:45:11 | 显示全部楼层 |阅读模式
我是下载了netinst.iso从硬盘安装的,之后可以正常启动,但不能上网.同样的网络设置在gentoo下就可以上网.
内网,静态ip,
interface:auto eth0
        iface eth0 inet static
        address 168.55.1.23
        netmask 255.255.255.0
        network 168.55.1.0
        broadcast 168.55.1.255
        gateway 168.55.1.155

resolv.conf:nameserver 202.98.0.68
                   nameserver 202.98.5.68

hosts:
127.0.0.1 localhost.localdomain localhost fake
168.55.1.23 fake.desktop fake

ifconfig显示:eth0      Link encap:Ethernet  HWaddr 00:0D:61:60:50:25  
          inet addr:168.55.1.23  Bcast:168.55.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:15 errors:0 dropped:0 overruns:0 frame:0
          TX packets:65 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1884 (1.8 KiB)  TX bytes:5581 (5.4 KiB)
          Interrupt:201

启动时有提示/etc/network/opertion is deprecated,让我读README .Debian 网络部分..
opertion文件内容:ip_forward=no
spoofprotect=yes
syncookies=no

在gentoo下dmesg能看见eth0: Yukon Gigabit Ethernet 10/100/1000Base-T Adapter(网卡)
在debian下dmesg能看见skge 1.6 addr 0xfb000000 irq 201 chip Yukon-Lite rev 7
skge eth0: addr 00:0d:61:60:50:25
skge eth0: enabling interface
skge eth0: Link is up at 100 Mbps, full duplex, flow control none

然后ping外网ping不通,ping网关没问题,但dns ping不通.
PING 202.98.0.68 (202.98.0.68) 56(84) bytes of data.

--- 202.98.0.68 ping statistics ---
6 packets transmitted, 0 received, 100% packet loss, time 5001ms

同样的设置,我在gentoo下就可以上网.
这是怎么回事阿?
发表于 2007-3-5 10:58:57 | 显示全部楼层
把路由表贴上来看看。
回复 支持 反对

使用道具 举报

发表于 2007-3-5 12:01:03 | 显示全部楼层
我的debian安装设置后上网正常
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-3-5 13:11:55 | 显示全部楼层
gentoo:
  1. Kernel IP routing table
  2. Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
  3. 168.55.1.0      0.0.0.0         255.255.255.0   U         0 0          0 eth0
  4. 127.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0 lo
  5. 0.0.0.0         168.55.1.115    0.0.0.0         UG        0 0          0 eth0
复制代码


debian:
  1. Kernel IP routing table
  2. Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
  3. 168.55.1.0      0.0.0.0         255.255.255.0   U         0 0          0 eth0
  4. 0.0.0.0         168.55.1.115    0.0.0.0         UG        0 0          0 eth0
复制代码


faint
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-3-5 13:16:44 | 显示全部楼层
interface:
  1. # The loopback network interface
  2. auto lo
  3. iface lo inet loopback
  4. address 127.0.0.1
  5. netmask 255.0.0.0
复制代码


这有错误么?
我该怎么弄?
回复 支持 反对

使用道具 举报

发表于 2007-3-5 14:44:26 | 显示全部楼层
路由表感觉没有问题呀,tracerout一下你的dns,看看有下一跳是否真的送给网关了。
回复 支持 反对

使用道具 举报

发表于 2007-3-5 15:01:39 | 显示全部楼层
先删除/etc/network/options
然后把/etc/network/interfaces换成下面的内容
auto lo
iface lo inet loopback

allow-hotplug eth0
iface eth0 inet static
        address 168.55.1.23
        netmask 255.255.255.0
        network 168.55.1.0
        broadcast 168.55.1.255
        gateway 168.55.1.155
        dns-nameservers 168.55.1.155

只是试试,不保证行。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-3-5 18:55:54 | 显示全部楼层
楼上朋友的方法也不行
traceroute还没装,呵呵,切来切去太麻烦,我又下载了个businesscard.iso重新装了一次,这回没问题了
多谢楼上两位
回复 支持 反对

使用道具 举报

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

本版积分规则

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