【正文】
用的環(huán)境 靜態(tài)地址轉(zhuǎn)換將內(nèi)部本地地址與內(nèi)部合法地址進行一對一的轉(zhuǎn)換,且需要指定和哪個合法地址進行轉(zhuǎn)換。 內(nèi)部端口可以為任意一個路由器端口。 專業(yè)資料分享 CISCONAT配置一、NAT簡介 NAT(Network Address Translation)的功能,就是指在一個網(wǎng)絡內(nèi)部,根據(jù)需要可以隨意自定義的IP地址,而不需要經(jīng)過申請。內(nèi)部端口連接的網(wǎng)絡用戶使用的是內(nèi)部IP地址。 五、NAT的設置方法: NAT設置可以分為靜態(tài)地址轉(zhuǎn)換、動態(tài)地址轉(zhuǎn)換、復用動態(tài)地址轉(zhuǎn)換。 路由器2501的配置: Current configuration: version no service passwordencryption hostname 2501 ip nat inside source static ip nat inside source static ip nat inside source static interface Ethernet0 ip address ip nat inside interface Serial0 ip address ip nat outside no ip mroutecache bandwidth 2000 no fairqueue clockrate 2000000 interface Serial1 no ip address shutdown no ip classless ip route Serial0 line con 0 line aux 0 line vty 0 4 password cisco end 配置完成后可以用以下語句進行查看: