R1(config)#int lo0
R1(config-if)#ip add 10.0.0.1 255.0.0.0
R1(config-if)#no shut
R1(config-if)#ip nat inside
R1(config-if)#exit

R1(config)#int fa0/0
R1(config-if)#ip add 200.0.0.1 255.255.255.0
R1(config-if)#ip nat outside
R1(config-if)#no shut

R1(config)#ip nat inside source static 10.0.0.1 200.0.0.2

R1#sh ip nat translations
Pro Inside global      Inside local       Outside local      Outside global
--- 200.0.0.2          10.0.0.1           ---                ---

R1#ping
Protocol [ip]:
Target IP address: 200.0.0.10
Repeat count [5]:
Datagram size [100]:
Timeout in seconds [2]:
Extended commands [n]: y
Source address or interface: 10.0.0.1
Type of service [0]:
Set DF bit in IP header? [no]:
Validate reply data? [no]:
Data pattern [0xABCD]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 200.0.0.10, timeout is 2 seconds:
Packet sent with a source address of 10.0.0.1
..!!!
R1(config)#no ip nat inside source static 10.0.0.1 200.0.0.2

R1#ping
Protocol [ip]:
Target IP address: 200.0.0.10
Repeat count [5]:
Datagram size [100]:
Timeout in seconds [2]:
Extended commands [n]: y
Source address or interface: 10.0.0.1
Type of service [0]:
Set DF bit in IP header? [no]:
Validate reply data? [no]:
Data pattern [0xABCD]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 200.0.0.10, timeout is 2 seconds:
Packet sent with a source address of 10.0.0.1
.....



0 comments:

Post a Comment

 
Top