計算機網(wǎng)絡(luò)原理組網(wǎng)設(shè)計實驗報告_第1頁
計算機網(wǎng)絡(luò)原理組網(wǎng)設(shè)計實驗報告_第2頁
計算機網(wǎng)絡(luò)原理組網(wǎng)設(shè)計實驗報告_第3頁
計算機網(wǎng)絡(luò)原理組網(wǎng)設(shè)計實驗報告_第4頁
計算機網(wǎng)絡(luò)原理組網(wǎng)設(shè)計實驗報告_第5頁
已閱讀5頁,還剩11頁未讀, 繼續(xù)免費閱讀

下載本文檔

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

文檔簡介

PAGEPAGE2計算機網(wǎng)絡(luò)原理實驗報告課程:計算機網(wǎng)絡(luò)原理實驗班級:學(xué)號:姓名:指導(dǎo)教師:提交日期:2014/6/13PAGE15目錄:TOC\o"1-2"\h\z\u1實驗內(nèi)容簡述 21.1實驗題目 21.2實驗內(nèi)容 22基本結(jié)構(gòu)設(shè)計 32.1設(shè)備需求 32.2交換機結(jié)構(gòu)設(shè)置 32.3路由器結(jié)構(gòu)設(shè)置 42.4整個網(wǎng)絡(luò)的拓撲圖 43具體實施 53.1交換機配置 53.2路由器配置 114體會感想 15中國地質(zhì)大學(xué)(北京)課程名稱:計算機網(wǎng)絡(luò)原理實驗班號:學(xué)號:姓名:1實驗內(nèi)容簡述1.1實驗題目組網(wǎng)設(shè)計1.2實驗內(nèi)容某公司有A、B、C、D、E5個部門200個PC機,有WEB服務(wù)器,EMAIL服務(wù)器,財務(wù)服務(wù)器和文件服務(wù)器各一臺,按以下要求詳細設(shè)計此公司網(wǎng)絡(luò)。每臺PC能上公網(wǎng)對公網(wǎng)發(fā)布WEB服務(wù)器,但EMAIL服務(wù)器,財務(wù)服務(wù)器和文件服務(wù)器只對內(nèi)網(wǎng)開放,部門E不能訪問財務(wù)服務(wù)器內(nèi)網(wǎng)用戶不能修改IP地址,并可控制內(nèi)網(wǎng)用戶下載速度出差用戶可聯(lián)接內(nèi)網(wǎng)EMAIL服務(wù)器和文件服務(wù)器,財務(wù)服務(wù)器注:網(wǎng)絡(luò)拓撲圖,各個節(jié)點IP,設(shè)備型號,數(shù)量,關(guān)鍵網(wǎng)絡(luò)設(shè)備配置注:網(wǎng)絡(luò)拓撲圖,各個節(jié)點IP,設(shè)備型號,數(shù)量,關(guān)鍵網(wǎng)絡(luò)設(shè)備配置。2基本結(jié)構(gòu)設(shè)計2.1設(shè)備需求根據(jù)實驗內(nèi)容要求,假設(shè)5個部門各有40臺PC機,另有4臺服務(wù)器,則所需設(shè)備如下表所示:表一:設(shè)備配置表設(shè)備名稱型號數(shù)量路由器AR12201三層交換機S37001二層交換機S1700-24102.2交換機結(jié)構(gòu)設(shè)置交換機作用:劃分vlan,不同部門和部門與服務(wù)器之間在不同的vlan中,PC可以相互訪問;設(shè)置靜態(tài)路由,使得每臺host可以訪問到路由器;在E部門的端口上設(shè)置訪問限制,使得E部門不能訪問財務(wù)服務(wù)器;設(shè)置不同部門的主機下載速度限制;設(shè)置交換機的遠程服務(wù)。根據(jù)實驗內(nèi)容要求,在交換機上設(shè)置8個vlan,其中包括5個部門A、B、C、D、E分別是5個vlan(vlan201~vlan205),5個服務(wù)器在vlan206中。此外,還有2個為路由器連接的vlan207和vlan208,各部門對應(yīng)的三層交換機接口情況如下表所示:部門VLAN網(wǎng)關(guān)端口IP地址范圍AVLAN20154Ethernet0/0/1-754BVLAN20254Ethernet0/0/8-1554CVLAN20354Ethernet0/016-2354DVLAN20454Ethernet0/0/1-754EVLAN20554Ethernet0/0/8-1554服務(wù)器VLAN20654Ethernet0/0/3Ethernet0/0/4Ethernet0/0/5Ethernet0/0/6Ethernet0/0/754與路由器連VLAN207Ethernet0/0/24.1VLAN208Ethernet0/0/24.1注:1)Ethernet0/0/3,Ethernet0/0/4,Ethernet0/0/5,Ethernet0/0/6,Ethernet0/0/7五個端口對應(yīng)的服務(wù)器分別是WEB服務(wù)器、E-mail服務(wù)器、財務(wù)服務(wù)器、文件服務(wù)器、路由器。2)vlan207和vlan208中的端口號是Ethernet0/0/24.1用來連接路由器的虛擬網(wǎng)絡(luò),ip是和(和連接pc的vlan的ip進行區(qū)分)3)端口為3、4、5、6、7還沒有配,端口類型配置成trunk類型(portlink-typetrunk,porttrunkpermitvlanall)連接二層的交換機以便使五個部門的虛擬局域網(wǎng)內(nèi)能連接多臺主機,其余所有端口類型均為access。對每個端口所連接的二層交換機進行配置:所有端口都是一個vlan,與其所連接S3700相應(yīng)端口同屬一個vlan,與S3700連接的端口類型為trunk,允許所有網(wǎng)絡(luò)通過,其他所有端口的類型均為access。2.3路由器結(jié)構(gòu)設(shè)置路由器的作用:設(shè)置路由表項的靜態(tài)路由,訪問內(nèi)網(wǎng)的靜態(tài)路由,訪問外網(wǎng)的靜態(tài)路由;連接內(nèi)網(wǎng)和外網(wǎng),對所有的內(nèi)網(wǎng)ip進行轉(zhuǎn)換,通過網(wǎng)絡(luò)地址轉(zhuǎn)換(NAT,NetworkAddressTranslation)接入廣域網(wǎng)(WAN)技術(shù)進行轉(zhuǎn)換;對WEB服務(wù)器的發(fā)布;設(shè)置VPN虛擬專用網(wǎng)絡(luò),使得在外出差的用戶也可以自如的訪問內(nèi)網(wǎng),就像是在內(nèi)網(wǎng)一樣。路由器配置ip分配如下:1)虛擬網(wǎng)絡(luò):vlan207和vlan208端口號:Ethernet0/0/24.2端口類型:access網(wǎng)絡(luò)ip:和2)連接外網(wǎng)端口號:GigabitEthernet0/0/1ip:73)WEB服務(wù)器的對外ip地址:544)對于內(nèi)網(wǎng)的所有ip進行natoutbound轉(zhuǎn)換的地址段為:網(wǎng)段轉(zhuǎn)換為6到7網(wǎng)段轉(zhuǎn)換為6到72.4整個網(wǎng)絡(luò)的拓撲圖畫出整個網(wǎng)絡(luò)的拓撲結(jié)構(gòu)畫出基本的網(wǎng)絡(luò)拓撲圖,如圖一所示,其中每臺計算機代表一個部門的所有PC機,每個代表兩個二層交換機串接,它與S3700中對應(yīng)其部門的端口進行連接,接口類型為trunk。(在實驗中各部門的端口連接的是奇數(shù)號端口,類型為access分別連接一臺PC機)3具體實施3.1交換機配置實現(xiàn)內(nèi)網(wǎng)通信,E部門不能訪問財務(wù)服務(wù)器,實現(xiàn)下載速度的控制在S3700交換機上操作,并且設(shè)置PC機的ip地址及網(wǎng)關(guān)。通過ping命令在命令提示符中進行測試,內(nèi)網(wǎng)的PC機之間可以相互訪問。進入系統(tǒng)視圖,設(shè)置系統(tǒng)名:<switch>system-view[switch]sysnameswitchSA[switchSA]交換機劃分vlan201~vlan203,并將相應(yīng)的端口加入各個虛擬網(wǎng)絡(luò)[switchSA]vlan201//創(chuàng)建vlan201 [switchSA-vlan201]quit[switchSA]interfaceEthernet0/0/1[switchSA-Ethernet0/0/1]portlink-typeaccess//端口類型為access[switchSA-Ethernet0/0/1]portdefaultvlan201//端口加入vlan201中[switchSA-Ethernet0/0/1]quit[switchSA]interfacevlan201[switchSA-Vlanif201]ipaddress54//為虛擬網(wǎng)設(shè)置ip,作為相應(yīng)虛擬網(wǎng)中PC的網(wǎng)關(guān)[switchSA-Vlanif201]quit[switchSA]vlan202//創(chuàng)建vlan202[switchSA-vlan202]quit[switchSA]interfaceEthernet0/0/8[switchSA-Ethernet0/0/8]portlink-typeaccess//端口類型為access[switchSA-Ethernet0/0/8]portdefaultvlan202//端口加入vlan202中[switchSA-Ethernet0/0/8]quit[switchSA]interfacevlan202[switchSA-Vlanif202]ipaddress54//為虛擬網(wǎng)設(shè)置ip,作為相應(yīng)虛擬網(wǎng)中PC的網(wǎng)關(guān)[switchSA-Vlanif203]quit[switchSA]vlan203//創(chuàng)建vlan203[switch4SA-vlan203]quit[switchSA]interfaceEthernet0/0/16[switchSA-Ethernet0/0/16]portlink-typeaccess//端口類型為access[switchSA-Ethernet0/0/16]portdefaultvlan203//端口加入vlan203中[switchSA-Ethernet0/0/16]quit[switchSA]interfacevlan203[switchSA-Vlanif203]ipaddress54//為虛擬網(wǎng)設(shè)置ip,作為相應(yīng)虛擬網(wǎng)中PC的網(wǎng)關(guān)[switchSA-Vlanif203]quit<switch>system-view[switch]sysnameswitchSB[switchSB]交換機劃分vlan204~vlan205,并將相應(yīng)的端口加入各個虛擬網(wǎng)絡(luò)[switchSB]vlan204//創(chuàng)建vlan204[switchSB-vlan204]quit[switchSB]interfaceEthernet0/0/1[switchSB-Ethernet0/0/1]portlink-typeaccess//端口類型為access[switchSB-Ethernet0/0/1]portdefaultvlan204//端口加入vlan204中[switchSB-Ethernet0/0/1]quit[switchSB]interfacevlan204[switchSB-Vlanif204]ipaddress54//為虛擬網(wǎng)設(shè)置ip,作為相應(yīng)虛擬網(wǎng)中PC的網(wǎng)關(guān)[switchSB-Vlanif204]quit[switchSB]vlan205//創(chuàng)建vlan205[switchSB-vlan205]quit[switchSB]interfaceEthernet0/0/8[switchSB-Ethernet0/0/8]portlink-typeaccess//端口類型為access[switchSB-Ethernet0/0/8]portdefaultvlan205//端口加入vlan205中[switchSB-Ethernet0/0/8]quit[switchSB]interfacevlan205[switchSB-Vlanif205]ipaddress54//為虛擬網(wǎng)設(shè)置ip,作為相應(yīng)虛擬網(wǎng)中PC的網(wǎng)關(guān)[switchSA-Vlanif206]quit[switchSA]vlan206//創(chuàng)建vlan206[switchSA-vlan206]quit[switchSA]interfaceEthernet0/0/3[switchSA-Ethernet0/0/3]portlink-typeaccess//端口類型為access[switchSA-Ethernet0/0/3]portdefaultvlan206//端口加入vlan206中[switchSA-Ethernet0/0/3]quit[switchSA]interfacevlan206[switchSA-Vlanif206]ipaddress54//為虛擬網(wǎng)設(shè)置ip作為相應(yīng)虛擬網(wǎng)中服務(wù)器的網(wǎng)關(guān)[switchSA-Vlanif206]quit[switchSA]interfaceEthernet0/0/4[switchSA-Ethernet0/0/4]portlink-typeaccess//端口類型為access[switchSA-Ethernet0/0/4]portdefaultvlan206//端口加入vlan206中[switchSA-Ethernet0/0/4]quit[switchSA]interfaceEthernet0/0/5[switchSA-Ethernet0/0/5]portlink-typeaccess//端口類型為access[switchSA-Ethernet0/0/5]portdefaultvlan206//端口加入vlan206中[switchSA-Ethernet0/0/5]quit[switchSA]interfaceEthernet0/0/6[switchSA-Ethernet0/0/6]portlink-typeaccess//端口類型為access[switchSA-Ethernet0/0/6]portdefaultvlan206//端口加入vlan206中[switchSA-Ethernet0/0/6]quit[switchSA]interfaceEthernet0/0/7[switchSA-Ethernet0/0/7]portlink-typeaccess//端口類型為access[switchSA-Ethernet0/0/7]portdefaultvlan206//端口加入vlan206中[switchSA-Ethernet0/0/7]quit[switchSA]vlan207//創(chuàng)建vlan3[switchSA-vlan207]quit[switchSA]interfaceEthernet0/0/24.1[switchSA-Ethernet0/0/24.1]portlink-typeaccess//端口類型為access[switchSA-Ethernet0/0/24.1]portdefaultvlan207//端口加入vlan207中[switchSA-Ethernet0/0/24.1]quit[switchSA]interfacevlan207[switchSA-Vlanif207]ipaddress//為虛擬網(wǎng)設(shè)置ip[switchSA-Vlanif207]quit[switchSBvlan208//創(chuàng)建vlan208[switchSB-vlan208]quit[switchSB]interfaceEthernet0/0/24.1[switchSB-Ethernet0/0/24.1]portlink-typeaccess//端口類型為access[switchSB-Ethernet0/0/24.1]portdefaultvlan208//端口加入vlan208中[switchSBEthernet0/0/24.1]quit[switchSB]nterfacevlan208[switchSBVlanif208ipaddress255.255.2550//為虛擬網(wǎng)設(shè)置ip[switchSBVlanif208quit為實現(xiàn)多臺電腦的連接,用Ethernet0/0/3、Enet0/0/4、thernet0/0/5thernet0/0/6Ethernet0/0/7別連接一個二層交換機,并設(shè)置這幾個端口的類型為trunk具體如下:[switchSA]interfaceEthernet0/0/3[switchSA-Ethernet0/0/3portlink-typetrunk//端口類型為trunk[switchSA-Ethernet0/0/3porttrunkpermitvlanall[switchSA-Ethernet0/0/3quit[switchSA]interfaceEthernet0/0/4[switchSA-Ethernet0/0/4]portlink-typetrunk//端口類型為trunk[switchSA-Ethernet0/0/4]porttrunkpermitvlanall[switchSA-Ethernet0/0/4]quit[switchSA]interfaceEthernet0/0/5[switchSA-Ethernet0/0/5portlink-typetrunk//端口類型為trunk[switchSA-Ethernet0/0/5porttrunkpermitvlanall[switchSA-Ethernet0/0/5quit[switchSA]interfaceEthernet0/0/6[switchSA-Ethernet0/0/6portlink-typetrunk//端口類型為trunk[switchSA-Ethernet0/0/6porttrunkpermitvlanall[switchSA-Ethernet0/0/6quit[switchSA]interfaceEthernet0/0/7[switchSA-Ethernet0/0/7portlink-typetrunk//端口類型為trunk[switchSA-Ethernet0/0/7porttrunkpermitvlanall[switchSA-Ethernet0/0/7quit(2)配置相應(yīng)部門的PC機,ip地址,網(wǎng)關(guān)為其所在虛擬局域網(wǎng)的ip地址這樣可以實現(xiàn)內(nèi)網(wǎng)之間的PC的相互通信。設(shè)置默認路由,使得交換機連接的所有PC都可以訪問到路由器上。[switchiproute-staticvlan207的ip,下一跳路由器)[switchiproute-staticvlan208的ip,下一跳路由器)設(shè)置遠程訪問交換機[switchSA]User-interfacevty04[switchSA-ui-vty0-4]authentication-modepassword[switchSA-ui-vty0-4]setauthenticationpasswordcipherhuawei[switchSA-ui-vty0-4]userprivilegelevel15設(shè)置E部門不能訪問財務(wù)服務(wù)器這里有兩種方法一種是簡單的acl訪問控制列表,另一種是流行為,流分類,流策略,但是都要在E部門的vlan205下的端口配置(這里只配置一個端口),在財務(wù)服務(wù)器的端口下配置是失敗的。方法一:[switchSB]acl3000[switchSB-acl-adv-3000]rule5denyipsourcedestination[switchSB-acl-adv-3000]quit[switchSB]interfaceEthernet0/0/9[switchSB-Ethernet0/0/1]traffic-filterinboundacl3000[switchSB-Ethernet0/0/1]quitE部門不能訪問財務(wù)服務(wù)器Ip為6的不能ping通7限制用戶下載的速度在不同部門的端口下限制速度,分別下載大小相近的文件,觀察速度。設(shè)置A部門Ethernet0/0/1端口的速度[switchSA]Ethernet0/0/1[switchSA-Ethernet0/0/1]qoslrinboundcir1024[switchSA-Ethernet0/0/1]quit[switchSA]Ethernet0/0/24.1[switchSA-Ethernet0/0/24.1]qoslrinboundcir2048displayqoslrinboundinterfaceEthernet0/0/1displayqoslrinboundinterfaceEthernet0/0/24.1速度分別為Ethernet0/0/1:1024kbpsEthernet0/0/9:2048kbps保存配置[switchSA]savehappy4333.zip[switchSA]starpupsaved-configurationhappy4333.zip在E-mail服務(wù)器上配置ftp站點,文件放到ftp上<switch433>ftp7Trying...7PressCTRL+KtoabortConnectedto7.220MicrosoftFTPServiceUser(7:(none)):anonymous331Anonymousaccessallowed,sendidentity(e-mailname)aspassword.Enterpassword:230Anonymoususerloggedin.[ftp]puthappy4333.zip200PORTcommandsuccessful.150OpeningASCIImodedataconnectionforhappy4332.zip.226Transfercomplete.FTP:968byte(s)sentin0.330second(s)2.93Kbyte(s)/sec.3.2路由器配置1、實現(xiàn)內(nèi)網(wǎng)的PC可以訪問外網(wǎng),并且發(fā)布WEB服務(wù)器<Huawei>system-view[Huawei]sysnamerouterRA[routerRA](1)創(chuàng)建vlan208,并讓連接交換機的端口Ethernet0/0/24.1加入vlan208[routerRA]vlan208[routerRA-vlan8]quit[routerRA]interfaceEthernet0/0/24.1[routerRA-Ethernet0/0/0]portlink-typeaccess[routerRA-Ethernet0/0/0]portdefaultvlan8[routerRA-Ethernet0/0/0]quit//給vlan208分配ip地址[routerRA]interfacevlan208[routerRA-Vlanif8]ipaddress[routerRA-Vlanif208]quit(2)設(shè)置路由器上連接外網(wǎng)的端口GigabitEthernet0/0/0[routerRA]interfaceGigabitEthernet0/0/0[routerRA-GigabitEthernet0/0/0]ipaddress7[routerRA-GigabitEthernet0/0/0]quit(3)設(shè)置路由器的默認路由,靜態(tài)路由連到外網(wǎng)的默認路由,下一跳是外網(wǎng)的某個端口ip[routerRA]iproute-static54靜態(tài)路由,連到交換機上的A—E部門以及路由器組,即vlan201—vlan206[routerRA]iproute-static[routerRA]iproute-static[routerRA]iproute-stati[routerRA]iproute-static[routerRA]iproute-static[routerRA]iproute-static注:vlan206不用配置,因為路由器和交換機之間vlan206上是直接交付的(4)通過natoutbound轉(zhuǎn)換內(nèi)網(wǎng)的ip地址到外網(wǎng)的ip地址,這樣做節(jié)省了ipv4的地址,對外看來只有幾個ip地址。網(wǎng)段轉(zhuǎn)換為6到7[routerRA]nataddress-group11718[routerRA]acl2000[routerRA-acl-basic-2000]rule5permitsource55[routerRA-acl-basic-2000]quit[routerRA]interfaceGigabitEthernet0/0/24[rootRAigabitEthernet0/0/24]natoutbound2000address-group1[routerRA]nataddress-group267[routerRA]acl2001[routerRA-acl-basic-2001]rule6permitsource55[routerRA-acl-basic-2001]quit[routerRA]interfaceGigabitEthernet0/0/24[rootRA-GigabitEthernet0/0/0]natoutbound2001address-group2(5)WEB服務(wù)器的發(fā)布(對于外網(wǎng)web服務(wù)器的ip為54:80)[routerRA]interfaceGigabitEthernet0/0/24[rootRA-GigabitEthernet0/0/24]natserverprotocoltcpglobal54wwwinside7在PC機上配置:1)進入控制面板->管理工具->信息服務(wù)->本地計算機->網(wǎng)站->默認網(wǎng)站右鍵,選擇屬性->網(wǎng)站:IP地址變?yōu)閣eb服務(wù)器端口IP(1)端口號是80->主目錄:本地路徑:c:/inetpub/wwwroot勾選寫入選項->文檔:默認文檔下只添加web.html其余的刪除2)在根目錄下創(chuàng)建web.html3)WEB發(fā)布在根目錄下創(chuàng)建web.html4)web發(fā)布效果圖Ip為49的外網(wǎng)的主機上測試外網(wǎng)電腦ip49訪問web服務(wù)器的ip為45:802、配置VPN使出差用戶可以任意訪問內(nèi)網(wǎng),就像在內(nèi)網(wǎng)一樣1)配置aaalocal-uservpn_SApasswordcipherhuaweilocal-uservpn_SAservice-typepppquitippool1gateway-listnetworkmaskquitinterfaceVirtual-Template1pppauthentication-modechapremoteaddresspool1ipaddressquitl2tp-group1undotunnelauthenticationallowl2tpvirtual-template1tunnelnametunnel_SAquitl2tpenablepc機的設(shè)置:運行窗口輸入regedit,確認HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Rasman\Parameters新建DWORD:Name:ProhibitIpSecType:REG_DWORDValue:1更改注冊表后重啟PC。2)效果顯示創(chuàng)建虛擬網(wǎng)絡(luò),并且修改屬性ip地址填寫路由器連接外網(wǎng)的接口的ip地址連接后獲得內(nèi)網(wǎng)的一個ip:54此時測試該主機可以ping通內(nèi)網(wǎng)的主機ping7E-mail服務(wù)器3、路由器的配置顯示#sysnameroot436#snmp-agentlocal-engineid800007DB0310478029772Esnmp-agent#dropillegal-macalarm#l2tpena#vlanbatch8#settransceiver-monitoringdisable#aclnumber

溫馨提示

  • 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)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

最新文檔

評論

0/150

提交評論