端口 重 定向 -- 端口 映射 *******************************全部采用 端口 ************************ ??ISP分配的IP202.99.160.129 ?? ??interface fastethernet0/0 ??ip address 192.168.1.1 255.255.255.0 ??duplex auto ??speed auto ??in nat inside ??
*******************************全部采用端口************************ ??ISP分配的IP202.99.160.129 ?? ??interface fastethernet0/0 ??ip address 192.168.1.1 255.255.255.0 ??duplex auto ??speed auto ??in nat inside ??no shutdown ?? ??interface fastethernet0/1 ??ip address 192.168.2..1 255.255.255.0 ??duplex auto ??speed auto ??in nat outside ??no shutdown ?? ??ip nat pool OnlyYou 202.99.160.130 202.99.160.130 netmask 255.255.255.252 ??//OnlyYou代表地址池的名稱(chēng)。 2個(gè)202.99.160.130是代表只用一個(gè)ip做轉(zhuǎn)換后ip. ??access-list 1 permit 192.168.1.0 0.0.0.255 ??access-list 1 permit 192.168.2.0 0.0.0.255 ??ip nat inside source list1 pool OnlyYou overload ?? ?? ?? ?? ??***********************動(dòng)態(tài)地址轉(zhuǎn)換+端口*********************** ??ISP分配的IP 有:202.99.160.130~190 255.255.255.192 ?? ??Interface fastethernet0/1 ??Ip address 192.168.1.1 255.255.255.0 ??Ip address 192.168.2.1 255.255.255.0 secondary ??Duplex auto ??Speed auto ??Ip nat inside ??No shutdown ?? ??Interface serial 0/0 ??Ip address 202.99.160.129 255.255.255.192 ??Duplex auto ??Speed auto ??Ip nat outside ??No shutdwon ?? ??Ip nat pool OutPort 202.99.160.190 202.99.160.190 netmask 255.255.255.192 ??Ip nat pool OutPool 202.99.160.130 202.99.160.190 netmask 255.255.255.192 ??Ip nat inside source list1 pool OutPort //192.168.1.0段主機(jī)全部轉(zhuǎn)成202.99.160.190 ??Ip nat inside source list2 pool OutPool ??//出于訪問(wèn)ftp站點(diǎn)等考慮:192.168.2.0和192.168.3.0段主機(jī)全部 ??//轉(zhuǎn)成202.99.160.130到202.99.160.189中的所有地址。 ??Access-list1 permit 192.168.1.0 0.0.0.255 ??Access-list2 permit 192.168.2.0 0.0.0.255 ??Access-list2 permit 192.168.3.0 0.0.0.255 ?? ?? ?? ??***********************靜態(tài)地址轉(zhuǎn)換*********************** ?? ?? ??ISP分配的IP地址是:211.82.220.80~211.82.220.87 ??211.82.220.81 255.255.255.248 ??要求Intranet上的Web.E-mail.Ftp.Media可以被外部訪問(wèn). ??Interface fastethernet0/0 ??Ip address 192.168.1.1 255.255.255.0 ??Duplex auto ??Speed auto ??Ip nat inside ??No shutdown ?? ??Interface fastethernet0/1 ??Ip address 211.82.220.81 255.255.255.248 ??Speed auto ??Duplex auto ??Ip nat outside ??No shutdown ?? ??Ip nat pool Outpool 211.82.220.86 211.82.20.86 netmask 255.255.255.248 ??Access-list 1 permit 192.168.1.2 0.0.0.255 ??Access-list 1 permit 192.168.1.3 0.0.0.255 ??Access-list 1 permit 192.168.1.4 0.0.0.255 ??Access-list 1 permit 192.168.1.5 0.0.0.255 ??Ip nat inside source list1 pool Outpool overload ??Ip nat inside source static 192.168.1.2 211.82.220.82 ??Ip nat inside source static 192.168.1.3 211.82.220.83 ??Ip nat inside source static 192.168.1.4 211.82.220.84 ??Ip nat inside source static 192.168.1.5 211.82.220.85 ?? ?? ?? ?? ??******************NAT影射**************************** ??如果ISP提供的IP地址比較多還可以,但如果不是的時(shí)候(如就兩個(gè)時(shí)),一個(gè)用于內(nèi)網(wǎng)地址轉(zhuǎn)換,另一個(gè)用于對(duì)外網(wǎng)提供服務(wù). ??ISP提供的內(nèi)網(wǎng)上網(wǎng)IP ?? ??Interface ethernet0 ??Ip address 192.168.1.1 255.255.255.0 ??Duplex auto ??Speed auto ??Ip nat inside ??No shutdown ? |
-->
閱讀(827) | 評(píng)論(0) | 轉(zhuǎn)發(fā)(0) |
0
上一篇:子網(wǎng)劃分
下一篇:路由表 CISCO技術(shù)
相關(guān)熱門(mén)文章
熱門(mén)推薦
-->聲明:本網(wǎng)頁(yè)內(nèi)容旨在傳播知識(shí),若有侵權(quán)等問(wèn)題請(qǐng)及時(shí)與本網(wǎng)聯(lián)系,我們將在第一時(shí)間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com