| 场景 | 多公网地址场景 |
|---|---|
| 适用 | H3C Comware |
| 命令族 | nat address-group + address 起止地址 + nat outbound address-group |
H3C Comware
H3C Comware
nat address-group 1 name NATPOOL
address 202.1.1.1 202.1.1.20
acl basic 2000
rule 0 permit source 192.168.1.0 0.0.0.255
interface GigabitEthernet1/0/1
nat outbound 2000 address-group NATPOOL
display nat address-group华为 VRP
华为 VRP
nat address-group 1
mode pat
section 0 202.1.1.1 202.1.1.20
interface GigabitEthernet0/0/1
nat outbound 2000 address-group 1思科 IOS
思科 IOS
ip nat pool NATPOOL 202.1.1.1 202.1.1.20 netmask 255.255.255.0
ip nat inside source list 1 pool NATPOOL overload差异:H3C 引用地址池既可用 group-id 也可用 name;华为/思科都用 id 或名称,注意保留接口上的引用关系再改名。