



免費(fèi)預(yù)覽已結(jié)束,剩余1頁可下載查看
下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐ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步:配置動態(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)證測試:在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. 在配置的時候不要把inside和outside應(yīng)用接口弄錯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等.壓縮文件請下載最新的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)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 市政工程常見材料及性能分析試題及答案
- 完整工作經(jīng)歷與崗位證明文書(5篇)
- 智慧供應(yīng)鏈管理 課件 第七章 智慧采購管理
- 旅游目的地文化與特色知識題
- 經(jīng)濟(jì)師考試預(yù)測試題及答案準(zhǔn)備
- 數(shù)字化時代的品牌轉(zhuǎn)型策略計劃
- 班級心理健康周的活動安排計劃
- 經(jīng)濟(jì)法與企業(yè)責(zé)任試題及答案
- 班主任應(yīng)對突發(fā)事件的能力計劃
- 公共關(guān)系的職業(yè)發(fā)展路徑試題及答案
- 1.1 細(xì)胞生活的環(huán)境 課件高二上學(xué)期生物人教版選擇性必修1
- 2025年全國防災(zāi)減災(zāi)日專題培訓(xùn)課件
- 2025-2030中國氯氧化鉍行業(yè)市場發(fā)展趨勢與前景展望戰(zhàn)略研究報告
- 視頻監(jiān)控介紹課件
- 跨學(xué)科實(shí)踐制作微型密度計人教版物理八年級下學(xué)期
- 2025屆高考語文作文備考之審題立意30道選擇題訓(xùn)練(附答案)
- 21. 三黑和土地 課件
- 挖掘機(jī)理論試題及答案
- 2025年銀行從業(yè)資格考試個人理財真題卷權(quán)威解讀
- 興安盟2025年興安盟事業(yè)單位春季專項(xiàng)人才引進(jìn)30人筆試歷年參考題庫附帶答案詳解
- 西部計劃考試試題及答案
評論
0/150
提交評論