靜態NATide
1. 實驗拓撲spa
使用GNS3模擬器版本 0.8.5router
2.實驗需求blog
1C1經過靜態nat上公網圖片
3. 實驗拓撲ip
IP規劃路由
R1(config)#int f0/0get
R1(config-if)#ip add 12.0.0.1 255.255.255.0it
R1(config-if)#no shio
R1(config-if)#int f0/1
R1(config-if)#ip add 192.168.10.1 255.255.255.0
R1(config-if)#no sh
R1(config-if)#exit
R2#conf t
R2(config)#int f0/0
R2(config-if)#ip add 12.0.0.2 255.255.255.0
R2(config-if)#no sh
配置腳本
R1(config)#ip nat inside source static 192.168.10.100 12.0.0.1 把192.168.10.100替換成12.0.0.1
R1(config)#int f0/0
R1(config-if)#ip nat outside 外網口
R1(config-if)#int f0/1
R1(config-if)#ip nat inside 內網口
R1(config)#router ospf 1 作動態路由OSPF
R1(config-router)#network 12.0.0.0 0.0.0.255 area 0
R1(config-router)#network 192.168.10.0 0.0.0.255 area 0
R1(config-router)#end
R2(config)#router ospf 1
R2(config-router)#network 12.0.0.0 0.0.0.255 area 0
R2(config)#ip route 0.0.0.0 0.0.0.0 12.0.0.1