cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
806
Views
0
Helpful
1
Comments
ajayku2
Cisco Employee
Cisco Employee

CSM: server-initiated connections

Note : This configuration may not work if the second port is still enabled or the default gateway is configured on second interface.

Please note that the CSM will choose VLAN based on the configured NAT IP address.

There are two ways you can configure NAT on CSM.

One-to-one NAT of server-originated connections

!---

!--- The following lines of config allow you to NAT one-to-one the server

!--- IP addresses

!---

static nat 10.20.221.10 <<< IP from their respective vlan

  real 10.20.220.10     <<< IP of the real server

static nat 10.20.221.20

  real 10.20.220.20

!---

!--- Let's now open 2 connections, one from each real server

!---

!---

Show command

Cat6k-2#sh mod csm 7 static server

Server           NAT Type

----------------------------------------------

10.20.220.10     NAT to 10.20.221.10

10.20.220.20     NAT to 10.20.221.20

Many-to-one NAT of server-originated connections :

!--- The following lines of config allow you to NAT one-to-one the server

!--- IP addresses

!---

static nat 10.20.221.99

  real 10.20.220.0 255.255.255.0  <<< Subnet of the real server that will cover all server.

!---

!--- Relevant show command

!---

Cat6k-2#sh mod csm 7 static server

Server           NAT Type

----------------------------------------------

10.20.220.10     NAT to 10.20.221.99

10.20.220.20     NAT to 10.20.221.99

Comments
jotymann
Community Member

Is it possible to combine many-to-one and one-to-one NAT for server-originated connections on the CSM?

I have an existing VIP, and I'm trying to add an additional server - just to share the source IP for outbound server-iniated connections.

static nat virtual

real 10.2.2.1

real 10.2.2.2

static nat 10.1.1.1

real 10.3.3.3

!

serverfarm WS-FARM

nat server

no nat client

predictor leastconns

real 10.2.2.1 443

real 10.2.2.2 443

probe PROBE-FARM

vserver INBOUND-VIP

virtual 10.1.1.1 tcp https

serverfarm WS-FARM

persistent rebalance

inservice

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: