華為路由器1760的nat配置
本文通過華為1760為例向讀者介紹了NAT如何進行配置,并且給出了配置的步驟和操作流程,***給出了配置的結果,相信看過此文會對你有所幫助。
華為路由器1760的nat配置
華為, nat, 路由器
華為的這個路由器,在指定outside 和inside的端口有一點不一樣,
希望對大家有幫助,不走彎路!
Quidway#show run
Now create configuration...
Current configuration
!
version 1.66
enable password ,Y@JM,UXNZL0XaLTV.U4*!!!
access-list normal 100 permit ip 10.0.0.0 0.255.255.255 any
!
interface Aux0
async mode interactive
encapsulation ppp
!
interface Ethernet0 #inside port#
speed auto
duplex auto
no loopback
ip address 10.0.0.2 255.255.255.0
!
interface Ethernet1 #outside port#
speed auto
duplex auto
no loopback
ip address 192.168.0.198 255.255.255.0
nat inside 100 interface #通過這個命令幫定訪問列表和地址池在外部端口上#
!
interface Serial0
encapsulation ppp
!
exit
ip route 0.0.0.0 0.0.0.0 192.168.0.254 preference 60
!
end
Quidway#
NAT的配置任務列表如下:
1. 配置地址池
2. 配置訪問控制列表和地址池的關聯
3. 配置訪問控制列表和接口的關聯(EASY IP特性)
4. 配置內部服務器
增加一個內部服務器
nat serverglobal global-addr [ global-port] inside inside-addr inside-port protocol
例子: 202.38.160.101-103為公網IP
設置內部FTP服務器
Quidway(config-if-Serial0)# nat server global 202.38.160.101 inside 10.110.10.1 ftp tcp
!設置內部WWW服務器1
Quidway(config-if-Serial0)# nat server global 202.38.160.102 inside 10.110.10.2 www tcp
!設置內部WWW服務器2
Quidway(config-if-Serial0)# nat server global 202.38.160.102 8080 inside 10.110.10.3 www tcp
!設置內部SNMP服務器
Quidway(config-if-Serial0)# nat server global 202.38.160.103 inside 10.110.10.4 snmp udp
5. 配置地址轉換的有效時間
【編輯推薦】