版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
1、課 程 設 計報告 學年學期 課程名稱 計算機網絡課程設計 院 系 計算機系專 業(yè) 姓 名 學 號 指導教師 二一四 年 六 月 五 日子網規(guī)劃與實現1 局域網劃分子網的背景隨著網絡的發(fā)展,局域網的普遍使用,使得在局域網中子網劃分也是最基本要求。在劃分子網基于vlan的來劃分。本篇就要為大家介紹交換機的一個最常見技術應用子網劃分技術,并針對某一類公司子網劃分配置以實例的方式向大家簡單介紹其配置方法,以及利用路由器來訪問控制從而達到最初級的安全策略。2 需求分析在一個網絡上,通信量和主機的數量成比例,而且和每個主機產生的通信量的和成比例。隨著網絡的規(guī)模越來越大,這種通信量可能達到這樣的一種地步,
2、即超出了介質的能力,而且網絡性能開始下降。在一個廣域網中,減少廣域網上不必要的通信量也是一個主要的話題。在研究這樣的問題的過程中會發(fā)現,一組主機傾向于互相通信,而且和這個組外的通信非常少。這些分組可以按照一般的網絡資源的用途來說明,或者按照幾何距離來劃分,它使局域網之間的低速廣域網連接成為必要。通過使用子網,我們可以將網絡分段,因而隔離各個組之間的通信量。為在這些網段之間通信,必須提供一種方法以從一個段向另一個段傳遞通信量。由于公司從ISP所獲得的是一個地址塊,為了更好的通信以及便于更好的管理,因此將本企業(yè)或者公司的一個局域網劃分成一個個子網,將各個子網分配到不同的部門,這樣便于各個從而達到管
3、理網絡高效的結果。設一個公司具有3個部門,生產部門、管理部門、銷售部門,其中生產部門有主機220臺,管理部門共有 128臺主機,銷售部門共有150主機。組網需要各個部門之間能夠通信且相互獨立,能夠對外提供web服務,但是外網只能允許訪問該公司的服務器,而不能訪問各個部門的主機。并且以后能夠網絡升級3 邏輯設計由需求分析可知,該網絡的要求比較簡單,由于存在三個部門,三個部門相互獨立,該公司需要對外提供web服務,因此該公司需要劃分三個子網與一個DMZ區(qū)域,分別是生產部子網、管理部子網、銷售部子網,而服務器放在DMZ區(qū)域,具體如下:生產部:子網為:網關為:,子網內有與兩個iP地址為代表。管理部:子
4、網為:網關為:,子網內有192.168.3.2與192.168.3.3兩個iP地址為代表。銷售部:子網為:192.168.4.0/24 網關為:192.168.4.1,子網內有192.168.4.2與192.168.4.3兩個iP地址為代表。DMZ:子網為: 網關為:,子網內有ip 地址為192.168.254.2的主機提供web服務為代表。由于只有web服務提供,外網不能訪問給公司的內網,因此需要在路由器添加訪問控制列表,用來對源地址進行過濾,由于需要對源地址以及目的地址進行控制,因此需要用擴展的ACL。4 物理設計4.1 拓撲圖是4.2 核心交換機的命令Switch>enSwitch
5、#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 vlan20Switch(config-vlan)#vlan 30Switch(config-vlan)#name vlan30Switch(config-vlan)#exitSwitch(config)#int f0/1Switch(config-if)
6、#no swSwitch(config-if)#no switchport Switch(config)#int f0/2Switch(config-if)#swSwitch(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 allSwit
7、ch(config-if)#sSwitch(config-if)#swiSwitch(config-if)#switchport trunk enSwitch(config-if)#switchport trunk encapsulation dotSwitch(config-if)#switchport trunk encapsulation dot1q Switch(config-if)#int f0/3Switch(config-if)#switchport mode trunkCommand rejected: An interface whose trunk encapsulatio
8、n is "Auto" can not be configured to "trunk" mode.Switch(config-if)#switchport trunk allowed vlan allSwitch(config-if)#switchport trunk encapsulation dot1q Switch(config-if)#int f0/4Switch(config-if)#switchport mode trunkCommand rejected: An interface whose trunk encapsulation is
9、 "Auto" can not be configured to "trunk" mode.Switch(config-if)#switchport trunk allowed vlan allSwitch(config-if)#switchport trunk encapsulation dot1q Switch(config-if)#exitSwitch(config)#int vlan10Switch(config-if)#int vlan20Switch(config-if)#int vlan30Switch(config-if)#exitSwi
10、tch(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 生產部門交換機的配置命令Switch>enSwitch#conf tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#vl
11、an 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)#switchport access vlan 10Switch(config-if)#int f0/3Switch(config-if)#switchpo
12、rt 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, one per line. End with CNTL/Z.Switch(config)#vlan 20Switch(config-vlan)#name
13、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(config-if)#int f0/3Switch(config-if)#switchport access vlan 20Switch(config
14、-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(config)#vlan 30Switch(config-vlan)#name vlan30Switch(config-vlan)#exitSwitch(
15、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)#switchport access vlan 30Switch(config-if)#exitSwitch(config)#endSwitch#%SY
16、S-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)#int f0/1Router(config-if)#int s0/1/0Router(config-if)#ip add % Incomplete command
17、.Router(config-if)#clRouter(config-if)#clock rate 64000Router(config-if)#no 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 p
18、rotocol on Interface FastEthernet0/1, changed state to upRouter(config-if)#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/
19、0Router(config-if)#no shutRouter(config-if)#exit % Invalid input detected at '' marker.Router(config)#endRouter#%SYS-5-CONFIG_I: Configured from console by consolewrBuilding configuration.OKRouter#4.7 安全性的約束其命令是:Switch>enSwitch#cong t % Invalid input detected at '' marker.Switch#c
20、onf tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#acc 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.O
21、K5 測試結果如下5.1 外網測試Ping 內網服務器時Pinging 192.168.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
22、.168.254.2: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds: Minimum = 1ms, Maximum = 10ms, Average = 3msPing內網的主機結果Pinging 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 hos
23、t 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 內網測試內部主機ping服務器的內容是:Pinging 192.168.254.2 with 32 bytes of data:Reply from 192.168.254.2: bytes=32 time=1ms TTL=126Reply from
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
- 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 二零二五年度新型城鎮(zhèn)化項目土建工程承包合同書2篇
- N95型防護口罩批量采購合同樣本
- 二零二五年度國有企業(yè)內部控制制度風險評估與改進合同
- 二零二五年度農產品質量安全保險代理合同
- 2025年度啤酒行業(yè)知識產權保護合同
- 二零二五版企業(yè)員工福利管理與優(yōu)化合同3篇
- 2025年度專業(yè)廚房承包及綠色環(huán)保改造合同3篇
- 2025年度個人住宅裝修借款合同書4篇
- 2025年度停車場綠化及節(jié)能減排合同
- 2024版青島市區(qū)房產交易合同范本
- 圖像識別領域自適應技術-洞察分析
- 個體戶店鋪租賃合同
- 禮盒業(yè)務銷售方案
- 二十屆三中全會精神學習試題及答案(100題)
- 小學五年級英語閱讀理解(帶答案)
- 仁愛版初中英語單詞(按字母順序排版)
- (正式版)YS∕T 5040-2024 有色金屬礦山工程項目可行性研究報告編制標準
- 小學一年級拼音天天練
- 新概念英語第二冊考評試卷含答案(第49-56課)
- 【奧運會獎牌榜預測建模實證探析12000字(論文)】
- 救生艇筏、救助艇基本知識課件
評論
0/150
提交評論