NAT配置要求:

(1)              和总公司服务器

配置:

en

conf t

ho R1

int f0/0

ip add 192.168.0.1 255.255.255.0

no sh

int f1/0

ip add

no shut

exit

ip route.0 0.0.0.0 10.0.1.1

R2配置:

en

conf t

ho R4

int f0/0

ip add.1 255.255.255.252

no sh

int f1/0

ip add.1 255.255.255.252

no sh

int f2/0

ip add.1 255.255.255.252

no sh

int f3/0

ip add.1 255.255.255.252

no sh

ip route.0 255.255.255.240 10.0.1.2

ip route 222.222.222.0 255.255.255.192.2

ip route 123.0.0.0 255.255.255.240.2

ip route.0 255.255.255.240 10.0.3.2

R5实验结果:实现各路由器互通

R1步骤二:配置PAT配置PAT

access-list 1 permit 192.168.2.0.255

ip nat pool test 222.222.222.1 222.222.222.63 netmask 255.255.255.192

ip nat inside source list 1 pool test overload

int f0/0

ip nat inside

int f1/0

ip nat outside

R2<span style="font-family: 宋体; mso-ascii-font-family: "Times New Roman'; mso-hansi-font-family: 'Times New Roman'">配置PAT

access-list 1 permit 192.168.1.0.255

ip nat pool test 123.0.0.1  123.0.0.14 netmask 255.255.255.240

ip nat inside source list 1 pool test overload

int f0/0

ip nat inside

int f1/0

ip nat outside

<span style="font-family: 宋体; mso-ascii-font-family: "Times New Roman'; mso-hansi-font-family: 'Times New Roman'">实验结果: