TCP Load Distribution with NAT

October 25, 2008 at 1:03 pm | Posted in IP Services, NAT | Leave a comment

IEWB1 Vol5 Task 13.26

Configure R5 so that when SW2 telnets to the IP 155.1.58.55, it is redirected to R1 R2 R4 in an even distribution.

 

R5#

ip nat pool SERVERS netmask 255.255.255.0 type rotary
 address 155.1.0.1 155.1.0.2
 address 155.1.0.4 155.1.0.4
ip nat inside destination list TELNET pool SERVERS
!
!
ip access-list extended TELNET
 permit tcp any host 155.1.58.55 eq telnet

Rack1SW2#
ip route 155.1.58.55 255.255.255.255 155.1.58.5

Alternatively, we can replace a static route on SW2 with an ip alias command on R5

Rack1R5(config)#ip alias ?
  A.B.C.D  IP address to alias to a port

Rack1R5(config)#ip alias 155.1.58.55 ?
  <0-65535>  IP port number

Rack1R5(config)#ip alias 155.1.58.55 23

 

 
Verification from SW2

Rack1SW2#telnet 155.1.58.55
Trying 155.1.58.55 … Open

Rack1R1#exit

[Connection to 155.1.58.55 closed by foreign host]
Rack1SW2#telnet 155.1.58.55
Trying 155.1.58.55 … Open

Rack1R2#exit

[Connection to 155.1.58.55 closed by foreign host]
Rack1SW2#telnet 155.1.58.55
Trying 155.1.58.55 … Open

Rack1R4#exit

[Connection to 155.1.58.55 closed by foreign host]
Rack1SW2#telnet 155.1.58.55
Trying 155.1.58.55 … Open

Rack1R1#exit

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

Blog at WordPress.com.
Entries and comments feeds.

%d bloggers like this: