




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認(rèn)領(lǐng)
文檔簡介
1、精選優(yōu)質(zhì)文檔-傾情為你奉上課 程 設(shè) 計報告 學(xué)年學(xué)期 課程名稱 計算機網(wǎng)絡(luò)課程設(shè)計 院 系 計算機系專 業(yè) 姓 名 學(xué) 號 指導(dǎo)教師 二一四 年 六 月 五 日子網(wǎng)規(guī)劃與實現(xiàn)1 局域網(wǎng)劃分子網(wǎng)的背景隨著網(wǎng)絡(luò)的發(fā)展,局域網(wǎng)的普遍使用,使得在局域網(wǎng)中子網(wǎng)劃分也是最基本要求。在劃分子網(wǎng)基于vlan的來劃分。本篇就要為大家介紹交換機的一個最常見技術(shù)應(yīng)用子網(wǎng)劃分技術(shù),并針對某一類公司子網(wǎng)劃分配置以實例的方式向大家簡單介紹其配置方法,以及利用路由器來訪問控制從而達到最初級的安全策略。2 需求分析在一個網(wǎng)絡(luò)上,通信量和主機的數(shù)量成比例,而且和每個主機產(chǎn)生的通信量的和成比例。隨著網(wǎng)絡(luò)的規(guī)模越來越大,這種通信
2、量可能達到這樣的一種地步,即超出了介質(zhì)的能力,而且網(wǎng)絡(luò)性能開始下降。在一個廣域網(wǎng)中,減少廣域網(wǎng)上不必要的通信量也是一個主要的話題。在研究這樣的問題的過程中會發(fā)現(xiàn),一組主機傾向于互相通信,而且和這個組外的通信非常少。這些分組可以按照一般的網(wǎng)絡(luò)資源的用途來說明,或者按照幾何距離來劃分,它使局域網(wǎng)之間的低速廣域網(wǎng)連接成為必要。通過使用子網(wǎng),我們可以將網(wǎng)絡(luò)分段,因而隔離各個組之間的通信量。為在這些網(wǎng)段之間通信,必須提供一種方法以從一個段向另一個段傳遞通信量。由于公司從ISP所獲得的是一個地址塊,為了更好的通信以及便于更好的管理,因此將本企業(yè)或者公司的一個局域網(wǎng)劃分成一個個子網(wǎng),將各個子網(wǎng)分配到不同的部
3、門,這樣便于各個從而達到管理網(wǎng)絡(luò)高效的結(jié)果。設(shè)一個公司具有3個部門,生產(chǎn)部門、管理部門、銷售部門,其中生產(chǎn)部門有主機220臺,管理部門共有 128臺主機,銷售部門共有150主機。組網(wǎng)需要各個部門之間能夠通信且相互獨立,能夠?qū)ν馓峁﹚eb服務(wù),但是外網(wǎng)只能允許訪問該公司的服務(wù)器,而不能訪問各個部門的主機。并且以后能夠網(wǎng)絡(luò)升級3 邏輯設(shè)計由需求分析可知,該網(wǎng)絡(luò)的要求比較簡單,由于存在三個部門,三個部門相互獨立,該公司需要對外提供web服務(wù),因此該公司需要劃分三個子網(wǎng)與一個DMZ區(qū)域,分別是生產(chǎn)部子網(wǎng)、管理部子網(wǎng)、銷售部子網(wǎng),而服務(wù)器放在DMZ區(qū)域,具體如下:生產(chǎn)部:子網(wǎng)為:192.168.2.0/
4、24 網(wǎng)關(guān)為:192.168.2.1,子網(wǎng)內(nèi)有192.168.2.2與192.168.2.3兩個iP地址為代表。管理部:子網(wǎng)為:192.168.3.0/24 網(wǎng)關(guān)為:192.168.3.1,子網(wǎng)內(nèi)有192.168.3.2與192.168.3.3兩個iP地址為代表。銷售部:子網(wǎng)為:192.168.4.0/24 網(wǎng)關(guān)為:192.168.4.1,子網(wǎng)內(nèi)有192.168.4.2與192.168.4.3兩個iP地址為代表。DMZ:子網(wǎng)為:192.168.254.0/24 網(wǎng)關(guān)為:192.168.254.1,子網(wǎng)內(nèi)有ip 地址為192.168.254.2的主機提供web服務(wù)為代表。由于只有web服務(wù)提供,
5、外網(wǎng)不能訪問給公司的內(nèi)網(wǎng),因此需要在路由器添加訪問控制列表,用來對源地址進行過濾,由于需要對源地址以及目的地址進行控制,因此需要用擴展的ACL。4 物理設(shè)計4.1 拓撲圖是專心-專注-專業(yè)4.2 核心交換機的命令Switch>enSwitch#conf tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#vlan 10Switch(config-vlan)#name vlan10Switch(config-vlan)#vlan 20Switch(config-vlan)#name vlan
6、20Switch(config-vlan)#vlan 30Switch(config-vlan)#name vlan30Switch(config-vlan)#exitSwitch(config)#int f0/1Switch(config-if)#no swSwitch(config-if)#no switchport Switch(config-if)#ip add 192.168.6.2 255.255.255.0Switch(config)#int f0/2Switch(config-if)#swSwitch(config-if)#switchport mode trunkComman
7、d rejected: An interface whose trunk encapsulation is "Auto" can not be configured to "trunk" mode.Switch(config-if)#switchport trunk allowed vlan allSwitch(config-if)#sSwitch(config-if)#swiSwitch(config-if)#switchport trunk enSwitch(config-if)#switchport trunk encapsulation dotS
8、witch(config-if)#switchport trunk encapsulation dot1q Switch(config-if)#int f0/3Switch(config-if)#switchport mode trunkCommand rejected: An interface whose trunk encapsulation is "Auto" can not be configured to "trunk" mode.Switch(config-if)#switchport trunk allowed vlan allSwitc
9、h(config-if)#switchport trunk encapsulation dot1q Switch(config-if)#int f0/4Switch(config-if)#switchport mode trunkCommand rejected: An interface whose trunk encapsulation is "Auto" can not be configured to "trunk" mode.Switch(config-if)#switchport trunk allowed vlan allSwitch(co
10、nfig-if)#switchport trunk encapsulation dot1q Switch(config-if)#exitSwitch(config)#int vlan10Switch(config-if)#ip add 192.168.2.1 255.255.255.0Switch(config-if)#int vlan20Switch(config-if)#ip add 192.168.3.1 255.255.255.0Switch(config-if)#int vlan30Switch(config-if)#ip add 192.168.4.1 255.255.255.0S
11、witch(config-if)#exitSwitch(config)#ip route 0.0.0.0 0.0.0.0 192.168.6.1Switch(config)#ip rouSwitch(config)#ip routSwitch(config)#ip routingSwitch(config)#endSwitch#%SYS-5-CONFIG_I: Configured from console by consoleSwitch#wrBuilding configuration.OKSwitch#4.3 生產(chǎn)部門交換機的配置命令Switch>enSwitch#conf tEn
12、ter configuration commands, one per line. End with CNTL/Z.Switch(config)#vlan 10Switch(config-vlan)#name vlan10Switch(config-vlan)#exitSwitch(config)#int f0/1Switch(config-if)#swiSwitch(config-if)#switchport accSwitch(config-if)#switchport access vlan 10Switch(config-if)#int f0/2Switch(config-if)#sw
13、itchport access vlan 10Switch(config-if)#int f0/3Switch(config-if)#switchport access vlan 10Switch(config-if)#exitSwitch(config)#endSwitch#%SYS-5-CONFIG_I: Configured from console by consoleSwitch#wrBuilding configuration.OKSwitch#4.4 門交換機配置命令Switch>enSwitch#conf tEnter configuration commands, on
14、e per line. End with CNTL/Z.Switch(config)#vlan 20Switch(config-vlan)#name vlan20Switch(config-vlan)#exitSwitch(config)#int f0/1Switch(config-if)#swiSwitch(config-if)#switchport accSwitch(config-if)#switchport access vlan 20Switch(config-if)#int f0/2Switch(config-if)#switchport access vlan 20Switch(
15、config-if)#int f0/3Switch(config-if)#switchport access vlan 20Switch(config-if)#exitSwitch(config)#endSwitch#%SYS-5-CONFIG_I: Configured from console by consolewrBuilding configuration.OKSwitch#4.5 門交換機配置命令Switch>enSwitch#conf tEnter configuration commands, one per line. End with CNTL/Z.Switch(co
16、nfig)#vlan 30Switch(config-vlan)#name vlan30Switch(config-vlan)#exitSwitch(config)#int f0/1Switch(config-if)#swiSwitch(config-if)#switchport accSwitch(config-if)#switchport access vlan 30Switch(config-if)#int f0/2Switch(config-if)#switchport access vlan 30Switch(config-if)#int f0/3Switch(config-if)#
17、switchport access vlan 30Switch(config-if)#exitSwitch(config)#endSwitch#%SYS-5-CONFIG_I: Configured from console by consolewrBuilding configuration.OKSwitch#4.6的路由的配置命令Router>enRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#int f0/0Router(config-if)#ip add
18、 192.168.6.1 255.255.255.0Router(config-if)#int f0/1Router(config-if)#ip add 192.168.254.1 255.255.255.0Router(config-if)#int s0/1/0Router(config-if)#ip add % Incomplete command.Router(config-if)#ip add 172.16.1.1 255.255.255.0Router(config-if)#clRouter(config-if)#clock rate 64000Router(config-if)#n
19、o shut%LINK-5-CHANGED: Interface Serial0/1/0, changed state to downRouter(config-if)#int f0/1Router(config-if)#no shutRouter(config-if)#%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to upRouter(config-if)
20、#int f0/0Router(config-if)#no shutRouter(config-if)#%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upRouter(config-if)#int s0/1/0Router(config-if)#no shutRouter(config-if)#exitRouter(config)#ip route 19
21、2.168.0.0 255.255.0 192.168.6.2 % Invalid input detected at '' marker.Router(config)#ip route 192.168.0.0 255.255.0.0 192.168.6.2Router(config)#ip route 192.168.254.2 255.255.255.255 192.168.254.255Router(config)#ip route 192.168.5.0 255.255.0.0 172.16.1.2Router(config)#endRouter#%SYS-5-CONF
22、IG_I: Configured from console by consolewrBuilding configuration.OKRouter#4.7 安全性的約束其命令是:Switch>enSwitch#cong t % Invalid input detected at '' marker.Switch#conf tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#accSwitch(config)#access-list 101 permit icmp any h
23、ost 192.168.254.2 eq 80Switch(config)#int f0/1Switch(config-if)#ip accSwitch(config-if)#ip access-group 101 inSwitch(config-if)#exitSwitch(config)#endSwitch#%SYS-5-CONFIG_I: Configured from console by consolewrBuilding configuration.OK5 測試結(jié)果如下5.1 外網(wǎng)測試Ping 內(nèi)網(wǎng)服務(wù)器時PC>ping 192.168.254.2Pinging 192.16
24、8.254.2 with 32 bytes of data:Reply from 192.168.254.2: bytes=32 time=10ms TTL=126Reply from 192.168.254.2: bytes=32 time=1ms TTL=126Reply from 192.168.254.2: bytes=32 time=1ms TTL=126Reply from 192.168.254.2: bytes=32 time=2ms TTL=126Ping statistics for 192.168.254.2: Packets: Sent = 4, Received =
25、4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds: Minimum = 1ms, Maximum = 10ms, Average = 3msPing內(nèi)網(wǎng)的主機結(jié)果PC>ping 192.168.2.2Pinging 192.168.2.2 with 32 bytes of data:Reply from 192.168.6.2: Destination host unreachable.Reply from 192.168.6.2: Destination host unreachable.Reply from 192.168.6.2: Destination host unreachable.Reply from 192.168.6.2: Destination host unreachable.Ping statistics for 192.168.2.2: Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),5.2 內(nèi)網(wǎng)測試內(nèi)部主機ping服務(wù)器的內(nèi)容是:PC>ping 192.168.254.2Pinging 192.168
溫馨提示
- 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)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 拼音漢語拼音課件
- 廣東職業(yè)技術(shù)學(xué)院《建筑制圖與測繪》2023-2024學(xué)年第二學(xué)期期末試卷
- 停水改造施工方案
- 手衛(wèi)生規(guī)范及洗手方法
- 2024年8月度安全心理學(xué)實驗教學(xué)數(shù)據(jù)可視化分析模型
- 護理操作口腔護理
- 教育培訓(xùn)機構(gòu)工作計劃
- 山西省衛(wèi)生類事業(yè)單位公開招聘(中藥)歷年考試真題庫及答案
- 教育的四個支柱
- 建筑施工單位培訓(xùn)準(zhǔn)備
- 2024年廣東省五年一貫制學(xué)校招生考試數(shù)學(xué)試卷
- 2024年河南鄭州黃河文化旅游發(fā)展有限公司招聘筆試真題
- 學(xué)校德育工作與心理健康教育的融合研究
- 數(shù)學(xué)-廣東省廣州市2025屆高三一模試題和解析
- 2024年關(guān)于突發(fā)事件應(yīng)急預(yù)案(34篇)
- 高中入團考試試題及答案
- 2025-2030中國供熱行業(yè)發(fā)展前景及發(fā)展策略與投資風(fēng)險研究報告
- 2025年天津公安警官職業(yè)學(xué)院單招職業(yè)技能測試題庫匯編
- 浙江省精誠聯(lián)盟2024-2025學(xué)年高二下學(xué)期3月月考英語試題(原卷版+解析版)
- 人教五四 六年級 下冊 語文 第五單元《中國有能力解決好吃飯問題 第一課時》課件
- 北京中考語文常考知識點(積累背誦)-2025年北京中考語文二輪復(fù)習(xí)
評論
0/150
提交評論