###現状
・疎通可
PC-1←→R1
R1←→PC-2
・疎通不可
PC-1←→PC-2
debug ip nat
①R1→PC-2へping 100.1.1.2を飛ばしたとき以下のログが表示される。
R1#ping 100.1.1.2 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 100.1.1.2, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/13/20 ms R1# *Mar 1 00:57:22.175: NAT*: s=100.1.1.2, d=100.1.1.1->192.168.0.1 [30] *Mar 1 00:57:22.179: NAT*: s=100.1.1.2, d=100.1.1.1->192.168.0.1 [31] *Mar 1 00:57:22.203: NAT*: s=100.1.1.2, d=100.1.1.1->192.168.0.1 [32] *Mar 1 00:57:22.219: NAT*: s=100.1.1.2, d=100.1.1.1->192.168.0.1 [33] *Mar 1 00:57:22.231: NAT*: s=100.1.1.2, d=100.1.1.1->192.168.0.1 [34]
②PC-2→R1へping 100.1.1.1を飛ばしたとき以下のログが表示される。
R1# *Mar 1 00:57:43.567: NAT*: s=100.1.1.2, d=100.1.1.1->192.168.0.1 [6775] *Mar 1 00:57:43.567: NAT: s=192.168.0.1->100.1.1.1, d=100.1.1.2 [6775] R1# *Mar 1 00:57:44.611: NAT*: s=100.1.1.2, d=100.1.1.1->192.168.0.1 [6776] *Mar 1 00:57:44.611: NAT: s=192.168.0.1->100.1.1.1, d=100.1.1.2 [6776] R1# *Mar 1 00:57:45.643: NAT*: s=100.1.1.2, d=100.1.1.1->192.168.0.1 [6777] *Mar 1 00:57:45.643: NAT: s=192.168.0.1->100.1.1.1, d=100.1.1.2 [6777] R1# *Mar 1 00:57:46.683: NAT*: s=100.1.1.2, d=100.1.1.1->192.168.0.1 [6778] *Mar 1 00:57:46.683: NAT: s=192.168.0.1->100.1.1.1, d=100.1.1.2 [6778] R1# *Mar 1 00:57:47.719: NAT*: s=100.1.1.2, d=100.1.1.1->192.168.0.1 [6779] *Mar 1 00:57:47.719: NAT: s=192.168.0.1->100.1.1.1, d=100.1.1.2 [6779] R1# *Mar 1 00:58:22.651: NAT: expiring 100.1.1.1 (192.168.0.1) icmp 6 (6) R1# *Mar 1 00:58:43.643: NAT: expiring 100.1.1.1 (192.168.0.1) icmp 30490 (30490) R1# *Mar 1 00:58:44.667: NAT: expiring 100.1.1.1 (192.168.0.1) icmp 30746 (30746) R1# *Mar 1 00:58:45.691: NAT: expiring 100.1.1.1 (192.168.0.1) icmp 31002 (31002) R1# *Mar 1 00:58:46.715: NAT: expiring 100.1.1.1 (192.168.0.1) icmp 31258 (31258) R1# *Mar 1 00:58:47.739: NAT: expiring 100.1.1.1 (192.168.0.1) icmp 31514 (31514)
show ip nat statistics
R1#show ip nat statistics Total active translations: 1 (1 static, 0 dynamic; 0 extended) Outside interfaces: FastEthernet1/2 Inside interfaces: FastEthernet1/1 Hits: 20 Misses: 9 CEF Translated packets: 24, CEF Punted packets: 0 Expired translations: 9 Dynamic mappings: Appl doors: 0 Normal doors: 0 Queued Packets: 0
show ip nat translations
R1#show ip nat translations Pro Inside global Inside local Outside local Outside global --- 100.1.1.1 192.168.0.1 --- ---
show run
R1#show run Building configuration... Current configuration : 1797 bytes ! version 12.4 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname R1 ! boot-start-marker boot-end-marker ! ! no aaa new-model memory-size iomem 5 no ip icmp rate-limit unreachable ip cef ! ! ! ! no ip domain lookup ip auth-proxy max-nodata-conns 3 ip admission max-nodata-conns 3 ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ip tcp synwait-time 5 ! ! ! ! ! interface FastEthernet0/0 no ip address shutdown 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 no ip address shutdown clock rate 2000000 ! interface Serial0/2 no ip address shutdown clock rate 2000000 ! interface FastEthernet1/0 ! interface FastEthernet1/1 no switchport ip address 192.168.0.1 255.255.255.0 ip nat inside ip virtual-reassembly ! interface FastEthernet1/2 no switchport ip address 100.1.1.1 255.255.255.0 ip nat outside ip virtual-reassembly ! interface FastEthernet1/3 ! interface FastEthernet1/4 ! interface FastEthernet1/5 ! interface FastEthernet1/6 ! interface FastEthernet1/7 ! interface FastEthernet1/8 ! interface FastEthernet1/9 ! interface FastEthernet1/10 ! interface FastEthernet1/11 ! interface FastEthernet1/12 ! interface FastEthernet1/13 ! interface FastEthernet1/14 ! interface FastEthernet1/15 ! interface Vlan1 no ip address ! ip forward-protocol nd ! ! no ip http server no ip http secure-server ip nat inside source static 192.168.0.1 100.1.1.1 ! no cdp log mismatch duplex ! ! ! control-plane ! ! ! ! ! ! ! ! ! ! line con 0 exec-timeout 0 0 privilege level 15 logging synchronous line aux 0 exec-timeout 0 0 privilege level 15 logging synchronous line vty 0 4 login ! ! end
###疑問点
・debug ip natについて
①のログを見ると、PC-2→PC-1へのパケットの流れが確認できますが、PC-1→PC-2へのパケットログが表示されません。
②のログを見ると、戻りと行きのパケットの流れが確認できるので正常かなと思いましたが、NAT: expiringが表示されてしまいます。
上記2点の原因が分かりません。
・PC-1とPC-2の疎通について
現時点では疎通できませんが、NATが正常に設定されれば、PC-1からコマンドで「ping PC-2のIPアドレス」、また、その反対方向のpingが届く認識で合ってますでしょうか。
何かご存知の方いらっしゃいましたら、アドバイスいただけると助かります。
以上、ご確認お願いいたします。
###追記
各PCのゲートウェイの修正、R1のfa1/1のIPアドレスを192.168.0.2に修正後、PC-1→PC-2への疎通は確認できました。一方、PC-2→PC-1への疎通はtimeoutとなりました。

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/01/31 03:18
2018/01/31 10:16
2018/01/31 12:02
2018/01/31 12:21
2018/01/31 12:26
2018/01/31 13:11
2018/01/31 13:42
2018/02/03 06:16
2018/02/03 07:18
2018/02/03 08:33
2018/02/03 09:17