Configuring NAT hairpin

Configure NAT hairpin on the interface connected to the internal network. NAT hairpin supports P2P mode and C/S mode.

NAT hairpin typically operates with NAT Server, outbound dynamic NAT, or outbound static NAT. They must be configured on interfaces of the same interface card. Otherwise, NAT hairpin cannot function correctly.

To configure NAT hairpin:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter interface view.

interface interface-type interface-number

N/A

3. Enable NAT hairpin.

nat hairpin enable

By default, NAT hairpin is disabled.