---
title: NAT-VPP Case
slug: routing/nat-vpp-case
createdAt: 2025-12-22T08:28:44.515Z
---

# <font color="#1d50a2">**Introduction**</font>

This guide provides a step-by-step tutorial for configuring the Network Address Translation (NAT) capabilities of the Asterfusion ET2500 Open Intelligent Gateway running AsterNOS-VPP.

## <font color="#1d50a2">**What This Guide Will Accomplish**</font>

By following this guide, you will start with an unconfigured AsterNOS VM and progressively build a complete, policy-based NAT gateway. The scenarios covered are:

- **Policy-Based SNAT :** Configuring the gateway to intelligently apply NAT to one internal network (VLAN 10) while allowing another (VLAN 20) to be routed without NAT.
- **DNAT (Destination NAT) :** Publishing a service from the private internal network (VLAN 10) to the outside world, making it accessible via the gateway's public IP address.
- **Multi-Pool SNAT :** Modifying the initial configuration to apply NAT to both internal networks (VLAN 10 and VLAN 20), intelligently mapping each VLAN to its own dedicated public IP address from a NAT pool.

***

# <font color="#1d50a2">**Preparation and Environmental Overview**</font>

## <font color="#1d50a2">Topology map</font>

![](https://api.archbee.com/api/optimize/zl-MD6bX0o2Ab3p8w66u1/fNdyVqqq_xat_t4DbRptI-20251222-084146.png)

## <font color="#1d50a2">**Network Planning and Preparation**</font>

Before you begin, please prepare your lab environment. The only prerequisite tasks are to **physically connect the devices** as shown in the topology and **pre-configure the static IP addresses on the two end-user PCs** (the Internal Server PC and the External Client PC).

The AsterNOS VM should start in a clean, unconfigured state. This guide will walk you through the steps to configure your AsterNOS VM to match the **target configuration plan** outlined in the table below.

- <font color="#000000">**Lab Components (Phase 1)\:**</font>

| **Device Type / Operating System** | **Role in Topology**          | **Key Function in This Guide**                 |
| ---------------------------------- | ----------------------------- | ---------------------------------------------- |
| ET2500 / AsterNOS                  | **NAT Gateway**               | Device Under Test (DUT) for NAT configuration. |
| Physical PC / Windows              | **Internal Server (VLAN 10)** | Server in the NAT zone (VLAN 10).              |
| Physical PC / Windows              | **Internal Client (VLAN 20)** | Client in the Non-NAT zone (VLAN 20).          |
| Physical PC / Windows              | **External Client**           | External user for testing DNAT.                |



- <font color="#0C121D">**Target Configuration Plan (Phase 1)\:**</font>

| **Device / Logical Interface** | **IP Address / Subnet** | **Default Gateway** | **Notes / Connection Point**                    |
| ------------------------------ | ----------------------- | ------------------- | ----------------------------------------------- |
| **AsterNOS VM (WAN)**          | 192.168.200.166/24      | 192.168.200.1       | Connects via Ethernet1 to External Switch       |
| **AsterNOS VM (VLAN 10 GW)**   | 10.10.10.1/24           | -                   | Logical Gateway for VLAN 10 (interface vlan 10) |
| **AsterNOS VM (VLAN 20 GW)**   | 10.10.20.1/24           | -                   | Logical Gateway for VLAN 20 (interface vlan 20) |
| **Internal Server PC**         | 10.10.10.99/24          | 10.10.10.1          | In VLAN 10, connects to AsterNOS Ethernet2      |
| **Internal Client PC**         | 10.10.20.100/24         | 10.10.20.1          | In VLAN 20, connects to AsterNOS Ethernet3      |
| **External Client PC**         | 192.168.200.177/24      | 192.168.200.1       | Connects to External Switch                     |
| **Upstream Gateway**           | 192.168.200.1           | (To Internet)       | Provides Internet access for the WAN segment    |



-

:::Paragraph{indent="1"}
To verify the DNAT configuration in Part Four, we will use the **Netcat (ncat.exe)** utility. Please prepare this tool in advance and place it in an easily accessible location (e.g., the Desktop) on both PCs.
:::

***

# <font color="#1d50a2">**Building the Basic Network**</font>

This section covers the initial setup of the WAN interface, internal VLANs, and all necessary IP addresses to build our network foundation. This prepares the gateway for the advanced policy-based NAT configuration in the next part.

## <font color="#1d50a2">Configuration steps</font>

- **Step 1: Login and Enter Configuration Mode**

:::Paragraph{indent="1"}
First, log in to the AsterNOS-VPP virtual machine. The default credentials are admin / asteros. After logging in, you will be at the Linux shell prompt (`admin@sonic:~$`).
:::

:::Paragraph{listStyleType="disc" indent="2"}
**Enter the AsterNOS command-line interface (CLI).**
:::

:::BlockQuote{indent="2"}
admin\@sonic:\~$ sonic-cli
:::

:::Paragraph{listStyleType="disc" indent="2"}
**Enter the global configuration mode.**
:::

:::BlockQuote{indent="2"}
sonic# configure terminal
:::

- **Step 2: Configure WAN Interface and Default Route**

:::Paragraph{indent="1"}
Configure the external-facing Ethernet1 interface and set the default route for all outbound internet traffic.
:::

:::Paragraph{listStyleType="disc" indent="2"}
Configure the WAN Interface
:::

:::BlockQuote{indent="2"}
sonic(config)# interface ethernet 1
sonic(config-if-1)# ip address 192.168.200.166/24
sonic(config-if-1)# no shutdown
sonic(config-if-1)# exit
:::

:::Paragraph{listStyleType="disc" indent="2"}
Configure the Default Route
:::

:::BlockQuote{indent="2"}
<font color="#5fd74e">#Remember to replace 192.168.200.1 with your actual upstream gateway's IP address.</font>
sonic(config)# ip route 0.0.0.0/0 192.168.200.1
:::

- **Step 3: Configure Internal VLANs and Interfaces**

:::Paragraph{indent="1"}
Now, we will create two separate internal networks (VLAN 10 and VLAN 20) and assign a physical port to each.
:::

:::Paragraph{listStyleType="disc" indent="2"}
**Create the VLANs**
:::

:::BlockQuote{indent="3"}
sonic(config)# vlan 10
sonic(config-vlan-10)# exit
sonic(config)# vlan 20
sonic(config-vlan-20)# exit
:::

:::Paragraph{listStyleType="disc" listStart="2" indent="2"}
**Configure Ethernet2 as an Access Port for VLAN 10**
:::

:::BlockQuote{indent="3"}
sonic(config)# interface ethernet 2
sonic(config-if-2)# no router-interface
sonic(config-if-2)# switchport access vlan 10
sonic(config-if-2)# no shutdown
sonic(config-if-2)# exit
:::

:::Paragraph{listStyleType="disc" listStart="3" indent="2"}
**Configure Ethernet3 as an Access Port for VLAN 20**
:::

:::BlockQuote{indent="3"}
sonic(config)# interface ethernet 3
sonic(config-if-3)# no router-interface
sonic(config-if-3)# switchport access vlan 20
sonic(config-if-3)# no shutdown
sonic(config-if-3)# exit
:::

:::Paragraph{listStyleType="disc" listStart="4" indent="2"}
**Configure the Layer 3 Gateway Interfaces (SVIs) for each VLAN**
:::

:::BlockQuote{indent="3"}
<font color="#5fd74e"># Configure the gateway for VLAN 10</font>
sonic(config)# interface vlan 10
sonic(config-vlanif-10)# ip address 10.10.10.1/24
sonic(config-vlanif-10)# exit
 <font color="#5fd74e"># Configure the gateway for VLAN 20</font>
sonic(config)# interface vlan 20
sonic(config-vlanif-20)# ip address 10.10.20.1/24
sonic(config-vlanif-20)# exit
:::

## <font color="#1d50a2">**Verification\: Check Basic Connectivity**</font>

Before proceeding, verify that both internal PCs can communicate with their respective gateways.

- **Command:** From your **Internal Server PC (10.10.10.99)**, ping its gateway.

:::CodeblockTabs{indent="1"}
```bash
 ping 10.10.10.1
```
:::

- **Command:** From your **Internal Client PC (10.10.20.100)**, ping its gateway.

:::CodeblockTabs{indent="1"}
```bash
 ping 10.10.20.100
```
:::

- **Conclusion:** If both pings are successful, your basic network structure is correctly configured, and you are ready to proceed to the next part.

::Image[]{src="https://api.archbee.com/api/optimize/zl-MD6bX0o2Ab3p8w66u1/WYBieR3wLvLglA6sqyyUh-20251222-111226.png" size="100" width="1900" height="284" position="center" showCaption="false" indent="1"}

::Image[]{src="https://api.archbee.com/api/optimize/zl-MD6bX0o2Ab3p8w66u1/lBoAqya2OaM46-QfiQQlO-20251222-112213.png" size="100" width="1898" height="294" position="center" showCaption="false" indent="1"}

***

# <font color="#1d50a2">**Differentiated Outbound Access - Policy-Based NAT**</font>

This section is the core of our advanced configuration. We will create an intelligent Access Control List (ACL) to apply different NAT policies to VLAN 10 and VLAN 20, perfectly replicating the logic from the ISR topology diagram.

## <font color="#1d50a2">**Configuration steps**</font>

- **Step 1: Define the NAT Boundary and Enable NAT Globally**

:::Paragraph{indent="1"}
First, we must activate the NAT engine and define the external-facing interface as the boundary where NAT policies are enforced.
:::

:::Paragraph{listStyleType="disc" indent="2"}
**Define the WAN Interface as the NAT Boundary**
:::

:::BlockQuote{indent="2"}
sonic(config)# interface ethernet 1
sonic(config-if-1)# nat-zone 1
sonic(config-if-1)# exit
:::

:::Paragraph{listStyleType="disc" indent="2"}
**Enable the NAT Service Globally**
:::

:::BlockQuote{indent="2"}
sonic(config)# nat enable
:::

- **Step 2: Create the "Smart" ACL for Policy Control**

:::Paragraph{indent="1"}
This ACL will act as our "traffic director." It contains rules to explicitly exempt VLAN 20 traffic from NAT while permitting VLAN 10 traffic for NAT processing. Rule priority is determined by the rule ID number; higher numbers are processed first.
:::

:::Paragraph{listStyleType="disc" indent="2"}
**Create the ACL Table**
:::

:::BlockQuote{indent="2"}
sonic(config)# access-list L3 SMART\_NAT\_ACL ingress
:::

:::Paragraph{listStyleType="disc" indent="2"}
**Create Rule to Exempt VLAN 20 (High Priority)**
:::

:::Paragraph{indent="2"}
This rule matches traffic from the VLAN 20 subnet and applies the ***no-nat*** action, instructing the NAT engine to bypass it.
:::

:::BlockQuote{indent="2"}
sonic(config-l3-acl-SMART\_NAT\_ACL)# rule 20 packet-action no-nat src-ip 10.10.20.0/24
:::

:::Paragraph{listStyleType="disc" indent="2"}
**Create Rule to Permit VLAN 10 (Low Priority)**
:::

:::Paragraph{indent="2"}
This rule matches traffic from the VLAN 10 subnet and applies the ***permit*** action, allowing it to be processed by the NAT engine.
:::

:::BlockQuote{indent="2"}
sonic(config-l3-acl-SMART\_NAT\_ACL)# rule 10 packet-action permit src-ip 10.10.10.0/24
 <font color="#5fd74e">#exit</font>
sonic(config-l3-acl-SMART\_NAT\_ACL)# exit
:::

- **Step 3: Deploy the ACL and the Global SNAT Engine**

:::Paragraph{indent="1"}
With the policy defined, we now deploy it to the VLAN interfaces and create the NAT "execution engine" that will handle the permitted traffic.
:::

:::Paragraph{listStyleType="disc" indent="2"}
**Deploy the "Smart" ACL to Both VLAN Interfaces**
:::

:::Paragraph{indent="2"}
By binding the ACL to the VLAN interfaces, we ensure all traffic entering the routing engine is first classified by our policy.
:::

:::BlockQuote{indent="2"}
<font color="#5fd74e"># Bind ACL to VLAN 10</font>
sonic(config)# interface vlan 10
sonic(config-vlanif-10)# acl SMART\_NAT\_ACL
sonic(config-vlanif-10)# exit
 <font color="#5fd74e"># Bind the same ACL to VLAN 20</font>
sonic(config)# interface vlan 20
sonic(config-vlanif-20)# acl SMART\_NAT\_ACL
sonic(config-vlanif-20)# exit
:::

:::Paragraph{listStyleType="disc" indent="2"}
**Create the Global SNAT Engine**
:::

:::Paragraph{indent="2"}
This simple NAT binding will process any traffic that is permitted by the ACL.
:::

:::BlockQuote{indent="2"}
<font color="#5fd74e"># Create the NAT address pool</font>
sonic(config)# nat pool WAN\_POOL 192.168.200.166
 <font color="#5fd74e"># Create a global NAT binding without an ACL</font>
sonic(config)# nat binding GLOBAL\_SNAT WAN\_POOL
:::

## <font color="#1d50a2">**Verification\: Check NAT Translations**</font>

- **Verify the NAT Path (VLAN 10)**
- From your **Internal Server PC (10.10.10.99)**, ping its gateway.

:::CodeblockTabs{indent="1"}
```bash
ping -t 8.8.8.8
```
:::

- On the AsterNOS VM,check the NAT table

:::BlockQuote{indent="1"}
sonic# show nat translations
:::

::Image[]{src="https://api.archbee.com/api/optimize/zl-MD6bX0o2Ab3p8w66u1/4qvQABTN0hjnQ2nFyDKrR-20251222-115435.png" size="100" width="1900" height="421" position="center" showCaption="false" indent="1"}

- **Verify the Non-NAT Path (VLAN 20)**

:::Paragraph{indent="1"}
To definitively prove that VLAN 20 traffic is being routed without NAT, we must capture the packets as they exit the WAN interface using Port Mirroring (SPAN).
:::

:::Paragraph{listStyleType="disc" indent="2"}
**Configure SPAN on the AsterNOS VM.**&#x20;
:::

:::Paragraph{indent="2"}
This will copy all traffic exiting the WAN port (Ethernet1) to an unused port (e.g.,Ethernet4).
:::

:::BlockQuote{indent="2"}
sonic(config)# mirror session 1 span direction tx src-ethernet 1 dst-ethernet 4
:::

:::Paragraph{listStyleType="disc" indent="2"}
**Connect a separate PC with Wireshark** to the physical port corresponding to Ethernet4 and start capturing traffic.
:::

:::Paragraph{listStyleType="disc" listStart="2" indent="2"}
While capturing, **on the Internal Client PC (10.10.20.100)**, start a standard ping:&#x20;
:::

:::CodeblockTabs{indent="2"}
```bash
ping -t 8.8.8.8
```
:::

:::Paragraph{listStyleType="disc" indent="2"}
**Expected Result:**
:::

:::Paragraph{indent="2"}
In the Wireshark capture, you will see ICMP packets with the **original, untranslated source IP address**. This is the definitive proof that the no-nat rule is working as intended.
:::

::Image[]{src="https://api.archbee.com/api/optimize/zl-MD6bX0o2Ab3p8w66u1/nMHHm1n_v5QtCGKQ3G0kZ-20251222-115903.png" size="100" width="1899" height="701" position="center" showCaption="false" indent="2"}

***

# <font color="#1d50a2">**Publishing an Internal Service - DNAT Configuration and Verification**</font>

Now that outbound traffic is working, the final part is to configure DNAT (Destination Network Address Translation). This will allow external users to access a service running on your private internal network. This is commonly known as "port forwarding."

## <font color="#1d50a2">**Configuration steps**</font>

**Step 1: Add the DNAT Port Forwarding Rule and Save Configuration**

This step tells the gateway to forward incoming traffic on a specific public port to our internal server. After adding this final rule, we will save the entire configuration to ensure it persists after a reboot.

- **On your AsterNOS VM**, enter the global configuration mode (sonic(config)#).
- Add the static DNAT rule. This rule maps port **8080** on the public IP to port **80** on the internal server.

:::BlockQuote{indent="1"}
sonic(config)# nat static tcp 192.168.200.166 8080 10.10.10.99 80 dnat
:::

- **Save the complete configuration.**

:::BlockQuote{indent="1"}
sonic(config)# exit
sonic# write
:::

**Step 2: Prepare the Internal Test Service**

To verify the DNAT rule, we need a simple service running on our internal server that can accept the forwarded connections. We will use the versatile Netcat tool for this.

- **On your Internal Server PC** (10.10.10.99), open a Command Prompt (CMD).
- Navigate to the directory where you have placed ncat.exe.
- Start Netcat in listening mode on port **80**. It will now act as a simple server.

:::CodeblockTabs{indent="1"}
```bash
C:\Users\YourUser> ncat -l -p 80 
```
:::

:::hint{type="warning" indent="1"}
***Note:***&#x20;
*The command prompt will show only a blinking cursor, indicating it is waiting for a connection. Keep this window open. If a Windows Firewall prompt appears, be sure to "Allow access."*
:::

## <font color="#1d50a2">**Verification**</font>

With the DNAT rule configured and the internal service running, we will perform a final end-to-end test.

- **Verification Operation**
  - **On your External Client PC** (192.168.200.177), open a new Command Prompt (CMD).
  - Navigate to the directory where you have placed ncat.exe.
  - Use Netcat to connect to the public IP and forwarded port of the AsterNOS gateway.

    ```bash
    C:\Users\YourUser> ncat 192.168.200.166 8080
    ```
- **Delving into the Data Plane: Capturing the Evidence**

:::hint{type="warning" indent="1"}
***Note:***&#x20;

*Because DNAT is configured as a static rule, its active sessions are handled directly by the high-performance VPP data plane for maximum speed. Therefore, they are **not visible** in the standard show nat translations command. We must use the vppctl utility to see the evidence directly from the data plane.*
:::

:::Paragraph{listStyleType="disc" indent="2"}
**On your AsterNOS VM**, while the Netcat connection is active, go to the Linux shell.
:::

:::Paragraph{listStyleType="disc" listStart="2" indent="2"}
Execute the following command to find the session related to your External Client PC.
:::

:::CodeblockTabs{indent="3"}
```bash
sudo docker exec syncd vppctl show nat44 sessions | grep 192.168.200.177
```
:::

:::Paragraph{listStyleType="disc" listStart="3" indent="2"}
Expected Result and Interpretation
The output will show a complete TCP session entry, proving that both DNAT and the return-path SNAT are working in the data plane.
:::

::Image[]{src="https://api.archbee.com/api/optimize/zl-MD6bX0o2Ab3p8w66u1/_8YwhLbottsg7He-uVvvO-20251223-015539.png" size="100" width="1900" height="133" position="center" showCaption="false" indent="2"}

:::Paragraph{listStyleType="decimal" listRestartPolite="1" indent="2"}
**The o2i (Outside-to-Inside) flow line is the DNAT proof.**&#x20;
:::

:::Paragraph{indent="2"}
It shows a packet from the External Client (192.168.200.177) destined for the public port (192.168.200.166:8080) being **rewritten** with the new destination of the Internal Server (10.10.10.99:80).
:::

:::Paragraph{listStyleType="decimal" listStart="2" listRestartPolite="2" indent="2"}
**The i2o (Inside-to-Outside) flow line is the return SNAT proof.**
:::

:::Paragraph{indent="2"}
&#x20;It shows the reply from the Internal Server (10.10.10.99:80) has its source **rewritten** to appear as if it came from the gateway's public port (192.168.200.166:8080).
:::

- **Conclusion:**
  The successful two-way communication, combined with this specific data plane evidence, provides definitive proof that your NAT Gateway is fully and correctly configured for both SNAT and DNAT operations.

***

# <font color="#1d50a2">**(Advanced) Upgrading to Multi-Pool Policy NAT**</font>

This section guides you through modifying the completed Phase 1 configuration to achieve a more advanced NAT scenario.

**Our New Goal:** Instead of exempting VLAN 20 from NAT, we will now apply NAT to both internal networks, but intelligently map each VLAN to its own dedicated public IP address.

This guide assumes you have **completed Phase 1** and are starting from that final configuration state. We will now modify it.

## <font color="#1d50a2">**Topology map**</font>

![](https://api.archbee.com/api/optimize/zl-MD6bX0o2Ab3p8w66u1/hACJmjAxr2dSeVxANAX_j-20251223-020035.png)

## <font color="#1d50a2">**Network Planning and Preparation**</font>

With our new goal, the logical configuration of our network components will be updated. The key changes are:

1. The **NAT Gateway** will now be assigned two public IP addresses on its WAN interface.
2. The **Internal Client (VLAN 20)** is no longer in a "Non-NAT" zone; its traffic will now be processed by NAT and mapped to a second, dedicated NAT pool.

- **Lab Components (Phase 2):**

| **Device Type / Operating System** | **Role in Topology**      | **Key Function in This Guide**              |
| ---------------------------------- | ------------------------- | ------------------------------------------- |
| **ET2500 / AsterNOS 07**           | NAT Gateway               | Device Under Test (DUT) for Multi-Pool NAT. |
| **Physical PC / Windows**          | Internal Server (VLAN 10) | Server in NAT Zone (mapped to Pool 1).      |
| **Physical PC / Windows**          | Internal Client (VLAN 20) | Client in NAT Zone (mapped to Pool 2).      |
| **Physical PC / Windows**          | External Client           | External user for testing NAT.              |

- **Target Configuration Plan (Phase 2):**

| **Device / Logical Interface** | **IP Address / Subnet**                    | **Default Gateway** | **Notes / Connection Point**                 |
| ------------------------------ | ------------------------------------------ | ------------------- | -------------------------------------------- |
| **AsterNOS VM (WAN)**          | 192.168.200.166/24<br />192.168.200.167/24 | 192.168.200.1       | Connects via Ethernet1 to External Switch    |
| **AsterNOS VM (VLAN 10 GW)**   | 10.10.10.1/24                              | -                   | Logical Gateway for VLAN 10                  |
| **AsterNOS VM (VLAN 20 GW)**   | 10.10.20.1/24                              | -                   | Logical Gateway for VLAN 20                  |
| **Internal Server PC**         | 10.10.10.99/24                             | 10.10.10.1          | In VLAN 10, connects to AsterNOS Ethernet2   |
| **Internal Client PC**         | 10.10.20.100/24                            | 10.10.20.1          | In VLAN 20, connects to AsterNOS Ethernet3   |
| **External Client PC**         | 192.168.200.177/24                         | 192.168.200.1       | Connects to External Switch                  |
| **Upstream Gateway**           | 192.168.200.1                              | *(To Internet)*     | Provides Internet access for the WAN segment |

## <font color="#1d50a2">**Configuration steps**</font>

- **Step 1: Modify WAN Interface (Add Secondary IP)**

:::Paragraph{indent="1"}
To apply NAT using a second public IP, the gateway must first "own" that IP. We will add 192.168.200.167 as a **secondary** address on our existing WAN interface.
:::

:::BlockQuote{indent="1"}
sonic# configure terminal
sonic(config)# interface ethernet 1
sonic(config-if-1)# ip address 192.168.200.167/24 secondary
sonic(config-if-1)# exit
:::

- **Step 2: Remove Old NAT Policy**

:::Paragraph{indent="1"}
Before building the new logic, we must completely remove the old "SNAT & No-NAT" policy.
:::

:::Paragraph{listStyleType="disc" indent="2"}
**Unbind ACL from VLAN Interfaces**
:::

:::BlockQuote{indent="2"}
<font color="#5fd74e">#This removes the "traffic director" from the VLAN interfaces.</font>
sonic(config)# interface vlan 10
sonic(config-vlanif-10)# no acl SMART\_NAT\_ACL
sonic(config-vlanif-10)# exit

sonic(config)# interface vlan 20
sonic(config-vlanif-20)# no acl SMART\_NAT\_ACL
sonic(config-vlanif-20)# exit
:::

:::Paragraph{listStyleType="disc" indent="2"}
**Delete the Global SNAT Binding and Pool**
:::

:::BlockQuote{indent="2"}
sonic(config)# no nat binding GLOBAL\_SNAT
sonic(config)# no nat pool WAN\_POOL
:::

:::Paragraph{listStyleType="disc" indent="2"}
**Delete the Old "Smart" ACL**
:::

:::BlockQuote{indent="2"}
sonic(config)# access-list L3 SMART\_NAT\_ACL
sonic(config-l3-acl-SMART\_NAT\_ACL)# no rule 20
sonic(config-l3-acl-SMART\_NAT\_ACL)# no rule 10
sonic(config-l3-acl-SMART\_NAT\_ACL)# exit
sonic(config)# no access-list SMART\_NAT\_ACL
:::

- **Step 3: Configure New Multi-Pool NAT Policy**

:::Paragraph{indent="1"}
Now we build the new, more advanced logic from scratch.
:::

:::Paragraph{listStyleType="disc" indent="2"}
**Create Two New NAT Pools**
:::

:::BlockQuote{indent="2"}
sonic(config)# nat pool POOL\_PC1 192.168.200.166
sonic(config)# nat pool POOL\_PC2 192.168.200.167
:::

:::Paragraph{listStyleType="disc" indent="2"}
**Create Two New ACLs (to Classify Traffic)**
:::

:::BlockQuote{indent="2"}
sonic(config)# access-list L3 ACL\_PC1 ingress
sonic(config-l3-acl-ACL\_PC1)# rule 10 packet-action permit src-ip 10.10.10.0/24
sonic(config-l3-acl-ACL\_PC1)# exit

sonic(config)# access-list L3 ACL\_PC2 ingress
sonic(config-l3-acl-ACL\_PC2)# rule 10 packet-action permit src-ip 10.10.20.0/24
sonic(config-l3-acl-ACL\_PC2)# exit
:::

:::Paragraph{listStyleType="disc" indent="2"}
**Create New NAT Bindings**
:::

:::BlockQuote{indent="2"}
sonic(config)# nat binding BIND\_PC1 POOL\_PC1 ACL\_PC1
sonic(config)# nat binding BIND\_PC2 POOL\_PC2 ACL\_PC2
:::

:::Paragraph{listStyleType="disc" indent="2"}
**Apply New ACLs to VLAN Interfaces**
:::

:::BlockQuote{indent="2"}
sonic(config)# interface vlan 10
sonic(config-vlanif-10)# acl ACL\_PC1
sonic(config-vlanif-10)# exit

sonic(config)# interface vlan 20
sonic(config-vlanif-20)# acl ACL\_PC2
sonic(config-vlanif-20)# exit
:::

:::Paragraph{listStyleType="disc" indent="2"}
**Save the New Configuration**
:::

:::BlockQuote{indent="2"}
sonic(config)# exit
sonic# write
:::

- **Step 4: Verification**

:::Paragraph{indent="1"}
Now we verify that both VLANs are being correctly NAT'd to their **different** public IPs. The PC setups (10.10.10.99 and 10.10.20.100) remain unchanged from **Phase 1**.
:::

:::Paragraph{listStyleType="disc" indent="2"}
**Test 1 (VLAN 10)**:
:::

:::Paragraph{listStyleType="circle" indent="3"}
**From your Internal Server PC (10.10.10.99)**, start a ping to the **External Client PC (192.168.200.177)**.
:::

:::Paragraph{listStyleType="circle" listStart="2" indent="3"}
**On your AsterNOS VM**, check the NAT table: *show nat translations.*
:::

:::Paragraph{listStyleType="disc" indent="3"}
**Expected Result**: You will see entries showing 10.10.10.99 being translated to 192.168.200.166.
:::

::Image[]{src="https://api.archbee.com/api/optimize/zl-MD6bX0o2Ab3p8w66u1/nb4ZwWkCTdNfJib7uWBMq-20251223-024705.png" size="100" width="1900" height="416" position="center" showCaption="false" indent="3"}

:::Paragraph{listStyleType="disc" listStart="2" indent="2"}
**Test 2 (VLAN 20)**:
:::

:::Paragraph{listStyleType="circle" indent="3"}
**From your Internal Client PC (10.10.20.100)**, start a ping to the **External Client PC (192.168.200.177)**.
:::

:::Paragraph{listStyleType="circle" listStart="2" indent="3"}
**On your AsterNOS VM**, check the NAT table again: show nat translations.
:::

:::Paragraph{listStyleType="disc" indent="3"}
**Expected Result**: You will see **new** entries showing 10.10.20.100 being translated to 192.168.200.167.
:::

::Image[]{src="https://api.archbee.com/api/optimize/zl-MD6bX0o2Ab3p8w66u1/0GTzdoIXXsC6A16vjfYSB-20251223-024840.png" size="100" width="1900" height="416" position="center" showCaption="false" indent="3"}

***

# <font color="#1d50a2">**Conclusion**</font>

This guide has demonstrated that AsterNOS-VPP is a powerful, high-performance, and flexible NAT gateway solution. The completed experiments verify that AsterNOS-VPP provides the essential capabilities required for complex enterprise and service provider edge scenarios.
