1、一種是linux共享局域網(wǎng)內(nèi)的windows主機(jī)上網(wǎng)
如果你的網(wǎng)卡linux能夠識(shí)別的話(huà)在安裝的時(shí)候會(huì)有網(wǎng)卡配置過(guò)程。從列表中選擇網(wǎng)絡(luò)設(shè)備,一般為eth0,點(diǎn)擊“編輯”,在打開(kāi)的“編輯接口”對(duì)話(huà)框中,用戶(hù)可以通過(guò)DHCP來(lái)配置網(wǎng)絡(luò),這樣也可以,不過(guò)我更喜歡定制一個(gè)靜態(tài)IP,所以去掉“使用DHCP進(jìn)行配置”前面的選項(xiàng),然后在下面輸入你要定制的IP地址和子網(wǎng)掩碼,確定后,在下面的網(wǎng)關(guān)和主要DNS里輸入當(dāng)前局域網(wǎng)上做為主機(jī)的計(jì)算機(jī)的IP地址。這樣裝完以后就搞定。
如果你是裝完后再安裝的網(wǎng)卡的話(huà),那可以在“系統(tǒng)設(shè)置”里選擇“網(wǎng)絡(luò)”,如果你的網(wǎng)卡安裝成功的話(huà)會(huì)在下面的列表里看到你的網(wǎng)卡,同樣設(shè)置DNS(和上面一樣),然后再回到列表里,選中你的網(wǎng)卡,點(diǎn)上面的編輯,選中“當(dāng)計(jì)算機(jī)啟動(dòng)時(shí)激活設(shè)備”,然后選擇下面的“靜態(tài)設(shè)置的IP地址”,在下面輸入和上面同樣的設(shè)置。再重新啟動(dòng)就可以了。
2、另外一種就是用你的linux通過(guò)ADSL上網(wǎng)了
在linux下就集成著一個(gè)ADSL撥號(hào)軟件,打開(kāi)終端,在里面輸入#adsl-setup,然后進(jìn)行設(shè)置:
LOGIN NAME
Enter your Login Name (default root):(輸入你的用戶(hù)名)
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):(選擇網(wǎng)絡(luò)設(shè)備)
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):(選擇是按需撥號(hào),還是持續(xù)連接)
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:(選擇DNS)
PASSWORD
Please enter your Password:
Please re-enter your Password:
USERCTRL
Please enter 'yes' (two letters, lower-case.) if you want to allow
normal user to start or stop DSL connection (default yes):(是否允許普通用戶(hù)啟動(dòng)、關(guān)閉)
The firewall choices are:
0 - NONE: This script will not set any firewall rules. You are responsible
for ensuring the security of your machine. You are STRONGLY
recommended to use some kind of firewall rules.
1 - STANDALONE: Appropriate for a basic stand-alone web-surfing workstation
2 - MASQUERADE: Appropriate for a machine acting as an Internet gateway
for a LAN
Choose a type of firewall (0-2):(選擇firewall的規(guī)則)
Start this connection at boot time
Do you want to start this connection at boot time?
Please enter no or yes (default no):(選擇是否隨機(jī)啟動(dòng))
** Summary of what you entered **
Ethernet Interface:
User name:
Activate-on-demand:
DNS addresses:
Firewalling:
User Control:
Accept these settings and adjust configuration files (y/n)?(確認(rèn)一下是否接受設(shè)置)
以上的設(shè)置在“系統(tǒng)設(shè)置”里 的“網(wǎng)絡(luò)”里選擇新建,建立一個(gè)xDSL連接,也可以實(shí)現(xiàn)。設(shè)置完成了以后在網(wǎng)絡(luò)里激活連接。
上面的ADSL連接就試過(guò)一次,由于我們是局域網(wǎng),所以一直用的是共享上網(wǎng),如果有什么錯(cuò)誤不要罵我,還請(qǐng)指教!!



















