650) this.width=650; "style=" width:559px;height:180px; "title=" @_k9sq05]r11o2%x4c@el3e.jpg "src=" http:/ S3.51cto.com/wyfs02/m01/56/9f/wkiom1sju5hhbftbaac8zogrheo881.jpg "width=" 992 "height=" 266 "alt=" Wkiom1sju5hhbftbaac8zogrheo881.jpg "/>
First, complete the Exchange (R2) configuration
Second, complete the configuration of the external network R7 routing, the device simulates the operator's router, which is configured on the loopback interface 0, and assigns the IP address 200.100.100.1/24 used to simulate a node on the public network
Configuration R2, using NAT static one-to-one IP mapping, so that R7 can access the external network, the external network can also be accessed through the public network address R7
Configuration and implementation
R7 Configuration
!
Interface Loopback0
IP address 200.100.100.1 255.255.255.255
!
Interface Loopback1
No IP address
!
Interface fastethernet0/0
No IP address
Shutdown
Duplex Auto
Speed auto
!
Interface serial0/0
IP address 202.101.100.1 255.255.255.0
Clock rate 64000
R2 Basic Configuration
!
Interface fastethernet0/0
IP address 192.168.100.1 255.255.255.0
Duplex Auto
Speed auto
!
Interface serial0/0
No IP address
Shutdown
Clock rate 2000000
!
Interface FASTETHERNET0/1
No IP address
Shutdown
Duplex Auto
Speed auto
!
Interface SERIAL0/1
IP address 202.101.100.2 255.255.255.0
Clock rate 64000
!
IP Route 0.0.0.0 0.0.0.0 202.101.100.1
R2 Configuration
!
Interface fastethernet0/0
IP address 192.168.100.2 255.255.255.0
Duplex Auto
Speed auto
IP Route 0.0.0.0 0.0.0.0 192.168.100.1
!
Now the basic configuration is complete, but R2 can ping R1 can ping through, because they are in a direct-connect route so it can ping normally but ping R7 can't ping through
Test
Ping R1 Routing
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.100.1, timeout is 2 seconds:
!!!!!
Success rate is percent (5/5), round-trip Min/avg/max = 20/30/68 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 202.101.100.2, timeout is 2 seconds:
!!!!!
Success rate is percent (5/5), round-trip Min/avg/max = 4/47/68 ms
Test ping R7 Routing
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 202.101.100.1, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
One of the most important aspects of ping does not do NAT many people have encountered such a fault, and now I put NAT to test the network
NAT configuration configured on R1
R1 (config) #ip nat inside source static 192.168.100.1 202.101.100.1
R1 (config) #interface f0/0
R1 (config-if) #ip nat inside
R1 (config) #interface S0/1
R1 (config-if) #ip Nat outside
The configuration is complete and now the test
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 202.101.100.1, timeout is 2 seconds:
!!!!!
Success rate is percent (5/5), round-trip Min/avg/max = 12/36/64 ms
This article from "Scarecrow" blog, declined reprint!
Router Online debugging