Skip to main content

PAT_RANGE

More
13 years 9 months ago #34809 by atoic
PAT_RANGE was created 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
More
13 years 9 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]

?
Time to create page: 0.142 seconds