歡迎您光臨本站 註冊首頁

Ubuntu 7.04的ADSL撥號上網和DNS設置

←手機掃碼閱讀     火星人 @ 2014-03-26 , reply:0

我在家業餘時間學習linux,用ubuntu7.04感覺很爽,但是用電信的ADSL上網和DNS設置確費了一番手腳。下面將我的遭遇說說,和大家一起交流下

1.ADSL
在ubuntu 下撥號用ADSL撥號上網,首先需要用pppoeconf進行用戶名和密碼的設置。(參看ubuntu幫助)

1. 確認您的乙太網卡已被檢測到。
2. 輸入您的用戶名。
3. 輸入您的密碼。
4. 若您曾經配置過一個 PPPoE 連接的話,您會被詢問是否需要改變其設置。
5. 常見選項:您被詢問您是否想要 「noauth」 和 「defaultroute」 選項並移除 「nodetach」 - 選擇 Yes。
6. 使用 peer DNS-選擇Yes。
7. Limited MSS problem - 選擇 Yes。
8. 當您被詢問是否要在啟動時連接,您通常會想選「是」。
9. 最後您會被詢問是否要立即建立連接。

一旦您完成了這些步驟,您的連接應當就可用了。

若想即時啟動您的 ADSL 連接,請在終端中輸入:

sudo pon dsl-provider

若想中斷您的 ADSL 連接,請在終端中輸入:

sudo poff dsl-provider

2.dns 設置
在撥號上網時,經常發現有些網站無法登錄,例如www.openswan.org,www.kernel.org.

在命令行下輸入:# nslookup
>server
Default server: 202.102.192.68
Address: 202.102.192.68#53
Default server: 202.102.199.68
Address: 202.102.199.68#53

你就能發現自己正在使用的dns。也可以輸入一些網址看看是否能解析。
>www.sohu.com
www.sohu.com canonical name = d7.a.sohu.com.
d7.a.sohu.com canonical name = cachesh1.a.sohu.com.
Name: cachesh1.a.sohu.com
Address: 61.152.234.80
Name: cachesh1.a.sohu.com
Address: 61.152.234.81
Name: cachesh1.a.sohu.com
Address: 61.152.234.82
Name: cachesh1.a.sohu.com
Address: 61.152.234.84
Name: cachesh1.a.sohu.com
Address: 61.152.234.85
Name: cachesh1.a.sohu.com
Address: 61.152.234.86

但是輸入
>www.kerner.org
Server: 202.102.192.68
Address: 202.102.192.68#53

Non-authoritative answer:
*** Can't find www.kernel.org: No answer
一番痛苦后,發現首先要修改/etc/ppp/pper/dsl-provider文件,將usepeerdns項釋視掉。這項註釋就是說不需要ubuntu自動設置的/etc/resolve.conf中的dns.本人在安徽合肥,ubuntu給我默認的dns

如下:
nameserver 202.102.192.68
nameserver 202.102.199.68
後來到網上找個開源的DNS

如下:
nameserver 208.67.222.222
nameserver 208.67.220.220
從此上網不在煩惱。

[火星人 ] Ubuntu 7.04的ADSL撥號上網和DNS設置已經有454次圍觀

http://coctec.com/docs/linux/show-post-182724.html