Step | Command | Remarks |
| • To configure a static NAT mapping: | |
| a. | nat static |
|
| |
|
| |
| b. | interface |
|
| |
| c. | nat outbound static |
4. Configure NAT. | • To configure dynamic NAT: | |
| ||
| d. | interface |
|
| |
| e. | nat outbound [ |
|
| [ |
|
| [ |
[
Optional.
By default, NAT is not configured on an interface.
|
| • For normal NAT server: |
| |
|
| { nat server [ Index |
| |
|
| protocol |
| |
|
| { |
| |
|
| interface |
| |
|
|
| ||
|
|
| ||
|
|
| ||
|
|
| ||
|
|
| ||
|
| Optional. | ||
5. | Configure the NAT | { nat server [ Index | ||
Configure none or one of the | ||||
| server. | protocol | ||
|
| { | commands. | |
|
|
| ||
|
| interface |
| |
|
|
| ||
|
| [ |
| |
|
|
| ||
|
| [ |
| |
|
|
| ||
|
| • For |
| |
|
| nat server protocol |
| |
|
|
| ||
|
| [ |
| |
|
|
|
| |
|
|
| Optional. | |
6. Assign an IP address to | ip address | By default, GigabitEthernet | ||
0/0 is assigned the IP | ||||
| the interface. | [ sub ] | address 192.168.0.1/24, | |
|
|
| and the other interfaces have | |
|
|
| no IP addresses. | |
|
|
| ||
7. Return to system view. | quit | N/A | ||
|
|
|
| |
8. | Enter security zone | zone name | N/A | |
| view. | |||
|
|
| ||
|
|
|
| |
|
| 82 |
|