- Posts: 2
- Thank you received: 0
PAT_RANGE
14 years 5 months ago #34809
by atoic
I need to do PAT static but port ranges, the only way I find to do is the following. It does not work when in the pool set up a single ip, if I set an IP range if it works.
ip nat pool NAME_POOL 10.10.10.100 10.10.10.100 prefix-length 30
ip nat inside source list 101 pool NAME_POOL
!
access-list 101 permit tcp host 20.20.20.20 range 4000 5000 any
access-list 101 permit udp host 20.20.20.20 range 4000 5000 any
Can tell me I'm doing wrong. Thank you
ip nat pool NAME_POOL 10.10.10.100 10.10.10.100 prefix-length 30
ip nat inside source list 101 pool NAME_POOL
!
access-list 101 permit tcp host 20.20.20.20 range 4000 5000 any
access-list 101 permit udp host 20.20.20.20 range 4000 5000 any
Can tell me I'm doing wrong. Thank you
14 years 5 months ago #34812
by KiLLaBeE
Replied by KiLLaBeE on topic Re: PAT_RANGE
Instead of:
[code:1]ip nat inside source list 101 pool NAME_POOL [/code:1]
do this:
[code:1]ip nat inside source list 101 pool NAME_POOL overload [/code:1]
Also, shouldn't this line:
[code:1]ip nat pool NAME_POOL 10.10.10.100 10.10.10.100 prefix-length 30 [/code:1]
instead be:
[code:1]ip nat pool NAME_POOL 10.10.10.100 10.10.10.100 prefix-length 32 [/code:1]
?
[code:1]ip nat inside source list 101 pool NAME_POOL [/code:1]
do this:
[code:1]ip nat inside source list 101 pool NAME_POOL overload [/code:1]
Also, shouldn't this line:
[code:1]ip nat pool NAME_POOL 10.10.10.100 10.10.10.100 prefix-length 30 [/code:1]
instead be:
[code:1]ip nat pool NAME_POOL 10.10.10.100 10.10.10.100 prefix-length 32 [/code:1]
?
Time to create page: 0.115 seconds