cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
cancel
1035
Views
5
Helpful
4
Replies

NAT issue

rashad.exe
Level 1
Level 1

Hello All,

i have Cisco router 2900 i want to make NAT and i have 10 users and 5 public IP address connected to the ISP 

there is any way to make nat each two users to one public IP ?

thanks 

2 Accepted Solutions

Accepted Solutions

Philip D'Ath
VIP Alumni
VIP Alumni

All the users can share a single public IP address for outbound requests to the Internet.

However if you want to configure inbound NAT the IP address (or port mappings) have to be unique.

View solution in original post

Hello

Following on from Philips post

Example:
access-list 1 permit host 1.1.1.1
access-list 1 permit host 1.1.1.2
access-list 2 permit host 1.1.1.3
access-list 2 permit host 1.1.1.4
access-list 3 permit host 1.1.1.5
access-list 3 permit host 1.1.1.6
access-list 4 permit host 1.1.1.7
access-list 4 permit host 1.1.1.8
access-list 5 permit host 1.1.1.9
access-list 5 permit host 1.1.1.10

ip nat pool public1 100.100.100.1 100.100.100.1 prefix-length 29
ip nat pool public2 100.100.100.2 100.100.100.2 prefix-length 29
ip nat pool public3 100.100.100.3 100.100.100.3 prefix-length 29
ip nat pool public4 100.100.100.4 100.100.100.4 prefix-length 29
ip nat pool public5 100.100.100.5 100.100.100.5 prefix-length 29

ip nat inside source list 1 pool public1 overload
ip nat inside source list 2 pool public2 overload
ip nat inside source list 3 pool public3 overload
ip nat inside source list 4 pool public4 overload
ip nat inside source list 5 pool public5 overload

sh ip nat translations
Pro Inside global      Inside local       Outside local      Outside global
icmp 100.100.100.1:17  1.1.1.1:17         8.8.8.8:17         8.8.8.8:17
icmp 100.100.100.1:18  1.1.1.2:18         8.8.8.8:18         8.8.8.8:18
icmp 100.100.100.2:19  1.1.1.3:19         8.8.8.8:19         8.8.8.8:19
icmp 100.100.100.2:20  1.1.1.4:20         8.8.8.8:20         8.8.8.8:20
icmp 100.100.100.3:21  1.1.1.5:21         8.8.8.8:21         8.8.8.8:21
icmp 100.100.100.3:22  1.1.1.5:22         8.8.8.8:22         8.8.8.8:22
icmp 100.100.100.4:23  1.1.1.7:23         8.8.8.8:23         8.8.8.8:23
icmp 100.100.100.4:24  1.1.1.8:24         8.8.8.8:24         8.8.8.8:24
icmp 100.100.100.5:25  1.1.1.9:25         8.8.8.8:25         8.8.8.8:25
icmp 100.100.100.5:26  1.1.1.10:26       8.8.8.8:26        8.8.8.8:26

res
Paul


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the communityā€™s global network.

Kind Regards
Paul

View solution in original post

4 Replies 4

Philip D'Ath
VIP Alumni
VIP Alumni

All the users can share a single public IP address for outbound requests to the Internet.

However if you want to configure inbound NAT the IP address (or port mappings) have to be unique.

thank you so much 

Hello

Following on from Philips post

Example:
access-list 1 permit host 1.1.1.1
access-list 1 permit host 1.1.1.2
access-list 2 permit host 1.1.1.3
access-list 2 permit host 1.1.1.4
access-list 3 permit host 1.1.1.5
access-list 3 permit host 1.1.1.6
access-list 4 permit host 1.1.1.7
access-list 4 permit host 1.1.1.8
access-list 5 permit host 1.1.1.9
access-list 5 permit host 1.1.1.10

ip nat pool public1 100.100.100.1 100.100.100.1 prefix-length 29
ip nat pool public2 100.100.100.2 100.100.100.2 prefix-length 29
ip nat pool public3 100.100.100.3 100.100.100.3 prefix-length 29
ip nat pool public4 100.100.100.4 100.100.100.4 prefix-length 29
ip nat pool public5 100.100.100.5 100.100.100.5 prefix-length 29

ip nat inside source list 1 pool public1 overload
ip nat inside source list 2 pool public2 overload
ip nat inside source list 3 pool public3 overload
ip nat inside source list 4 pool public4 overload
ip nat inside source list 5 pool public5 overload

sh ip nat translations
Pro Inside global      Inside local       Outside local      Outside global
icmp 100.100.100.1:17  1.1.1.1:17         8.8.8.8:17         8.8.8.8:17
icmp 100.100.100.1:18  1.1.1.2:18         8.8.8.8:18         8.8.8.8:18
icmp 100.100.100.2:19  1.1.1.3:19         8.8.8.8:19         8.8.8.8:19
icmp 100.100.100.2:20  1.1.1.4:20         8.8.8.8:20         8.8.8.8:20
icmp 100.100.100.3:21  1.1.1.5:21         8.8.8.8:21         8.8.8.8:21
icmp 100.100.100.3:22  1.1.1.5:22         8.8.8.8:22         8.8.8.8:22
icmp 100.100.100.4:23  1.1.1.7:23         8.8.8.8:23         8.8.8.8:23
icmp 100.100.100.4:24  1.1.1.8:24         8.8.8.8:24         8.8.8.8:24
icmp 100.100.100.5:25  1.1.1.9:25         8.8.8.8:25         8.8.8.8:25
icmp 100.100.100.5:26  1.1.1.10:26       8.8.8.8:26        8.8.8.8:26

res
Paul


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the communityā€™s global network.

Kind Regards
Paul

thanks a lot 

Review Cisco Networking products for a $25 gift card