PG1X WIKI

My Knowledge Base

User Tools

Site Tools


tech:network:cisco:infrastructure-services:nat:tcp-load-distribution:tcp-load-distribution

Cisco: NAT: TCP Load Distribution

infrastructure-services.nat.static.tcp-load-distribution.5bcf5e24

Memo

  1. Inside Local will translate
  2. Inside Global will translate
  3. Outside Local will translate
  4. Outside Global will translate

TCP Load Distribution Lab

Base Configuration

Common Configuration Snippet

R1

ubuntu-0

ubuntu-1

ubuntu-2

ubuntu-3

Configure ip nat outside source 912ab46b-c08a-496d-b04c-788d3d57e869

configure terminal
!
interface GigabitEthernet0/0
 ip nat inside
interface GigabitEthernet0/1
 ip nat outside
!
ip nat pool T-load 172.16.1.200 172.16.1.202 netmask 255.255.255.0 type rotary
!
access-list 1 permit host 172.16.1.100
!
ip nat inside destination list 1 pool T-load
!
end
show ip nat translation
not port 53
  • ubuntu-3
alias skipssh='ssh -o "UserKnownHostsFile=/dev/null" -o "StrictHostKeyChecking=no"'
# ping is not successful
ping 172.16.1.100
skipssh -t 172.16.1.100 hostname
skipssh -t 172.16.1.100 hostname
skipssh -t 172.16.1.100 hostname

Verification

R1#sh ip nat trans
Pro Inside global      Inside local       Outside local      Outside global
tcp 172.16.1.100:22    172.16.1.200:22    172.16.2.203:39090 172.16.2.203:39090
R1#sh ip nat trans
Pro Inside global      Inside local       Outside local      Outside global
tcp 172.16.1.100:22    172.16.1.200:22    172.16.2.203:39192 172.16.2.203:39192
tcp 172.16.1.100:22    172.16.1.201:22    172.16.2.203:39176 172.16.2.203:39176
tcp 172.16.1.100:22    172.16.1.202:22    172.16.2.203:39190 172.16.2.203:39190
  1. infrastructure-services.nat.static.outside.5bcf5e24.912ab46b.lab1.r1ge0-0_unmanaged-switch-0ubuntu-0-port0.pcapng
  2. infrastructure-services.nat.static.outside.5bcf5e24.912ab46b.lab1.r1ge0-1_ubuntu-3-ens2.pcapng

References

tech/network/cisco/infrastructure-services/nat/tcp-load-distribution/tcp-load-distribution.txt · Last modified: 2021/03/31 15:44 by wnoguchi