I've been spending 2 days to enable PAT in OmniAccess ESR. This router has 1 upstream connection to ISP router and 1 downstream connection to LAN.
I would like to do simple PAT so the LAN can access internet, but the doc just cover to translate one particular port to another port.
Really appreciate for your help
Here's the config:
Code: Select all
network ethernet0/0
; -- Ethernet Interface User Configuration --
ip address 100.95.32.10 255.255.255.252
;
exit
;
;
network ethernet0/1
; -- Ethernet Interface User Configuration --
ip address 10.71.4.2 255.255.255.0
;
exit
;
network ethernet2/0
; -- Ethernet Interface User Configuration --
no auto-negotiation
duplex full
speed 1000mbps
exit
;
network ethernet2/1
; -- Ethernet Interface User Configuration --
no auto-negotiation
duplex full
speed 1000mbps
exit
;
;
;
;
;
;
;
protocol ip
; -- Internet protocol user configuration --
route 10.71.0.0 255.255.0.0 10.71.4.1
route 0.0.0.0 0.0.0.0 100.95.32.9
;
rule 1 local-ip ethernet0/1 remote-ip 100.95.32.10
;
nat pat
; -- NAPT configuration --
visible-port 0 rule 1 ip 0.0.0.0 port 0
;
subnet 100.95.32.10 255.255.255.255 rule 1 default
subnet 100.95.32.10 255.255.255.255 rule 1 gateway 100.95.32.9
;
exit
;
exit
;