Linux不完全攻略
2.2.2 設(shè)備OK,準(zhǔn)備上網(wǎng)
2.2.2.1 路由方式
如果你通過局域網(wǎng)中的路由器或充當(dāng)路由器的計算機(jī)上網(wǎng),請把網(wǎng)關(guān)設(shè)置為那臺路由器的IP地址。重新啟動網(wǎng)絡(luò)部分,或者下次開機(jī),你已經(jīng)在網(wǎng)上。
2.2.2.2 撥號
如果你用電話撥號、ISDN、xDSL或以太網(wǎng)虛擬撥號方式上網(wǎng),請用“開始”菜單->“網(wǎng)絡(luò)”->“撥號程序”創(chuàng)建連接。這個撥號程序是“中關(guān)村百校信息園”出的,各步驟都有中文提示。
2.2.2.3 開機(jī)直接撥號
如果你用LAN虛擬撥號/xDSL方式上網(wǎng),用月租方式而不以分鐘、小時計時,你可以將撥號程序設(shè)置為開機(jī)期間一直在線。
以“root”身份登錄系統(tǒng),打開“終端”,執(zhí)行“adsl-setup”。過程中屏幕顯示、注釋和用戶輸入如下,其中帶“[]”的項由你輸入,由“#”開頭的行為我添加的注釋。
#里面的英文都不難。因為我的連接已經(jīng)配置好,下面的顯示可能與第一次配置有所不同。但也不會相差多少。
Welcome to the ADSL client setup. First, I will run some checks on
your system to make sure the PPPoE client is installed properly...
The following DSL config was found on your system:
Device: Name:
ppp0 DSLppp0
Please enter the device if you want to configure the present DSL config
(default ppp0) or enter ´n´ if you want to create a new one: [ppp0]
#歡迎使用ADSL客戶端設(shè)置程序……
#……
#請輸入你想創(chuàng)建的撥號設(shè)備名(默認(rèn)是ppp0)或輸入“n”新創(chuàng)建一個設(shè)備:
LOGIN NAME
Enter your Login Name: [你從電信申請的用戶名]
#帳號/登錄名
#在這里輸入你的帳號/登錄名:
INTERFACE
Enter the Ethernet interface connected to the ADSL modem
For Solaris, this is likely to be something like /dev/hme0.
For Linux, it will be ethX, where ´X´ is a number.
(default eth0): [eth0]
#界面
#輸入連接到ADSL調(diào)制解調(diào)器的以太網(wǎng)界面。用以太網(wǎng)虛擬撥號的同樣適用。
#對于Soliris,可能是類似/dev/hme0的東西。
#對于Linux,是ethX,X是一個整數(shù)。
#(默認(rèn)是eth0):
#eth0一般紙Linux下第一以太網(wǎng)卡。第二塊網(wǎng)卡eth1……第N+1塊網(wǎng)卡ethN。
Do you want the link to come up on demand, or stay up continuously?
If you want it to come up on demand, enter the idle time in seconds
after which the link should be dropped. If you want the link to
stay up permanently, enter ´no´ (two letters, lower-case.)
NOTE: Demand-activated links do not interact well with dynamic IP
addresses. You may have some problems with demand-activated links.
Enter the demand value (default no): [no]
#是否要啟動一個動態(tài)連接守護(hù)進(jìn)程?(默認(rèn)不啟動)
DNS
Please enter the IP address of your ISP´s primary DNS server.
If your ISP claims that ´the server will provide dynamic DNS addresses´,
enter ´server´ (all lower-case) here.
If you just press enter, I will assume you know what you are
doing and not modify your DNS setup.
Enter the DNS information here: []
#域名服務(wù)器
#請輸入域名服務(wù)器的IP。
#什么都不輸表示使用電信公司默認(rèn)的域名服務(wù)器。
評論