動態(tài)地址轉(zhuǎn)換.doc_第1頁
動態(tài)地址轉(zhuǎn)換.doc_第2頁
動態(tài)地址轉(zhuǎn)換.doc_第3頁
動態(tài)地址轉(zhuǎn)換.doc_第4頁
免費(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)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論