



免費(fèi)預(yù)覽已結(jié)束,剩余1頁可下載查看
下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
動(dòng)態(tài)地址轉(zhuǎn)換實(shí)驗(yàn)步驟第1步:基本配置R1(config)#int f0/0R1(config-if)#ip add 192.168.1.254 255.255.255.0R1(config-if)#no shutR1(config-if)#int s1/0R1(config-if)#ip add 200.20.20.1 255.255.255.0R1(config-if)#clock rate 64000R1(config-if)#no shutR2(config)#int s1/0R2(config-if)#ip add 200.20.20.2 255.255.255.0R2(config-if)#no shutR2(config)#int loop 0R2(config-if)#ip add 2.2.2.2 255.255.255.0第2步:配置路由協(xié)議R1(config)#route rip R1(config-router)#version 2R1(config-router)#no auto-summary R1(config-router)#net 200.20.20.0R1(config-router)#exitR2(config)#router rip R2(config-router)#ver 2R2(config-router)#no auR2(config-router)#net 200.20.20.0R2(config-router)#net 2.0.0.0R2(config-router)#exit第3步:配置動(dòng)態(tài)內(nèi)部源地址轉(zhuǎn)換R1(config)#ip nat pool jinghua 200.20.20.100 200.20.20.200 network 255.255.255.0R1(config)#ip nat inside source list 1 pool jinghuaR1(config)#access-list 1 permit 192.168.1.0 0.0.0.255R1(config)#int f0/0R1(config-if)#ip nat insideR1(config-if)#int s1/0R1(config-if)#ip nat outside R1(config-if)#exit驗(yàn)證測(cè)試:在PC1、PC2上分別PING 2.2.2.2在R1上顯示轉(zhuǎn)換表:R1#sh ip nat translations Pro Inside global Inside local Outside local Outside global- 200.20.20.100 192.168.1.1 - - 200.20.20.101 192.168.1.2 - -六、注意事項(xiàng)1. 在配置的時(shí)候不要把inside和outside應(yīng)用接口弄錯(cuò)2. 要加上能能使數(shù)據(jù)包外發(fā)的路由協(xié)議。七、參考配置R1#sh runBuilding configuration.Current configuration : 834 bytes!version 12.4no service password-encryption!hostname R1!ip ssh version 1!interface FastEthernet0/0 ip address 192.168.1.254 255.255.255.0 ip nat inside duplex auto speed auto!interface FastEthernet0/1 no ip address duplex auto speed auto shutdown!interface Serial1/0 ip address 200.20.20.1 255.255.255.0 ip nat outside clock rate 64000!interface Serial1/1 no ip address shutdown!interface Serial1/2 no ip address shutdown!interface Serial1/3 no ip address shutdown!interface Vlan1 no ip address shutdown!router rip version 2 network 200.20.20.0 no auto-summary!ip nat pool jinghua 200.20.20.100 200.20.20.200 netmask 255.255.255.0ip nat inside source list 1 pool jinghuaip classless!access-list 1 permit 192.168.1.0 0.0.0.255!line con 0line vty 0 4 login!EndR2#sh runBuilding configuration.Current configuration : 689 bytes!version 12.4no service password-encryption!hostname R2!ip ssh version 1!interface Loopback0 ip address 2.2.2.2 255.255.255.0!interface FastEthernet0/0 no ip address duplex auto speed auto shutdown!interface FastEthernet0/1 no ip address duplex auto speed auto shutdown!interface Serial1/0 ip address 200.20.20.2 255.255.255.0!interface Serial1/1 no ip address shutdown!interface Serial1/2 no ip address shutdown!interface Serial1/3 no ip address shutdown!interface Vlan1 no ip
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 護(hù)理質(zhì)量管控優(yōu)化
- 初中數(shù)學(xué)九年級(jí)下冊(cè)統(tǒng)編教案 5.2二次函數(shù)的圖像和性質(zhì)(第4課時(shí))
- 2025屆高考物理大一輪復(fù)習(xí)課件 第二章 微點(diǎn)突破3“活結(jié)”和“死結(jié)”“動(dòng)桿”和“定桿”
- 老年患者嚴(yán)重跌倒損傷
- 憲法學(xué)自考試題及答案
- 物料倉庫培訓(xùn)試題及答案
- 湖南省部分重點(diǎn)高中2024-2025學(xué)年高一下學(xué)期4月期中聯(lián)考語文試卷(含答案)
- 2025統(tǒng)編版語文四年級(jí)下冊(cè)期末綜合檢測(cè)原創(chuàng)押題(含答案)
- 智慧園區(qū)解決方案4
- 從戰(zhàn)略規(guī)劃到技術(shù)實(shí)施的企業(yè)架構(gòu)設(shè)計(jì)方法論
- 降低壓力性損傷發(fā)生率品管圈課件
- 《嘭嘭嘭》閱讀測(cè)試題(附答案)
- 《CSR培訓(xùn)資料》課件
- 《生活環(huán)境和健康》課件
- 《集體經(jīng)營性建設(shè)用地使用權(quán)出讓監(jiān)管協(xié)議》示范文本(試點(diǎn)試行)
- 工作與個(gè)人生活平衡安排
- 深圳律師法律服務(wù)產(chǎn)品清單(第二版)
- 會(huì)務(wù)服務(wù)投標(biāo)方案(技術(shù)標(biāo))
- 施工組織設(shè)計(jì)(橫道圖+平面圖)
- 變形監(jiān)測(cè)方案
- 小學(xué)語文教學(xué)如何滲透?jìng)鹘y(tǒng)文化教育
評(píng)論
0/150
提交評(píng)論