【正文】
將2501的以太口作為內(nèi)部端口,同步端口0作為外部端口。 在全局設(shè)置模式下,設(shè)置在內(nèi)部的本地地址與內(nèi)部合法IP地址間建立復(fù)用動態(tài)地址轉(zhuǎn)換。 在全局設(shè)置模式下,定義一個標準的accesslist規(guī)則以允許哪些內(nèi)部本地地址可以進行動態(tài)地址轉(zhuǎn)換。 注意:當多個用戶同時使用一個IP地址,外部網(wǎng)絡(luò)通過路由器內(nèi)部利用上層的如TCP或UDP端口號等唯一標識某臺計算機。~ Current configuration: version no service passwordencryption hostname 2501 ip nat pool aaa netmask ip nat inside source list 1 pool aaa 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 accesslist 1 permit line con 0 line aux 0 line vty 0 4 password cisco end 復(fù)用動態(tài)地址轉(zhuǎn)換適用的環(huán)境: 復(fù)用動態(tài)地址轉(zhuǎn)換首先是一種動態(tài)地址轉(zhuǎn)換,但是它可以允許多個內(nèi)部本地地址共用一個內(nèi)部合法地址。 ip nat inside source list 訪問列表標號 pool內(nèi)部合法地址池