<?xml:namespace prefix = v ns = "urn:schemas-microsoft-com:vml" /> 
 
 
 
 
 
 
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
要点:
R1 后面的内网和 R3 后面的内网代表各自的公司。 R1 R3 是边界路由器,在 R1 R3 上都要做 NAT
2 个公司的内部地址用了重叠的地址 ~~
现在要解决 2 个问题:

 

1,  R1 R3 之间建立了 ××× ,后面的内网要相互通信,怎样转换地址?

我用的方案是用 inside source Network 2 个网段都映射出来,测试可行。
配置如下:
R1#sh running-config

 

 

interface Tunnel0
 ip address 10.1.1.1 255.255.255.0
 ip nat outside
 ip virtual-reassembly
 tunnel source Serial0/0
 tunnel destination 192.168.23.3
!
interface Serial0/0
 ip address 192.168.12.1 255.255.255.0
 ip nat outside
 ip virtual-reassembly
 ip ospf 1 area 0
 serial restart-delay 0
!
!
interface FastEthernet1/0
 ip address 192.168.1.254 255.255.255.0
 ip nat inside
 ip virtual-reassembly
 duplex auto
 speed auto
!
router ospf 1
 log-adjacency-changes
!
ip http server
no ip http secure-server
ip route 172.16.3.0 255.255.255.0 Tunnel0
!
!
ip nat inside source static network 192.168.1.0 172.16.1.0 /24
!
!

 

 

 

 

2,  同时, R3 内部的主机要访问 Internet ,需要使用 PAT 映射到接口地址··

 

  这个问题如何解决?

 

192.168.1.0------ 172.16.3.0
192.168.1.0----- 192.168.23.3
  2 NAT 同时存在 R3 上, 实验现象是: NAT 只按照 inside static network 定义的来转换,不会考虑那个 PAT

 

 

有没有什么办法解决?