This article describes, how to use a specific IP address from a pool while using DIA.
Prerequisites
- The branch is provisioned with Direct Internet Access (DIA) using Config Template
- There is at least 1 IP address available in the pool to be used for DIA at the branch
- This document is not restricted to specific Versa certified software and hardware versions.
Use Case
Customer wants to use specific Public IP address for Internet bound traffic (local breakout)
- Original Source IP Address of Host on LAN segment :192.168.2.69
- Destination IP address: 8.8.8.8
- Source NAT IP address: 200.200.200.3
- Destination NAT IP Address: 8.8.8.8
Configuring NAT pools
- In the Appliance view, go to Services > CGNAT.
- Click + to add a pool.
This is the IP address that will be used for all internet bound traffic matching the criterion defined in the rule.
- Click OK.
The next step is to define the network address match criteria and the actions to be taken when the criteria is met.
Configuring NAT rules
- In the Appliance view, go to Services > CGNAT > Rules.
- Click + to configure a rule.
- To configure the criteria to select traffic for translation, click the Match tab.
4. Click the Action tab. Define the action to be taken on the traffic that meets the matching criteria.
- Click OK.
Validation
You can monitor the session details and NAT Pool/Rule/usage as below.
CGNAT Pool:
CGNAT Rule:
Below is the session extensive CLI output for a session.
You can find the NAT-Rule, Interfaces, source and destination IP Address.
Troubleshooting Steps
Check the session is created on FlexVNF or not.
Check the CGNAT Rule hit count.
Check the NAT Pool hit count.
Check the sessions extensive and make sure the session is hitting the specific Rule/Interfaces/NAT.