| 华为做法 | nat-policy 中 action source-nat 引用地址池或 easy-ip |
|---|---|
| H3C 做法 | 出接口下 nat outbound 关联 ACL 与地址池 |
| AF 做法 | 控制台 NAT 模块配置源地址转换策略 |
华为示例(V500 风格)
华为示例(V500 风格)
system-view
nat-policy
rule name snat-out
source-zone trust
destination-zone untrust
source-address 192.168.10.0 mask 255.255.255.0
action source-nat address-group natpool
quit
quitH3C 示例
H3C 示例
system-view
acl basic 2000
rule 0 permit source 192.168.10.0 0.0.0.255
quit
interface GigabitEthernet1/0/2
nat outbound 2000 address-group 1
quit源 NAT 与安全策略要同时存在:策略负责放行,NAT 负责地址转换,缺一不可。