- 论坛徽章:
- 0
|
本帖最后由 jerrybond 于 2011-10-05 17:25 编辑
只是昨天忽忙中把/etc/network/interfaces 替换成重装Debian以前的interfaces,忘记备份了,再也上不了网了。
补充:
1.这是第n次重装了,通过宽带从网上安装,自动配好interfaces成开机宽带上网,装好后(没有pppoeconf命令),与安装pppoeconf生成的文件有些出入如在/etc/ppp/peers/provider而不是dsl-provider
2.我目前的interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
address 192.168.0.50
netmask 255.255.255.0
#network 192.168.0.0
#broadcast 192.168.0.255
gateway 192.168.0.250
3. 我手工输入pon provider提示Plugin rp-pppoe.so loaded. ping www.baidu.com不通
然后是以下的故事:
root@debian:/home/jerry# ifconfig
eth0 Link encap:Ethernet HWaddr 20:cf:30:08:a4:5c
inet addr:192.168.0.50 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::22cf:30ff:fe08:a45c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:47 errors:0 dropped:0 overruns:0 frame:0
TX packets:167 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5721 (5.5 KiB) TX bytes:15924 (15.5 KiB)
Interrupt:27 Base address:0x4000
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:202 errors:0 dropped:0 overruns:0 frame:0
TX packets:202 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:30964 (30.2 KiB) TX bytes:30964 (30.2 KiB)
ppp0 Link encap oint-to-Point Protocol
inet addr:119.191.184.68 P-t-P:119.191.184.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:40 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:4357 (4.2 KiB) TX bytes:54 (54.0 B)
wlan0 Link encap:Ethernet HWaddr 1c:4b:d6:cd:f8:8b
UP BROADCAST 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)
root@debian:/home/jerry# ping 119.191.184.68
PING 119.191.184.68 (119.191.184.6 56(84) bytes of data.
64 bytes from 119.191.184.68: icmp_req=1 ttl=64 time=0.035 ms
64 bytes from 119.191.184.68: icmp_req=2 ttl=64 time=0.029 ms
^C
--- 119.191.184.68 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.029/0.032/0.035/0.003 ms
root@debian:/home/jerry# ping 119.191.184.1
PING 119.191.184.1 (119.191.184.1) 56(84) bytes of data.
64 bytes from 119.191.184.1: icmp_req=1 ttl=255 time=0.961 ms
64 bytes from 119.191.184.1: icmp_req=2 ttl=255 time=0.742 ms
^C
--- 119.191.184.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 0.742/0.851/0.961/0.113 ms
root@debian:/home/jerry# ping 61.135.169.105
PING 61.135.169.105 (61.135.169.105) 56(84) bytes of data.
From 192.168.0.50 icmp_seq=2 Destination Host Unreachable
From 192.168.0.50 icmp_seq=3 Destination Host Unreachable
From 192.168.0.50 icmp_seq=4 Destination Host Unreachable
From 192.168.0.50 icmp_seq=5 Destination Host Unreachable
From 192.168.0.50 icmp_seq=6 Destination Host Unreachable
^C
--- 61.135.169.105 ping statistics ---
7 packets transmitted, 0 received, +5 errors, 100% packet loss, time 6032ms
pipe 3
安装pppoeconf、重启也不行.
发错版块了,不好意思,但是还是请帮帮忙 |
|