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