SlideShare ist ein Scribd-Unternehmen logo
1 von 26
第 13 讲  NAT   网络地址转换
NAT—— 网络地址翻译  ,[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object]
Windows 98 PC Modem Branch office ISDN/analog Small office Central site Frame Relay PRI BRI BRI Frame Relay Async AAA server Async SA 10.1.1.1 166.1.1.1 SA Inside Local  IP Address 10.1.1.1 Inside Global IP  Address 166.1.1.1 NAT table  PAT Frame Relay service
NAT 的优缺点 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object]
NAT  术语 Internet Inside 10.1.1.1 Inside Local IP  Address 10.1.1.1 Simple NAT table Inside Global  IP Address 166.1.1.1 10.1.1.2 Host B 172.20.7.3 A C B A B D SA 10.1.1.1 DA 10.1.1.1 SA 166.1.1.1 DA 166.1.1.1 D C
[object Object],[object Object],[object Object],[object Object]
NAT  功能 ,[object Object],[object Object],[object Object],Inside Local  IP Address 10.1.1.1 10.1.1.2 NAT table Inside Global  IP Address 196.168.2.2 196.168.2.3 Internet Inside 10.1.1.1 10.1.1.2
复用内部的全局地址 ,[object Object],[object Object],[object Object]
复用内部的全局地址 10.1.1.2:1723 10.1.1.1:1024 NAT table 196.168.2.2:1723 196.168.2.2:1024 TCP TCP 10.1.1.3:1492 196.168.2.2:1492 TCP Internet Inside 10.1.1.1 Host B 179.20.7.3 1 3 SA 10.1.1.1 DA 10.1.1.1 SA 196.168.2.2 DA 196.168.2.2 10.1.1.2 10.1.1.3 4 5 2 Host C 179.21.7.3 DA 196.168.2.2 4 Inside Global IP  Address: Port Protocol Inside Local IP  Address: Port 10.1.1.1
NAT 三种类型 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
NAT 表 10.1.1.10 10.1.1.2 Internet ,[object Object],10.1.1.10 179.9.1.50 179.9.1.50 10.1.1.10 全球 IP 本地 IP
NAT 表 10.0.0.3 10.0.0.2 Internet ,[object Object],10.0.0.2 179.9.8.80 179.9.8.81 10.0.0.3 179.9.8.80 10.0.0.2 全球 IP 本地 IP
NAT 表 10.1.1.10 10.0.0.2 Internet ,[object Object],10.0.0.3 179.9.8.80:1555 10.0.0.3:1555 179.9.8.80:1555 10.0.0.3:1555 179.9.8.80:1444 10.0.0.2:1444 全球 IP 本地 IP
NAT 静态映射实例 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object]
动态 NAT 的配置 ip nat pool dyn-nat 192.16.2.1 192.16.2.254   netmask 255.255.255.0 ip nat inside source list 1 pool dyn-nat ! interface Ethernet0 ip address 10.1.1.1 255.255.255.0 ip nat inside ! interface Serial0 ip address 192.16.2.1 255.255.255.0 ip nat outside !  access-list 1 permit 10.1.1.0 0.0.0.255 ! Translate between inside hosts addressed from 10.1.1.0/24 to   the globally unique 192.16.2.0/24 network. This interface connected to the outside world.  This interface connected to the inside network.
PAT 的配置 ( 一 ) ip nat pool ovrld-nat 192.16.2.1 192.16.2.2 netmask 255.255.255.0 ip nat inside source list 1 pool ovrld-nat overload ! interface Ethernet0/0 ip address 10.1.1.1 255.255.255.0 ip nat inside ! interface Serial0/0 ip address 192.16.2.1 255.255.255.0 ip nat outside ! access-list 1 permit 10.1.1.0 0.0.0.255
[object Object],[object Object]
PAT 的配置 ( 二 ) ip nat inside source list 1 int s0 overload ! interface Ethernet0/0 ip address 10.1.1.1 255.255.255.0 ip nat inside ! interface Serial0/0 ip address 192.16.2.1 255.255.255.0 ip nat outside ! access-list 1 permit 10.1.1.0 0.0.0.255
Verifying NAT Router#sh ip nat trans Pro Inside global  Inside local  Outside local  Outside global tcp 192.2.2.1:11003  10.1.1.1:11003  172.16.2.2:23  172.16.2.2:23 tcp 192.2.2.1:1067  10.1.1.2:1067  172.16.2.3:23  172.16.2.3:23 A translation for a Telnet is still active.  Two different inside hosts appear on the outside with a single IP address. Basic IP address translation  Unique TCP port numbers are used to distinguish between hosts.  Router# show ip nat trans Pro Inside global Inside local Outside local Outside global --- 192.2.2.1 10.1.1.1 --- ---  --- 192.2.2.2 10.1.1.2 --- --- IP address translation with overloading
Troubleshooting NAT Router# debug ip nat NAT: s=10.1.1.1->192.16.2.1, d=172.166.2.2 [0] NAT*: s=172.166.2.2, d=192.16.2.1->10.1.1.1 [0] NAT: s=10.1.1.1->192.16.2.1, d=172.166.2.2 [1] NAT: s=10.1.1.1->192.16.2.1, d=172.166.2.2 [2] NAT: s=10.1.1.1->192.16.2.1, d=172.166.2.2 [3] NAT*: s=172.166.2.2, d=192.16.2.1->10.1.1.1 [1] NAT: s=10.1.1.1->192.16.2.1, d=172.166.2.2 [4] NAT: s=10.1.1.1->192.16.2.1, d=172.166.2.2 [5] NAT: s=10.1.1.1->192.16.2.1, d=172.166.2.2 [6] NAT*: s=172.166.2.2, d=192.16.2.1->10.1.1.1 [2] An example address translation inside-to-outside. A reply to the packet sent. An example TCP conversation, inside-to-outside. * Indicates translation was in the fast path.
[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object]
Clearing NAT Translation Entries All entries are cleared. 192.16.2.2 is cleared. Router#sh ip nat trans Pro Inside global  Inside local  Outside local  Outside global tcp 192.16.2.1:11003  10.1.1.1:11003  172.16.2.2:23  172.16.2.2:23 tcp 192.16.2.1:1067  10.1.1.2:1067  172.16.2.3:23  172.16.2.3:23 router# clear ip nat trans * router# router#show ip nat trans   router# show ip nat trans Pro Inside global  Inside local  Outside local Outside global udp 192.16.2.2:1220  10.1.1.2:1120  171.69.2.132:53  171.69.2.132:53  tcp 192.16.2.1:11003  10.1.1.1:11003  172.16.2.2:23  172.16.2.2:23 tcp 192.16.2.1:1067  10.1.1.1:1067  172.16.2.3:23  172.16.2.3:23 router#clear ip nat trans udp inside 192.16.2.2 10.1.1.2 1220 171.69.2.132 53 171.69.2.132 53  router#show ip nat trans Pro Inside global  Inside local  Outside local Outside global tcp 192.16.2.1:11003  10.1.1.1:11003  172.16.2.2:23  172.16.2.2:23 tcp 192.16.2.1:1067  10.1.1.3:1067  172.16.2.3:23  172.16.2.3:23

Weitere ähnliche Inhalte

Was ist angesagt?

第14讲 交换机基本操作
第14讲 交换机基本操作第14讲 交换机基本操作
第14讲 交换机基本操作F.l. Yu
 
第16讲 Vlan和Vtp
第16讲 Vlan和Vtp第16讲 Vlan和Vtp
第16讲 Vlan和VtpF.l. Yu
 
Team work4.3华为
Team work4.3华为Team work4.3华为
Team work4.3华为zy620713
 
路由器配置手册
路由器配置手册路由器配置手册
路由器配置手册cpcfan
 
网络基础知识(经典)
网络基础知识(经典)网络基础知识(经典)
网络基础知识(经典)littlesujin
 
第5讲 互连Cisco设备
第5讲 互连Cisco设备第5讲 互连Cisco设备
第5讲 互连Cisco设备F.l. Yu
 
Cisco路由协议高度总结
Cisco路由协议高度总结Cisco路由协议高度总结
Cisco路由协议高度总结blackbird_ly
 
智能广域网及开源项目更新
智能广域网及开源项目更新智能广域网及开源项目更新
智能广域网及开源项目更新Bertrand Duvivier
 
第2讲 Osi分层模型
第2讲 Osi分层模型第2讲 Osi分层模型
第2讲 Osi分层模型F.l. Yu
 
0416 Windows Server 2008 Native IPv6 新功能介紹
0416 Windows Server 2008 Native IPv6 新功能介紹0416 Windows Server 2008 Native IPv6 新功能介紹
0416 Windows Server 2008 Native IPv6 新功能介紹Timothy Chen
 
如何使用Console連接眾至UTM設備
如何使用Console連接眾至UTM設備如何使用Console連接眾至UTM設備
如何使用Console連接眾至UTM設備sharetech
 
智慧家庭 簡報
智慧家庭 簡報智慧家庭 簡報
智慧家庭 簡報艾鍗科技
 
艾鍗學院-單晶片韌體-CC2500通訊實驗
艾鍗學院-單晶片韌體-CC2500通訊實驗艾鍗學院-單晶片韌體-CC2500通訊實驗
艾鍗學院-單晶片韌體-CC2500通訊實驗艾鍗科技
 
Band_allocation_overlap_and_im2_im3_freq_calculator
Band_allocation_overlap_and_im2_im3_freq_calculatorBand_allocation_overlap_and_im2_im3_freq_calculator
Band_allocation_overlap_and_im2_im3_freq_calculatorPei-Che Chang
 
用Raspberry Pi 完成一個智慧型六足機器人
用Raspberry Pi 完成一個智慧型六足機器人用Raspberry Pi 完成一個智慧型六足機器人
用Raspberry Pi 完成一個智慧型六足機器人艾鍗科技
 
嵌入式inux應用專題文件-智慧家庭系統
嵌入式inux應用專題文件-智慧家庭系統嵌入式inux應用專題文件-智慧家庭系統
嵌入式inux應用專題文件-智慧家庭系統艾鍗科技
 

Was ist angesagt? (20)

第14讲 交换机基本操作
第14讲 交换机基本操作第14讲 交换机基本操作
第14讲 交换机基本操作
 
第16讲 Vlan和Vtp
第16讲 Vlan和Vtp第16讲 Vlan和Vtp
第16讲 Vlan和Vtp
 
Team work4.3华为
Team work4.3华为Team work4.3华为
Team work4.3华为
 
路由器配置手册
路由器配置手册路由器配置手册
路由器配置手册
 
网络基础知识(经典)
网络基础知识(经典)网络基础知识(经典)
网络基础知识(经典)
 
第5讲 互连Cisco设备
第5讲 互连Cisco设备第5讲 互连Cisco设备
第5讲 互连Cisco设备
 
Cisco路由协议高度总结
Cisco路由协议高度总结Cisco路由协议高度总结
Cisco路由协议高度总结
 
智能广域网及开源项目更新
智能广域网及开源项目更新智能广域网及开源项目更新
智能广域网及开源项目更新
 
第2讲 Osi分层模型
第2讲 Osi分层模型第2讲 Osi分层模型
第2讲 Osi分层模型
 
金盾集訓 II
金盾集訓 II金盾集訓 II
金盾集訓 II
 
0416 Windows Server 2008 Native IPv6 新功能介紹
0416 Windows Server 2008 Native IPv6 新功能介紹0416 Windows Server 2008 Native IPv6 新功能介紹
0416 Windows Server 2008 Native IPv6 新功能介紹
 
如何使用Console連接眾至UTM設備
如何使用Console連接眾至UTM設備如何使用Console連接眾至UTM設備
如何使用Console連接眾至UTM設備
 
智慧家庭 簡報
智慧家庭 簡報智慧家庭 簡報
智慧家庭 簡報
 
Technotrend
TechnotrendTechnotrend
Technotrend
 
艾鍗學院-單晶片韌體-CC2500通訊實驗
艾鍗學院-單晶片韌體-CC2500通訊實驗艾鍗學院-單晶片韌體-CC2500通訊實驗
艾鍗學院-單晶片韌體-CC2500通訊實驗
 
S4A
S4AS4A
S4A
 
Band_allocation_overlap_and_im2_im3_freq_calculator
Band_allocation_overlap_and_im2_im3_freq_calculatorBand_allocation_overlap_and_im2_im3_freq_calculator
Band_allocation_overlap_and_im2_im3_freq_calculator
 
用Raspberry Pi 完成一個智慧型六足機器人
用Raspberry Pi 完成一個智慧型六足機器人用Raspberry Pi 完成一個智慧型六足機器人
用Raspberry Pi 完成一個智慧型六足機器人
 
嵌入式inux應用專題文件-智慧家庭系統
嵌入式inux應用專題文件-智慧家庭系統嵌入式inux應用專題文件-智慧家庭系統
嵌入式inux應用專題文件-智慧家庭系統
 
Project gps
Project gpsProject gps
Project gps
 

Andere mochten auch

第6讲 操作与配置Cisco Ios
第6讲 操作与配置Cisco Ios第6讲 操作与配置Cisco Ios
第6讲 操作与配置Cisco IosF.l. Yu
 
第12讲 Acl
第12讲 Acl第12讲 Acl
第12讲 AclF.l. Yu
 
第8讲 Rip和Igrp
第8讲 Rip和Igrp第8讲 Rip和Igrp
第8讲 Rip和IgrpF.l. Yu
 
Blank Europe Map Labling Map
Blank Europe Map Labling MapBlank Europe Map Labling Map
Blank Europe Map Labling MapMr.J
 
第15讲 Stp
第15讲 Stp第15讲 Stp
第15讲 StpF.l. Yu
 
Intangibles
IntangiblesIntangibles
IntangiblesFLACSO
 
What I Don’T Won’T To Leave
What I Don’T Won’T To LeaveWhat I Don’T Won’T To Leave
What I Don’T Won’T To Leaveb_man1992
 
Wedding Invitation - Low Res
Wedding Invitation - Low ResWedding Invitation - Low Res
Wedding Invitation - Low Resnvignesh
 
Salzburg Praes Final
Salzburg Praes FinalSalzburg Praes Final
Salzburg Praes FinalMoonlightpaw
 
Mini Europe Parquedas Miniaturas Bruxelas
Mini Europe Parquedas Miniaturas BruxelasMini Europe Parquedas Miniaturas Bruxelas
Mini Europe Parquedas Miniaturas Bruxelasmarcelino4
 
Alerta nueva droga
Alerta nueva drogaAlerta nueva droga
Alerta nueva drogachamato
 
Vis Symposium 7 29
Vis Symposium 7 29Vis Symposium 7 29
Vis Symposium 7 29jishen
 
Impresionantehallazgo
ImpresionantehallazgoImpresionantehallazgo
ImpresionantehallazgoGastorx
 
Wedding Invitation - High Res
Wedding Invitation - High ResWedding Invitation - High Res
Wedding Invitation - High Resnvignesh
 
flora
floraflora
florafdlw
 
Digital Citizenship
Digital CitizenshipDigital Citizenship
Digital Citizenshipnhokanson
 

Andere mochten auch (20)

第6讲 操作与配置Cisco Ios
第6讲 操作与配置Cisco Ios第6讲 操作与配置Cisco Ios
第6讲 操作与配置Cisco Ios
 
第12讲 Acl
第12讲 Acl第12讲 Acl
第12讲 Acl
 
第8讲 Rip和Igrp
第8讲 Rip和Igrp第8讲 Rip和Igrp
第8讲 Rip和Igrp
 
Croatia
CroatiaCroatia
Croatia
 
Blank Europe Map Labling Map
Blank Europe Map Labling MapBlank Europe Map Labling Map
Blank Europe Map Labling Map
 
Romania
RomaniaRomania
Romania
 
第15讲 Stp
第15讲 Stp第15讲 Stp
第15讲 Stp
 
Intangibles
IntangiblesIntangibles
Intangibles
 
What I Don’T Won’T To Leave
What I Don’T Won’T To LeaveWhat I Don’T Won’T To Leave
What I Don’T Won’T To Leave
 
Wedding Invitation - Low Res
Wedding Invitation - Low ResWedding Invitation - Low Res
Wedding Invitation - Low Res
 
Salzburg Praes Final
Salzburg Praes FinalSalzburg Praes Final
Salzburg Praes Final
 
Mini Europe Parquedas Miniaturas Bruxelas
Mini Europe Parquedas Miniaturas BruxelasMini Europe Parquedas Miniaturas Bruxelas
Mini Europe Parquedas Miniaturas Bruxelas
 
Pruebaivan
PruebaivanPruebaivan
Pruebaivan
 
Alerta nueva droga
Alerta nueva drogaAlerta nueva droga
Alerta nueva droga
 
Rare B strangeness decay
Rare B strangeness decayRare B strangeness decay
Rare B strangeness decay
 
Vis Symposium 7 29
Vis Symposium 7 29Vis Symposium 7 29
Vis Symposium 7 29
 
Impresionantehallazgo
ImpresionantehallazgoImpresionantehallazgo
Impresionantehallazgo
 
Wedding Invitation - High Res
Wedding Invitation - High ResWedding Invitation - High Res
Wedding Invitation - High Res
 
flora
floraflora
flora
 
Digital Citizenship
Digital CitizenshipDigital Citizenship
Digital Citizenship
 

Ähnlich wie 第13讲 Nat网络地址转换

網路安全原理
網路安全原理網路安全原理
網路安全原理ceed100043
 
Juniper ScreenOS 基于Policy的
Juniper ScreenOS 基于Policy的Juniper ScreenOS 基于Policy的
Juniper ScreenOS 基于Policy的mickchen
 
Oda安装 恢复步骤
Oda安装 恢复步骤Oda安装 恢复步骤
Oda安装 恢复步骤n-lauren
 
DNS IPv6
DNS IPv6DNS IPv6
DNS IPv6csklho
 
Quick install manual2
Quick install manual2Quick install manual2
Quick install manual2hayqal7
 
第4讲 Ip地址 子网划分 Vlsm Cidr
第4讲 Ip地址 子网划分 Vlsm Cidr第4讲 Ip地址 子网划分 Vlsm Cidr
第4讲 Ip地址 子网划分 Vlsm CidrF.l. Yu
 
防火墙产品原理介绍20080407
防火墙产品原理介绍20080407防火墙产品原理介绍20080407
防火墙产品原理介绍20080407paulqi
 
20170415- 智慧空調通訊系統實務_柯大
20170415- 智慧空調通訊系統實務_柯大20170415- 智慧空調通訊系統實務_柯大
20170415- 智慧空調通訊系統實務_柯大MAKERPRO.cc
 
I pv6 windows 實做課程_0705
I pv6 windows 實做課程_0705I pv6 windows 實做課程_0705
I pv6 windows 實做課程_0705宏義 張
 
mobile_我家已經有一臺有線路由器,請問TOTOLINK路由器要如何設定才能接在這原有的路由器下正常運作?B
mobile_我家已經有一臺有線路由器,請問TOTOLINK路由器要如何設定才能接在這原有的路由器下正常運作?Bmobile_我家已經有一臺有線路由器,請問TOTOLINK路由器要如何設定才能接在這原有的路由器下正常運作?B
mobile_我家已經有一臺有線路由器,請問TOTOLINK路由器要如何設定才能接在這原有的路由器下正常運作?B臺灣塔米歐
 
netis WF2409無線橋接模式 – WISP
netis WF2409無線橋接模式 – WISPnetis WF2409無線橋接模式 – WISP
netis WF2409無線橋接模式 – WISP臺灣塔米歐
 
mobile_netis WF2409無線橋接模式 – WISP
mobile_netis WF2409無線橋接模式 – WISPmobile_netis WF2409無線橋接模式 – WISP
mobile_netis WF2409無線橋接模式 – WISP臺灣塔米歐
 
Alibaba server-zhangxuseng-qcon
Alibaba server-zhangxuseng-qconAlibaba server-zhangxuseng-qcon
Alibaba server-zhangxuseng-qconYiwei Ma
 
Fortinet Fortigate 60D 中文安裝手冊 ( Ver 5.2.3)
Fortinet Fortigate 60D 中文安裝手冊 ( Ver 5.2.3)Fortinet Fortigate 60D 中文安裝手冊 ( Ver 5.2.3)
Fortinet Fortigate 60D 中文安裝手冊 ( Ver 5.2.3)志弘 李
 
LinkIt 7697 開發平台簡介 (Traditional Chinese)
LinkIt 7697 開發平台簡介 (Traditional Chinese)LinkIt 7697 開發平台簡介 (Traditional Chinese)
LinkIt 7697 開發平台簡介 (Traditional Chinese)Bear Wang
 
我家已經有一臺有線路由器,請問TOTOLINK路由器要如何設定才能接在這原有的路由器下正常運作?B
我家已經有一臺有線路由器,請問TOTOLINK路由器要如何設定才能接在這原有的路由器下正常運作?B我家已經有一臺有線路由器,請問TOTOLINK路由器要如何設定才能接在這原有的路由器下正常運作?B
我家已經有一臺有線路由器,請問TOTOLINK路由器要如何設定才能接在這原有的路由器下正常運作?B臺灣塔米歐
 
10_TOTOLINK_如何修改TOTOLINK分享器的IP位址(LAN IP設定頁面IP位址)
10_TOTOLINK_如何修改TOTOLINK分享器的IP位址(LAN IP設定頁面IP位址)10_TOTOLINK_如何修改TOTOLINK分享器的IP位址(LAN IP設定頁面IP位址)
10_TOTOLINK_如何修改TOTOLINK分享器的IP位址(LAN IP設定頁面IP位址)taiwan_totolink
 
第3讲 Tcpip协议栈
第3讲 Tcpip协议栈第3讲 Tcpip协议栈
第3讲 Tcpip协议栈F.l. Yu
 

Ähnlich wie 第13讲 Nat网络地址转换 (20)

網路安全原理
網路安全原理網路安全原理
網路安全原理
 
Juniper ScreenOS 基于Policy的
Juniper ScreenOS 基于Policy的Juniper ScreenOS 基于Policy的
Juniper ScreenOS 基于Policy的
 
Oda安装 恢复步骤
Oda安装 恢复步骤Oda安装 恢复步骤
Oda安装 恢复步骤
 
DNS IPv6
DNS IPv6DNS IPv6
DNS IPv6
 
Quick install manual2
Quick install manual2Quick install manual2
Quick install manual2
 
第4讲 Ip地址 子网划分 Vlsm Cidr
第4讲 Ip地址 子网划分 Vlsm Cidr第4讲 Ip地址 子网划分 Vlsm Cidr
第4讲 Ip地址 子网划分 Vlsm Cidr
 
防火墙产品原理介绍20080407
防火墙产品原理介绍20080407防火墙产品原理介绍20080407
防火墙产品原理介绍20080407
 
p2p通信之nat
p2p通信之natp2p通信之nat
p2p通信之nat
 
Tcpip
TcpipTcpip
Tcpip
 
20170415- 智慧空調通訊系統實務_柯大
20170415- 智慧空調通訊系統實務_柯大20170415- 智慧空調通訊系統實務_柯大
20170415- 智慧空調通訊系統實務_柯大
 
I pv6 windows 實做課程_0705
I pv6 windows 實做課程_0705I pv6 windows 實做課程_0705
I pv6 windows 實做課程_0705
 
mobile_我家已經有一臺有線路由器,請問TOTOLINK路由器要如何設定才能接在這原有的路由器下正常運作?B
mobile_我家已經有一臺有線路由器,請問TOTOLINK路由器要如何設定才能接在這原有的路由器下正常運作?Bmobile_我家已經有一臺有線路由器,請問TOTOLINK路由器要如何設定才能接在這原有的路由器下正常運作?B
mobile_我家已經有一臺有線路由器,請問TOTOLINK路由器要如何設定才能接在這原有的路由器下正常運作?B
 
netis WF2409無線橋接模式 – WISP
netis WF2409無線橋接模式 – WISPnetis WF2409無線橋接模式 – WISP
netis WF2409無線橋接模式 – WISP
 
mobile_netis WF2409無線橋接模式 – WISP
mobile_netis WF2409無線橋接模式 – WISPmobile_netis WF2409無線橋接模式 – WISP
mobile_netis WF2409無線橋接模式 – WISP
 
Alibaba server-zhangxuseng-qcon
Alibaba server-zhangxuseng-qconAlibaba server-zhangxuseng-qcon
Alibaba server-zhangxuseng-qcon
 
Fortinet Fortigate 60D 中文安裝手冊 ( Ver 5.2.3)
Fortinet Fortigate 60D 中文安裝手冊 ( Ver 5.2.3)Fortinet Fortigate 60D 中文安裝手冊 ( Ver 5.2.3)
Fortinet Fortigate 60D 中文安裝手冊 ( Ver 5.2.3)
 
LinkIt 7697 開發平台簡介 (Traditional Chinese)
LinkIt 7697 開發平台簡介 (Traditional Chinese)LinkIt 7697 開發平台簡介 (Traditional Chinese)
LinkIt 7697 開發平台簡介 (Traditional Chinese)
 
我家已經有一臺有線路由器,請問TOTOLINK路由器要如何設定才能接在這原有的路由器下正常運作?B
我家已經有一臺有線路由器,請問TOTOLINK路由器要如何設定才能接在這原有的路由器下正常運作?B我家已經有一臺有線路由器,請問TOTOLINK路由器要如何設定才能接在這原有的路由器下正常運作?B
我家已經有一臺有線路由器,請問TOTOLINK路由器要如何設定才能接在這原有的路由器下正常運作?B
 
10_TOTOLINK_如何修改TOTOLINK分享器的IP位址(LAN IP設定頁面IP位址)
10_TOTOLINK_如何修改TOTOLINK分享器的IP位址(LAN IP設定頁面IP位址)10_TOTOLINK_如何修改TOTOLINK分享器的IP位址(LAN IP設定頁面IP位址)
10_TOTOLINK_如何修改TOTOLINK分享器的IP位址(LAN IP設定頁面IP位址)
 
第3讲 Tcpip协议栈
第3讲 Tcpip协议栈第3讲 Tcpip协议栈
第3讲 Tcpip协议栈
 

Mehr von F.l. Yu

第8章 账户的分类
第8章 账户的分类第8章 账户的分类
第8章 账户的分类F.l. Yu
 
第一章 总论 完
第一章 总论  完第一章 总论  完
第一章 总论 完F.l. Yu
 
第四章 工业企业主要经济业务的核算
第四章 工业企业主要经济业务的核算第四章 工业企业主要经济业务的核算
第四章 工业企业主要经济业务的核算F.l. Yu
 
第三章 复式记账 完
第三章 复式记账  完第三章 复式记账  完
第三章 复式记账 完F.l. Yu
 
第二章 会计科目与账户 完
第二章  会计科目与账户  完第二章  会计科目与账户  完
第二章 会计科目与账户 完F.l. Yu
 
Sect14 2
Sect14 2Sect14 2
Sect14 2F.l. Yu
 
Sect14 1
Sect14 1Sect14 1
Sect14 1F.l. Yu
 
Sect01 1
Sect01 1Sect01 1
Sect01 1F.l. Yu
 
第17讲 广域网基础
第17讲 广域网基础第17讲 广域网基础
第17讲 广域网基础F.l. Yu
 
第1讲 概述和网络技术入门
第1讲 概述和网络技术入门第1讲 概述和网络技术入门
第1讲 概述和网络技术入门F.l. Yu
 

Mehr von F.l. Yu (10)

第8章 账户的分类
第8章 账户的分类第8章 账户的分类
第8章 账户的分类
 
第一章 总论 完
第一章 总论  完第一章 总论  完
第一章 总论 完
 
第四章 工业企业主要经济业务的核算
第四章 工业企业主要经济业务的核算第四章 工业企业主要经济业务的核算
第四章 工业企业主要经济业务的核算
 
第三章 复式记账 完
第三章 复式记账  完第三章 复式记账  完
第三章 复式记账 完
 
第二章 会计科目与账户 完
第二章  会计科目与账户  完第二章  会计科目与账户  完
第二章 会计科目与账户 完
 
Sect14 2
Sect14 2Sect14 2
Sect14 2
 
Sect14 1
Sect14 1Sect14 1
Sect14 1
 
Sect01 1
Sect01 1Sect01 1
Sect01 1
 
第17讲 广域网基础
第17讲 广域网基础第17讲 广域网基础
第17讲 广域网基础
 
第1讲 概述和网络技术入门
第1讲 概述和网络技术入门第1讲 概述和网络技术入门
第1讲 概述和网络技术入门
 

第13讲 Nat网络地址转换

  • 1. 第 13 讲 NAT 网络地址转换
  • 2.
  • 3.
  • 4. Windows 98 PC Modem Branch office ISDN/analog Small office Central site Frame Relay PRI BRI BRI Frame Relay Async AAA server Async SA 10.1.1.1 166.1.1.1 SA Inside Local IP Address 10.1.1.1 Inside Global IP Address 166.1.1.1 NAT table PAT Frame Relay service
  • 5.
  • 6.
  • 7. NAT 术语 Internet Inside 10.1.1.1 Inside Local IP Address 10.1.1.1 Simple NAT table Inside Global IP Address 166.1.1.1 10.1.1.2 Host B 172.20.7.3 A C B A B D SA 10.1.1.1 DA 10.1.1.1 SA 166.1.1.1 DA 166.1.1.1 D C
  • 8.
  • 9.
  • 10.
  • 11. 复用内部的全局地址 10.1.1.2:1723 10.1.1.1:1024 NAT table 196.168.2.2:1723 196.168.2.2:1024 TCP TCP 10.1.1.3:1492 196.168.2.2:1492 TCP Internet Inside 10.1.1.1 Host B 179.20.7.3 1 3 SA 10.1.1.1 DA 10.1.1.1 SA 196.168.2.2 DA 196.168.2.2 10.1.1.2 10.1.1.3 4 5 2 Host C 179.21.7.3 DA 196.168.2.2 4 Inside Global IP Address: Port Protocol Inside Local IP Address: Port 10.1.1.1
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18. 动态 NAT 的配置 ip nat pool dyn-nat 192.16.2.1 192.16.2.254 netmask 255.255.255.0 ip nat inside source list 1 pool dyn-nat ! interface Ethernet0 ip address 10.1.1.1 255.255.255.0 ip nat inside ! interface Serial0 ip address 192.16.2.1 255.255.255.0 ip nat outside ! access-list 1 permit 10.1.1.0 0.0.0.255 ! Translate between inside hosts addressed from 10.1.1.0/24 to the globally unique 192.16.2.0/24 network. This interface connected to the outside world. This interface connected to the inside network.
  • 19. PAT 的配置 ( 一 ) ip nat pool ovrld-nat 192.16.2.1 192.16.2.2 netmask 255.255.255.0 ip nat inside source list 1 pool ovrld-nat overload ! interface Ethernet0/0 ip address 10.1.1.1 255.255.255.0 ip nat inside ! interface Serial0/0 ip address 192.16.2.1 255.255.255.0 ip nat outside ! access-list 1 permit 10.1.1.0 0.0.0.255
  • 20.
  • 21. PAT 的配置 ( 二 ) ip nat inside source list 1 int s0 overload ! interface Ethernet0/0 ip address 10.1.1.1 255.255.255.0 ip nat inside ! interface Serial0/0 ip address 192.16.2.1 255.255.255.0 ip nat outside ! access-list 1 permit 10.1.1.0 0.0.0.255
  • 22. Verifying NAT Router#sh ip nat trans Pro Inside global Inside local Outside local Outside global tcp 192.2.2.1:11003 10.1.1.1:11003 172.16.2.2:23 172.16.2.2:23 tcp 192.2.2.1:1067 10.1.1.2:1067 172.16.2.3:23 172.16.2.3:23 A translation for a Telnet is still active. Two different inside hosts appear on the outside with a single IP address. Basic IP address translation Unique TCP port numbers are used to distinguish between hosts. Router# show ip nat trans Pro Inside global Inside local Outside local Outside global --- 192.2.2.1 10.1.1.1 --- --- --- 192.2.2.2 10.1.1.2 --- --- IP address translation with overloading
  • 23. Troubleshooting NAT Router# debug ip nat NAT: s=10.1.1.1->192.16.2.1, d=172.166.2.2 [0] NAT*: s=172.166.2.2, d=192.16.2.1->10.1.1.1 [0] NAT: s=10.1.1.1->192.16.2.1, d=172.166.2.2 [1] NAT: s=10.1.1.1->192.16.2.1, d=172.166.2.2 [2] NAT: s=10.1.1.1->192.16.2.1, d=172.166.2.2 [3] NAT*: s=172.166.2.2, d=192.16.2.1->10.1.1.1 [1] NAT: s=10.1.1.1->192.16.2.1, d=172.166.2.2 [4] NAT: s=10.1.1.1->192.16.2.1, d=172.166.2.2 [5] NAT: s=10.1.1.1->192.16.2.1, d=172.166.2.2 [6] NAT*: s=172.166.2.2, d=192.16.2.1->10.1.1.1 [2] An example address translation inside-to-outside. A reply to the packet sent. An example TCP conversation, inside-to-outside. * Indicates translation was in the fast path.
  • 24.
  • 25.
  • 26. Clearing NAT Translation Entries All entries are cleared. 192.16.2.2 is cleared. Router#sh ip nat trans Pro Inside global Inside local Outside local Outside global tcp 192.16.2.1:11003 10.1.1.1:11003 172.16.2.2:23 172.16.2.2:23 tcp 192.16.2.1:1067 10.1.1.2:1067 172.16.2.3:23 172.16.2.3:23 router# clear ip nat trans * router# router#show ip nat trans router# show ip nat trans Pro Inside global Inside local Outside local Outside global udp 192.16.2.2:1220 10.1.1.2:1120 171.69.2.132:53 171.69.2.132:53 tcp 192.16.2.1:11003 10.1.1.1:11003 172.16.2.2:23 172.16.2.2:23 tcp 192.16.2.1:1067 10.1.1.1:1067 172.16.2.3:23 172.16.2.3:23 router#clear ip nat trans udp inside 192.16.2.2 10.1.1.2 1220 171.69.2.132 53 171.69.2.132 53 router#show ip nat trans Pro Inside global Inside local Outside local Outside global tcp 192.16.2.1:11003 10.1.1.1:11003 172.16.2.2:23 172.16.2.2:23 tcp 192.16.2.1:1067 10.1.1.3:1067 172.16.2.3:23 172.16.2.3:23