项目需求

需求:PC通过访问192.168.1.1:80达到访问192.168.2.2:80的目的。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
interface FastEthernet0/0
ip address 192.168.2.1 255.255.255.0
ip nat inside
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 192.168.1.1 255.255.255.0
ip nat outside
duplex auto
speed auto
!
ip nat inside source static 192.168.2.2 192.168.1.1
!