07-08-2017 12:43 PM - edited 03-05-2019 08:49 AM
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
Solved! Go to Solution.
07-08-2017 02:22 PM
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.
07-09-2017 03:38 PM
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
07-08-2017 02:22 PM
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.
07-09-2017 10:18 PM
thank you so much
07-09-2017 03:38 PM
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
07-09-2017 10:17 PM
thanks a lot
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide