個Server 終於起返了
由於和記VDSL 上網問題,我是用Debian Sarge 做NAT server 上網,不過今天開始不能突然上不到網。以前用開的setting 未改過,而且用開也沒有問題。只是在Linux Server 不能夠上網,雖然我用ifconfig 可以?到ip ,但是ping 去其他地方(如yahoo.com / gmail.com) 只是resolve 到這個 Page (218.191.252.206)。看過plog 睇?好似有派到ip,不過上不到網。如果我將條cable 用winxp ,又上到網。
/etc/ppp/peers/dsl-provider
/etc/network/interfaces
plog 出來的Message
ifconfig 出來Message
/etc/resolv.conf
好彩在hklpg 搵到答案。
http://bbs.hklpg.org/viewtopic.php?t=7714&highlight=%A9M%B0O
/etc/ppp/peers/dsl-provider
noipdefault
usepeerdns
defaultroute
hide-password
lcp-echo-interval 20
lcp-echo-failure 3
connect /bin/true
noauth
persist
mtu 1492
noaccomp
default-asyncmap
plugin rp-pppoe.so eth0
user "username@hgcbroadband.com"
/etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
iface eth1 inet static
address 192.168.10.1
netmask 255.255.255.0
network 192.168.10.0
boardcast 192.168.10.255
auto dsl-provider
iface dsl-provider inet ppp
provider dsl-provider
pre-up /sbin/ifconfig eth0 up
plog 出來的Message
Jul 31 16:07:58 linux pppd[2952]: Plugin rp-pppoe.so loaded.
Jul 31 16:07:58 linux pppd[2954]: pppd 2.4.3 started by root, uid 0
Jul 31 16:08:00 linux pppd[2954]: PPP session is 141
Jul 31 16:08:00 linux pppd[2954]: Using interface ppp0
Jul 31 16:08:00 linux pppd[2954]: Connect: ppp0 < --> eth0
Jul 31 16:08:00 linux pppd[2954]: Couldn\'t increase MTU to 1500
Jul 31 16:08:00 linux pppd[2954]: Couldn\'t increase MRU to 1500
Jul 31 16:08:03 linux pppd[2954]: Couldn\'t increase MRU to 1500
Jul 31 16:08:03 linux pppd[2954]: Couldn\'t increase MTU to 1500
Jul 31 16:08:03 linux pppd[2954]: Couldn\'t increase MRU to 1500
Jul 31 16:08:03 linux pppd[2954]: Couldn\'t increase MRU to 1500
Jul 31 16:08:03 linux pppd[2954]: Remote message: Welcome to use Quidway ROUTER, Huawei Tech.^M^J
Jul 31 16:08:03 linux pppd[2954]: PAP authentication succeeded
Jul 31 16:08:03 linux pppd[2954]: peer from calling number 00:E0:FC:0F:3A:29 authorized
Jul 31 16:08:03 linux pppd[2954]: local IP address 221.127.84.228
Jul 31 16:08:03 linux pppd[2954]: remote IP address 221.127.84.1
Jul 31 16:08:03 linux pppd[2954]: primary DNS address 210.0.255.216
Jul 31 16:08:03 linux pppd[2954]: secondary DNS address 210.0.128.241
ifconfig 出來Message
eth0 Link encap:Ethernet HWaddr 00:50:FC:F6:D2:3B
inet addr:10.123.78.11 Bcast:10.123.78.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1289 errors:0 dropped:0 overruns:0 frame:0
TX packets:1823 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:107501 (104.9 KiB) TX bytes:127943 (124.9 KiB)
Interrupt:11 Base address:0x7400
eth1 Link encap:Ethernet HWaddr 00:50:FC:EF:C9:7B
inet addr:192.168.10.1 Bcast:192.168.10.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4837 errors:0 dropped:0 overruns:0 frame:0
TX packets:5040 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:453548 (442.9 KiB) TX bytes:685349 (669.2 KiB)
Interrupt:9 Base address:0x7800
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:233 errors:0 dropped:0 overruns:0 frame:0
TX packets:233 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:22396 (21.8 KiB) TX bytes:22396 (21.8 KiB)
ppp0 Link encap:Point-to-Point Protocol
inet addr:221.127.84.228 P-t-P:221.127.84.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:310 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:21676 (21.1 KiB) TX bytes:54 (54.0 b)
/etc/resolv.conf
nameserver 210.0.255.216
nameserver 210.0.128.241
search pppoe.dialer
好彩在hklpg 搵到答案。
http://bbs.hklpg.org/viewtopic.php?t=7714&highlight=%A9M%B0O
Some experiences share with you all:
和記 help me to changed a vdsl modem and I need to pppoe (rp-pppoe v3.5) to login .
In my linuxbox rh9, I do the adsl-setup, I can get the public ip and dns.
I found the following problem:
1. I get ping the first dns server 210.0.128.241 (but I can ping the second one 210.0.128.242
2. I can\'t browse all web site. (It always redirect me to the HGC\'s first startup page)
After I look into the routing table I found that a defaullt route is missing (when compare it wth winxp).
I did the followng then I can browse all website:
1. run adsl-setup: enter DNS ip manually: 210.0.128.242 and 210.0.128.216.
2. add a default route in /etc/rc.d/rc.local
route add -net 0.0.0.0 netmask 0.0.0.0 ppp0
But I dont\' know why the rp-pppoe can add this route automatically.
The DEFAULTROUTE option in /etc/ppp/pppoe.conf already set to yes.
And I got disconnect 2 times today (It was happen when using DCHP before)
Hope this can help anyone hit this issue.
Patrick
Comments