Linux不完全攻略
2.2.2 設(shè)備OK,準(zhǔn)備上網(wǎng)
2.2.2.1 路由方式
如果你通過(guò)局域網(wǎng)中的路由器或充當(dāng)路由器的計(jì)算機(jī)上網(wǎng),請(qǐng)把網(wǎng)關(guān)設(shè)置為那臺(tái)路由器的IP地址。重新啟動(dòng)網(wǎng)絡(luò)部分,或者下次開(kāi)機(jī),你已經(jīng)在網(wǎng)上。
2.2.2.2 撥號(hào)
如果你用電話撥號(hào)、ISDN、xDSL或以太網(wǎng)虛擬撥號(hào)方式上網(wǎng),請(qǐng)用“開(kāi)始”菜單->“網(wǎng)絡(luò)”->“撥號(hào)程序”創(chuàng)建連接。這個(gè)撥號(hào)程序是“中關(guān)村百校信息園”出的,各步驟都有中文提示。
2.2.2.3 開(kāi)機(jī)直接撥號(hào)
如果你用LAN虛擬撥號(hào)/xDSL方式上網(wǎng),用月租方式而不以分鐘、小時(shí)計(jì)時(shí),你可以將撥號(hào)程序設(shè)置為開(kāi)機(jī)期間一直在線。
以“root”身份登錄系統(tǒng),打開(kāi)“終端”,執(zhí)行“adsl-setup”。過(guò)程中屏幕顯示、注釋和用戶輸入如下,其中帶“[]”的項(xiàng)由你輸入,由“#”開(kāi)頭的行為我添加的注釋。
#里面的英文都不難。因?yàn)槲业倪B接已經(jīng)配置好,下面的顯示可能與第一次配置有所不同。但也不會(huì)相差多少。
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è)置程序……
#……
#請(qǐng)輸入你想創(chuàng)建的撥號(hào)設(shè)備名(默認(rèn)是ppp0)或輸入“n”新創(chuàng)建一個(gè)設(shè)備:
LOGIN NAME
Enter your Login Name: [你從電信申請(qǐng)的用戶名]
#帳號(hào)/登錄名
#在這里輸入你的帳號(hào)/登錄名:
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)虛擬撥號(hào)的同樣適用。
#對(duì)于Soliris,可能是類似/dev/hme0的東西。
#對(duì)于Linux,是ethX,X是一個(gè)整數(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]
#是否要啟動(dòng)一個(gè)動(dòng)態(tài)連接守護(hù)進(jìn)程?(默認(rèn)不啟動(dòng))
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ù)器
#請(qǐng)輸入域名服務(wù)器的IP。
#什么都不輸表示使用電信公司默認(rèn)的域名服務(wù)器。
評(píng)論