如何創(chuàng)建 Ad Hoc 計算機(jī)至計算機(jī)連接_第1頁
如何創(chuàng)建 Ad Hoc 計算機(jī)至計算機(jī)連接_第2頁
如何創(chuàng)建 Ad Hoc 計算機(jī)至計算機(jī)連接_第3頁
如何創(chuàng)建 Ad Hoc 計算機(jī)至計算機(jī)連接_第4頁
如何創(chuàng)建 Ad Hoc 計算機(jī)至計算機(jī)連接_第5頁
已閱讀5頁,還剩9頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)

文檔簡介

/■//Microsoft

^</Windowsxp

OperatingSystem

AdHocInternetSharingwithMicrosoftWindowsXP

MicrosoftCorporation

Published:October2003

Updated:August2004

Abstract

TheInternetConnectionSharing(ICS)featureofMicrosoft@Windows@XPallowsyoutoshareasingleInternet

connectionwithmultiplecomputers.Built-insupportforIEEE802.11wirelessLANs(WLANs)allowsyouto

createanadhocwirelessnetwork.ThesetwofeaturescanbeusedtogethertoshareawiredInternet

connectionwiththemembersofanadhocwirelessnetwork.Thisarticledescribeshowtoquicklyandeasilyuse

WindowsXPtoshareawiredInternetconnectionwithotherWLANcomputers.

Microsoft@Windows@XPTechnicalArticle

Theinformationcontainedinthisdocumentrepresentsthecurrentviewof

MicrosoftCorporationontheissuesdiscussedasofthedateof

publication.becauseMicrosoftmustrespondtochangingmarket

conditions,itshouldnotbeinterpretedtobeacommitmentonthepartof

Microsoft,andMicrosoftcannotguaranteetheaccuracyofanyinformation

presentedafterthedateofpublication.

Thisdocumentisforinformationalpurposesonly.MICROSOFTMAKES

NOWARRANTIES,EXPRESSORIMPLIED.ASTOTHE

INFORMATIONINTHISDOCUMENT.

Complyingwithallapplicablecopyrightlawsistheresponsibilityofthe

user.Withoutlimitingtherightsundercopyright,nopartofthisdocument

maybereproduced,storedinorintroducedintoaretrievalsystem,or

transmittedinanyformorbyanymeans(electronic,mechanical,

photocopyina,recording,orotherwise),orforanypurpose,withoutthe

expresswrittenpermissionofMicrosoftCorporation.

Microsoftmayhavepatents,patentapplications,trademarks,copyrights,

orotherintellectualpropertyrightscoveringsubjectmatterinthis

document.Exceptasexpresslyprovidedinanywrittenlicenseagreement

fromMicrosoft,tnefurnishingofthisdocumentdoesnotgiveyouany

licensetothesepatents,trademarks,copyrights,orotherintellectual

property.

?2003MicrosoftCorporation.Allrightsreserved.

Microsoft,Windows,andWindowsServerareeitherregistered

trademarksortrademarksofMicrosoftCorporationintneUnitedStates

and/orothercountries.

Thenamesofactualcompaniesandproductsmentionedhereinmaybe

thetrademarksoftheirrespectiveowners.

Microsoft@Windows@XPTechnicalArticle

Contents

Overview1

ConfiguringAdHocInternetSharing2

1.ConnectingtheICSHostComputertotheInternet2

2.EnablingInternetSharingontheInternetConnectionoftheICSHostComputer4

3.CreatinganAdHocWirelessNetworkontheICSHostComputer4

4.ConnectingtotheNewAdHocWirelessNetworkfromtheOtherLaptopComputers6

RestoringtheConfigurationoftheICSHostComputer9

Summary10

RelatedLinks11

Microsoft@Windows@XPTechnicalArticle

Overview

WiththeInternetConnectionSharing(ICS)featureofWindowsXP,youcanshareaccesstotheInternet

withothercomputersofasmallnetwork.Forexample,whenyouhaveonecomputerthatconnectstothe

InternetbyusinganEthernetcableandICSisenabledontheEthernetconnectionofthiscomputer,known

astheICShostcomputer,theothercomputersonthesmallnetworkcanconnecttotheInternetthroughthe

ICShostcomputer.

WithIEEE802.11supportforwirelessLANs(WLANs),youcancreateanadhocwirelessnetwork,also

knownasacomputer-to-computerwirelessnetwork.Anadhocwirelessnetworkdoesnotrequiretheuse

ofawirelessaccesspoint,whichisaseparatedevicethatistypicallyusedbyprivateorganizationsand

publiclocationstoprovidecentralizedwirelessaccesstoalargernetwork.Youcanuseadhocwireless

networkstoconnectmultipleWLANcomputerstogetherinhomes,smallbusinesses,orfortemporary

connectivitybetweentwoormorecomputerssothattheycaneithercommunicatewitheachotherorwitha

sharedresource,suchastheInternet.Itisthislastcasethatwewillexploreinthisarticle.Wewilldescribe

thestepsrequiredtoconfigureacomputerrunningWindowsXPtoconnecttotheInternetusingan

EthernetconnectionandthensharethatInternetconnectionwithotherWLAN-basedcomputersusingan

adhocwirelessnetwork.

AdHocInternetSharingwithMicrosoftWindowsXP1

Microsoft@Windows@XPTechnicalArticle

ConfiguringAdHocInternetSharing

Thisconfigurationassumesthefollowingconfiguration:

?AlaptopcomputerrunningWindowsXPthatisequippedwithbothEthernetand802.11WLANnetwork

adapters.ThiscomputerisreferredtoastheICShostcomputer.

?AnEthernet-basedconnectiontotheInternet.

?LaptopsorothercomputersrunningWindowsXPthatareequippedwith802.11WLANnetwork

adapters.

Thefollowingfigureshowstheresultingconfiguration.

comcM9

C3I

cornpulef

ThestepstoconfiguringadhocInternetsharingarethefollowing:

i.ConnecttheICShostcomputertotheInternet.

2.EnableInternetsharingontheInternetconnectionoftheICShostcomputer.

3.CreateanadhocwirelessnetworkontheICShostcomputer.

4.Connecttothenewadhocwirelessnetworkfromtheotherlaptopcomputers.

Thefollowingsectionsdescribethesestepsindetail.

NoteThefollowingstepsassumethatthewirelessnetworkadaptersinstalledinallofthewirelessclientcomputerscan

connectusingacommon802.11technology,suchas802.11b,802.11g,or802.11a.

1.ConnectingtheICSHostComputertotheInternet

ConnectanEthernetcablethatleadstotheInternettotheEthernetadapterontheICShostcomputer.In

manycases,theInternetconnectionwillprovideautomaticIPaddressing.Toutilizethisfacilityofthe

Internetconnection,theEthernetconnectionintheNetworkConnectionsfolderinWindowsXPmustbe

configuredforautomaticaddressing.ToconfigureacomputerrunningWindowsXPforautomatic

addressing,dothefollowing:

1.FromtheWindowsXPdesktop,clickStart,clickControlPanel,clickNetworkandInternet

Connections,andthenclickNetworkConnections.

AdHocInternetSharingwithMicrosoftWindowsXP2

Microsoft@Windows@XPTechnicalArticle

2.Right-clickthenetworkconnectionthatcorrespondstotheEthernetnetworkadapterattachedtothe

Internet,andthenclickProperties.

3.OntheGeneraltab,double-clickInternetProtocol(TCP/IP)intheThisconnectionusesthe

followingitemslist.

4.OntheGeneraltab,clickObtainanIPaddressautomaticallyandObtainDNSserveraddress

automatically.Anexampleisshowninthefollowingfigure.

5.ClickOKtosavethechangestoyourconnection'sconfiguration.

IftheInternetconnectiondoesnotprovideautomaticIPaddressing,youmustmanuallyconfigureanIP

addressconfiguration.ToobtainanIPaddressconfiguration,seethenetworkadministratorofthenetwork

towhichyouareconnecting.TomanuallyconfigureacomputerrunningWindowsXPforanIPaddress

configuration,dothefollowing:

1.FromtheWindowsXPdesktop,clickStart,clickControlPanel,clickNetworkandInternet

Connections,andthenclickNetworkConnections.

2.Right-clickthenetworkconnectionthatcorrespondstotheEthernetnetworkadapterattachedtothe

Internet,andthenclickProperties.

3.OntheGeneraltab,double-clickInternetProtocol(TCP/IP)intheThisconnectionusesthe

followingitemslist.

4.OntheGeneraltab,clickUsethefollowingIPaddressandtypetheIPaddress,subnetmask,and

defaultgatewayasinstructed.ClickUsethefollowingDNSserveraddressesandtypetheIP

addressofapreferredandalternateDomainNameSystem(DNS)serverasinstructed.

5.ClickOKtosavethechangestoyourconnection'sconfiguration.

Next,youmustenabletheWindowsFirewallfeatureofWindowsXPwithServicePack2(SP2),theInternet

ConnectionFirewall(ICF)featureofWindowsXPwithServicePack1(SP1)orWindowsXPwithnoservice

packsinstalled,orathird-partyfirewalltohelpprotecttheICShostcomputerfrommaliciousInternetusers.

AdHocInternetSharingwithMicrosoftWindowsXP3

Microsoft@Windows@XPTechnicalArticle

ToenableWindowsFirewallontheICShostcomputer,dothefollowing:

i.FromtheWindowsXPdesktop,clickStart,clickControlPanel,clickNetworkandInternet

Connections,andthenclickWindowsFirewall.

2.ClickOn,andthenclickOK.

ToenableICFontheInternetconnectionoftheICShostcomputer,dothefollowing:

1.FromtheWindowsXPdesktop,clickStart,clickControlPanel,clickNetworkandInternet

Connections,andthenclickNetworkConnections.

2.Right-clicktheEthernetnetworkconnectionthatcorrespondstotheEthernetnetworkadapter

attachedtotheInternet,andthenclickProperties.

3.OntheAdvancedtab,selecttheProtectmycomputerbylimitingorpreventingaccesstothis

computerfromtheInternetcheckbox.

4.ClickOKtosavechangestoyourconnection.

AftertheICShostcomputerisconnectedtotheInternet,verifythatyouhaveInternetconnectivitybyusing

aWebbrowsersuchasInternetExplorertoviewafewWebsites.Toensurethatyouarenotviewing

locallystoredcopiesofWebpagecontents,refresheachWebpagethatyouview.

WhenyouareconfidentthatyouareaccessingtheInternetfromtheICShostcomputer,proceedtothe

nextstep.

2.EnablingInternetSharingontheInternetConnectionoftheICSHostComputer

ToenableInternetsharingontheInternetconnectionoftheICShostcomputer,dothefollowing:

1.FromtheWindowsXPdesktop,clickStart,clickControlPanel,clickNetworkandInternet

Connections,andthenclickNetworkConnections.

2.Right-clicktheEthernetnetworkconnectionthatisusedtoaccesstheInternet,andthenclick

Properties.

3.OntheAdvancedtab,selecttheAllowothernetworkuserstoconnectthroughthiscomputer's

InternetconnectioncheckboxandcleartheAllowothernetworkuserstocontrolordisable

thissharedInternetconnectioncheckbox.

4.ClickOKtosavechangestoyourconnection.

5.YoumightbepromptedwithaLocalNetworkmessageboxthatexplainshowyourcomputer's

configurationisbeingchanged.ClickYestoenableInternetsharing.

3.CreatinganAdHocWirelessNetworkontheICSHostComputer

TocreateanadhocwirelessnetworktoshareInternetaccesswiththeotherWLANcomputersona

computerrunningWindowsXPwithSP2orWindowsXPwithSP1andtheWPAWirelessSecurityUpdate

inWindowsXP,dothefollowing:

1.FromtheWindowsXPdesktop,clickStart,clickControlPanel,clickNetworkandInternet

Connections,andthenclickNetworkConnections.

2.Right-clickthewirelessnetworkconnection,andthenclickProperties.

AdHocInternetSharingwithMicrosoftWindowsXP4

Microsoft@Windows@XPTechnicalArticle

3.ClicktheWirelessNetworkstab.

4.Inthewirelessnetworkadapterpropertiesdialogbox,clickAddunderPreferrednetworks.

5.OntheAssociationtab,typethenameofyouradhocwirelessnetworkinNetworkname(SSID).

Forexample,youcouldnameyourwirelessnetworkAdHocInternet.

6.SelecttheThisisacomputer-to-computer(adhoc)networkcheckboxandcleartheThekeyis

providedformeautomaticallycheckbox.

7.InNetworkAuthentication,selectOpen.

8.InDataencryption,selectWEP.

9.InNetworkkey,typetheWEPkey.TheWEPkeyshouldbearandomsequenceofhexadecimal

digitsornumbers,letters,andpunctuation.

w.lnConfirmnetworkkey,retypetheWEPkey.

11.ClickOKtosavechangestothewirelessnetwork.

i2.ClickOKtosavechangestothewirelessnetworkadapter.

TocreateanadhocwirelessnetworktoshareInternetaccesswiththeotherWLANcomputersona

computerrunningWindowsXPwithSP1,dothefollowing:

1.FromtheWindowsXPdesktop,clickStart,clickControlPanel,clickNetworkandInternet

Connections,andthenclickNetworkConnections.

2.Right-clickthewirelessnetworkconnection,andthenclickProperties.

3.ClicktheWirelessNetworkstab.

4.Inthewirelessnetworkadapterpropertiesdialogbox,clickAddunderPreferrednetworks.

5.OntheAssociationtaboftheWirelessNetworkPropertiesdialogbox,typethenameofyourad

hocwirelessnetworkinNetworkname(SSID).Forexample,youcouldnameyourwirelessnetwork

AdHocInternet.

6.SelecttheDataencryption(WEPenabled)andThisisacomputer-to-computer(adhoc)

networkcheckboxesandcleartheThekeyisprovidedformeautomaticallycheckbox.

7.InNetworkkey,typetheWEPkey.TheWEPkeyshouldbearandomsequenceofhexadecimal

digitsornumbers,letters,andpunctuation.

8.RetypetheWEPkeyinConfirmnetworkkey.

9.ClickOKtosavechangestothewirelessnetwork.

w.ClickOKtosavechangestothewirelessnetworkadapter.

TocreateanadhocwirelessnetworktoshareInternetaccesswiththeotherWLANcomputersona

computerrunningWindowsXPwithnoservicepacksinstalled,dothefollowing:

1.FromtheWindowsXPdesktop,clickStart,clickControlPanel,clickNetworkandInternet

Connections,andthenclickNetworkConnections.

2.Right-clickthewirelessnetworkconnection,andthenclickProperties.

AdHocInternetSharingwithMicrosoftWindowsXP5

Microsoft@Windows@XPTechnicalArticle

3.ClicktheWirelessNetworkstab.

4.Inthewirelessnetworkadapterpropertiesdialogbox,clickAddunderPreferrednetworks.

5.IntheWirelessNetworkPropertiesdialogbox,typethenameofyouradhocwirelessnetworkin

Networkname(SSID).Forexample,youcouldnameyourwirelessnetworkAdHocInternet.

6.SelecttheDataencryption(WEPenabled)andThisisacomputer-to-computer(adhoc)

networkcheckboxesandcleartheThekeyisprovidedformeautomaticallycheckbox.

7.InKeyformat,selectakeyformat.

8.InKeylength,selectakeysize.

9.InNetworkkey,typetheWEPkey.TheWEPkeyshouldbearandomsequenceofhexadecimal

digitsornumbers,letters,andpunctuation.

w.ClickOKtosavechangestothewirelessnetwork.

11.ClickOKtosavechangestothewirelessnetworkadapter.

Theseinstructionsconfigureanencryptionkeyforwirelesscommunicationsontheadhocwirelessnetwork.

YoumusttelltheotheruserswhowanttoaccesstheInternettheWEPkey.Youcancreateanadhoc

wirelessnetworkwithoutrequiringencryptionandanencryptionkey,butitisnotrecommended.

4.ConnectingtotheNewAdHocWirelessNetworkfromtheOtherLaptop

Computers

Toconnecteachotherlaptopcomputertothenewlycreatedadhocmodewirelessnetwork,dothe

following:

1.Oncethenewadhocwirelessnetworkiscreated,WindowsXPonotherlaptopcomputersshould

detectitandpromptyouwithaOneormorewirelessnetworksareavailableorWireless

networksdetectedmessageinthenotificationareaofyourtaskbar.

2.Clickthenotificationmessage.

Ifyouarenotnotified,right-clickthewirelessnetworkadapterinNetworkConnectionsandclickView

AvailableWirelessNetworks.

YoushouldseetheWirelessNetworkConnectiondialogbox(forWindowsXPwithSP2),adialogbox

withthenameofthewirelessconnection(forWindowsXPwithSP1),ortheConnecttoWireless

Networkdialogbox(forWindowsXPwithnoservicepacksinstalled).AnexampleoftheWireless

NetworkConnectiondialogboxforWindowsXPwithSP2isshowninthefollowingfigure.

AdHocInternetSharingwithMicrosoftWindowsXP6

Microsoft@Windows@XPTechnicalArticle

3.ForWindowsXPwithSP2,clickthenameofthenewadhocwirelessnetworkinthelist,andthen

clickConnect.WhenpromptedbytheWirelessNetworkConnectiondialogbox,theWEPkeyin

NetworkkeyandConfirmnetworkkey,andthenclickConnect.

ForWindowsXPwithSP1,clickthenameofthenewadhocwirelessnetworkinAvailablenetworks,

typetheWEPkeyinNetworkkeyandConfirmnetworkkey,andthenclickConnect.

ForWindowsXPwithnoservicepacksinstalled,clickthenameofthenewadhocwirelessnetworkin

Availablenetworks,typetheWEPkeyinNetworkkey,andthenclickConnect.

Nowthatthelaptopcomputerisconnectedtotheadhocwirelessnetwork,youmustconfigureitforeither

WindowsFirewallorICFandautomaticaddressingbydoingthefollowing:

1.FromtheWindowsXPdesktop,clickStart,clickControlPanel,clickNetworkandInternet

Connections,andthenclickNetworkConnections.

2.Right-clickthenetworkconnectionthatcorrespondstothewirelessnetworkadapter,andthenclick

Properties.

3.ForcomputersrunningWindowsXPwithSP2,clicktheAdvancedtab,andthenclickSettings.

FromtheWindowsFirewalldialogbox,clickOn,andthenclickOK.

ForcomputersrunningWindowsXPwithSP1orWindowsXPwithnoservicepacksinstalled,clickthe

Advancedtab,andthenselecttheProtectmycomputerandnetworkbylimitingorpreventing

accesstothiscomputerfromtheInternetcheckbox.

4.ClicktheGeneraltab,double-clickInternetProtocol(TCP/IP)intheThisconnectionusesthe

followingitemslist.

5.OntheGeneraltab,clickObtainanIPaddressautomaticallyandObtainDNSserveraddress

automatically.

6.ClickOKtosavethechangestotheconfigurationofInternetProtocol(TCP/IP).

AdHocInternetSharingwithMicrosoftWindowsXP7

Microsoft@Windows@XPTechnicalArticle

7.ClickOKtosavethechangestoyourconnection'sconfiguration.

ThelaptopcomputershouldreceiveanIPaddressconfigurationfromtheICShostcomputerandhave

Internetconnectivity.TestInternetconnectivitybyusingaWebbrowsertoviewWebpages.

AdHocInternetSharingwithMicrosoftWindowsXP8

Microsoft@Windows@XPTechnicalArticle

RestoringtheConfigurationoftheICSHostComputer

AftertheadhocInternetsharingisnolongerneeded,youcanrestoretheconfigurationoftheICShost

computerrunningWindowsXPbydoingthefollowing:

1.FromtheWindowsXPdesktop,clickStart,clickControlPanel,clickNetworkandInternet

Connections,andthenclickNetworkConnections.

2.Right-clicktheEthernetnetworkconnectionthatisusedtoaccesstheInternet,andthenclick

Properties.

3.OntheAdvancedtab,cleartheAllowothernetworkuserstoconnectthroughthiscomputer's

Inte

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論