Static NAT

192.168.234.0/24 10.1.5.0/24 [R2]----------+--------(fa1/0)--[R1]--(fa0/0)--------[R5] | in out [R3]----------+ | [R4]----------+
R2#ping 10.1.5.5 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 10.1.5.5, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 16/27/44 ms R2#telnet 10.1.5.5 Trying 10.1.5.5 ... Open User Access Verification Password: R5>
R1(config)#do sh ip nat trans Pro Inside global Inside local Outside local Outside global icmp 10.1.5.1:1 192.168.234.2:1 10.1.5.5:1 10.1.5.5:1 tcp 10.1.5.1:35937 192.168.234.2:35937 10.1.5.5:23 10.1.5.5:23 --- 10.1.5.1 192.168.234.2 --- --- R1(config)#
hostname R1 ! int fa0/0 ip nat out ! int fa1/0 ip nat in ! ip nat inside source static 192.168.234.2 10.1.5.1 ! end
コメント