红联Linux门户
Linux帮助

adsl可以拨号 除了isp的ip 我什么都不能ping通

发布时间:2006-06-21 23:09:28来源:红联作者:doudoushen
1\ 我把我的配置给大家看下 有什么错误没有

adsl-start
ifconfig明令:
eth0 Link encap:Ethernet HWaddr 00:05:5D:0D:24:B7
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:13 errors:0 dropped:0 overruns:0 frame:0
TX packets:43 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:790 (790.0 b) TX bytes:2580 (2.5 Kb)
Interrupt:5 Base address:0xae00

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:5719 errors:0 dropped:0 overruns:0 frame:0
TX packets:5719 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:390826 (381.6 Kb) TX bytes:390826 (381.6 Kb)

ppp0 Link encap:Point-to-Point Protocol
inet addr:222.70.117.147 P-t-P:218.1.60.226 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:78 (78.0 b) TX bytes:30 (30.0 b)

resolv.conf文件
nameserver 202.96.209.133
nameserver 202.96.209.6
search localdomain

network文件
NETWORKING=yes
HOSTNAME=localhost.localdomain

hosts 文件
#Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost localhost.localdomain

2\ 从ifconfig中看出,我已经可以拨号了,但是"网络设备控制"没有ppp0这一项 不知道这个会影响上网么
文章评论

共有 3 条评论

  1. dreamfly104 于 2006-06-26 09:55:00发表:

    怎么没有 ppp0那,装一个不行吗?

  2. mzg 于 2006-06-23 08:14:58发表:

    首先你的默认网关有问题,在一个你的network-scripts里怎么没有ifcfg-ppp0,你的默认网关应该是ppp0中的p-t-p.
    你先把ifcfg-eth0:1 down掉,以免出现别的错误,然后执行
    ip route add 0/0 via 1.2.3.4(也就是ppp0种的p-t-p),再看看能不能ping出去

  3. doudoushen 于 2006-06-22 21:46:03发表:

    现在我又作了如下测试
    [root@localhost root]# ping 202.96.209.133
    PING 202.96.209.133 (202.96.209.133) 56(84) bytes of data.
    From 192.168.0.1 icmp_seq=1 Destination Host Unreachable
    From 192.168.0.1 icmp_seq=2 Destination Host Unreachable
    From 192.168.0.1 icmp_seq=3 Destination Host Unreachable
    From 192.168.0.1 icmp_seq=4 Destination Host Unreachable
    From 192.168.0.1 icmp_seq=5 Destination Host Unreachable
    From 192.168.0.1 icmp_seq=6 Destination Host Unreachable


    [root@localhost root]# netstat -r
    Kernel IP routing table
    Destination Gateway Genmask Flags MSS Window irtt Iface
    218.1.60.226 * 255.255.255.255 UH 0 0 0 ppp0
    192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
    169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
    127.0.0.0 * 255.0.0.0 U 0 0 0 lo
    default 192.168.0.254 0.0.0.0 UG 0 0 0 eth0



    还有 /etc/sysconfig/network-scripts/ 用 ls -l 得到

    ot@localhost network-scripts]# ls
    ifcfg-eth0 ifdown-ippp ifdown-sl ifup-isdn ifup-sit
    ifcfg-eth0:1 ifdown-ipv6 ifup ifup-plip ifup-sl
    ifcfg-lo ifdown-isdn ifup-aliases ifup-plusb ifup-wireless
    ifcfg-ppp0.bak ifdown-post ifup-ippp ifup-post init.ipv6-global
    ifdown ifdown-ppp ifup-ipv6 ifup-ppp network-functions
    ifdown-aliases ifdown-sit ifup-ipx ifup-routes network-functions-ipv6