32、NAT地址转换-NAPT转换

发布时间 2023-08-22 16:26:24作者: 五杀摇滚小拉夫

NAPT转换也是一种动态转换,是将内部所有的地址转换为一个公网地址,用不同的端口号区分。采用端口号实现内网和公网的转换。

1、删除AR1 动态NAT配置、NAPT转换配置

[AR1]interface GigabitEthernet0/0/1
[AR1-GigabitEthernet0/0/1]undo nat outbound 2000 address-group 1 no-pat
[AR1-GigabitEthernet0/0/1]quit
[AR1]quit
<AR1>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]Y
Now saving the current configuration to the slot 17.
Save the configuration successfully.
<AR1>
<AR1>sys
Enter system view, return user view with Ctrl+Z.
[AR1]undo nat address-group 1
[AR1]quit
<AR1>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]Y
Now saving the current configuration to the slot 17.
Save the configuration successfully.
<AR1>
<AR1>
<AR1>
<AR1>
<AR1>sys
Enter system view, return user view with Ctrl+Z.
[AR1]acl 2000
[AR1-acl-basic-2000]rule 10 permit source 192.168.9.0 0.0.0.255
[AR1-acl-basic-2000]quit
[AR1]inter G    
[AR1]inter GigabitEthernet0/0/1
[AR1-GigabitEthernet0/0/1]nat outbound 2000
[AR1-GigabitEthernet0/0/1]quit
[AR1]quit
<AR1>save