思科 GNS3 配置 靜態 NAT

                   靜態NAT

1. 實驗拓撲

   使用GNS3模擬器版本 0.8.5

wKioL1RwMK_j0JY4AAB_bQ7yoaM275.jpg

2.實驗需求

1C1通過靜態nat上公網

wKioL1RwMN2gZ1NjAACCsBwpUAQ409.jpg

3. 實驗拓撲

  IP規劃

 

R1(config)#int f0/0

R1(config-if)#ip add 12.0.0.1 255.255.255.0

R1(config-if)#no sh

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


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章