Route:
u t m
sys
vlan batch 100 200
int vlan 100
ip add 192.168.20.1 24
int vlan 200
ip add 10.0.0.1 24
int e0/0/0
port link access
port default vlan 100
int e0/0/1
port link access
port default vlan 200
int g0/0/0
ip add 2.2.2.1 24
quit
ip route-static 0.0.0.0 0.0.0.0 2.2.2.2
nat address-group 1 2.2.2.100 2.2.2.200
nat address-group 2 2.2.2.80 2.2.2.83
acl 2000
rule 5 permint source 192.168.20.0 0.0.0.255
quit
acl 2001
rule 5 permint source 10.0.0.0 0.0.0.255
quit
int g0/0/0
nat outbound 2000 address-geoup 1 no-pat
nat outbound 2001 address-geoup 2
quit
quit
save
y
--------------------------------------------------------------------------
dis nat outbound //查看地址转换结果
--------------------------------------------------------------------------
SW1:
u t m
sys
vlan 100
quit
int e0/0/1
port link access
port default vlan 100
int e0/0/2
port link access
port default vlan 100
int e0/0/3
port link access
port default vlan 100
quit
quit
save
y
------------------------------------------------------------------------------
SW2:
u t m
sys
vlan 200
quit
int e0/0/1
port link access
port default vlan 200
int e0/0/2
port link access
port default vlan 200
int e0/0/3
port link access
port default vlan 200
quit
quit
save
y
----------------------------------------------------------------------
INTERNAT:
u t m
sys
int g0/0/0
ip add 2.2.2.2
quit
quit
save
y
----------------------------------------------------------------
09-19
466
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-14
451
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)