NAT配置要点:

1.ACL

2.NAT地址池

3.NAT应用到对应的接口

4.一对多或一对一映射

!
ip access-list standard 2
10 permit any
!
!
!
interface GigabitEthernet 0/1
ip nat inside
ip address 8.1.1.2 255.255.255.252
duplex auto
speed auto
description to S5750-2 G0/1
!
interface GigabitEthernet 0/3
ip nat outside
ip address 6.1.1.2 255.255.255.0
duplex auto
speed auto
description to S8606 G1/3
!
!
ip nat pool school2 prefix-length 24
address 6.1.1.2 6.1.1.2 match interface GigabitEthernet 0/3
!
ip nat inside source static 50.1.1.2 6.1.1.22
ip nat inside source list 2 pool school2 overload
!
!