NAT configuration for server load-balancing

August 2, 2008 at 3:39 pm | Posted in Blogroll | Leave a comment

R4#

ip nat pool SERVERS prefix-length 24 type rotary
address 10.0.0.1 10.0.0.1
address 10.0.0.6 10.0.0.6

ip access-list extended INBOUND_TELNET
permit tcp any host 150.1.4.4 eq 23
!
ip nat inside destination list INBOUND_TELNET pool SERVERS

R4#show ip nat statistics
Total active translations: 0 (0 static, 0 dynamic; 0 extended)
Outside interfaces:
Serial0/0.1, Serial0/1
Inside interfaces:
Ethernet0/0
Hits: 0 Misses: 0
CEF Translated packets: 0, CEF Punted packets: 0
Expired translations: 0
Dynamic mappings:
— Inside Destination
[Id: 1] access-list INBOUND_TELNET pool SERVERS refcount 0
pool SERVERS: netmask 255.255.255.0
start 10.0.0.1 end 10.0.0.1
start 10.0.0.6 end 10.0.0.6
type rotary, total addresses 2, allocated 0 (0%), misses 0
Queued Packets: 0

Try telneting from R5 to R4 Loopback, we will end up on either R1 or R6

R4#show ip nat translation
Pro Inside global Inside local Outside local Outside global
tcp 150.1.4.4:23 10.0.0.1:23 155.1.45.5:24192 155.1.45.5:24192
tcp 150.1.4.4:23 10.0.0.6:23 155.1.45.5:31287 155.1.45.5:31287

Advertisements

Leave a Comment »

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.
Entries and comments feeds.

%d bloggers like this: