Re: natテーブルの出力について。

この質問の投稿一覧へ

なし Re: natテーブルの出力について。

msg# 1.1
depth:
1
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2016-12-29 8:01
antares01  長老   投稿数: 690
こんな感じかと思います。

Dynamic NAT
    192.168.234.0/24    10.1.5.0/24
[R2]----------+-----[R1]----------[R5]
              |   in    out
[R3]----------+
              |
[R4]----------+

ip access-list stand SOURCE
 permit 192.168.234.0 0.0.0.255

ip nat pool POOL 10.1.5.2 10.1.5.3 net 255.255.255.0
ip nat in so list SOURCE pool POOL


R1#sh ip nat trans
Pro Inside global      Inside local       Outside local      Outside global
icmp 10.1.5.2:3        192.168.234.2:3    10.1.5.5:3         10.1.5.5:3
--- 10.1.5.2           192.168.234.2      ---                ---
icmp 10.1.5.3:3        192.168.234.3:3    10.1.5.5:3         10.1.5.5:3
--- 10.1.5.3           192.168.234.3      ---                ---
R1#
R1#
R1#sh ip nat trans
Pro Inside global      Inside local       Outside local      Outside global
icmp 10.1.5.2:10       192.168.234.4:10   10.1.5.5:10        10.1.5.5:10
--- 10.1.5.2           192.168.234.4      ---                ---
R1#

Static PAT
構成はDynamic NATと同じ
ip nat in so sta tcp 192.168.234.2 8080 10.1.5.1 80

R5#telnet 10.1.5.1 80
Trying 10.1.5.1, 80 ... Open
get
HTTP/1.1 400 Bad Request
Date: Wed, 28 Dec 2016 21:04:04 GMT
Server: cisco-IOS
Accept-Ranges: none
 
400 Bad Request
[Connection to 10.1.5.1 closed by foreign host]
R5#

R1#sh ip nat trans
Pro Inside global      Inside local       Outside local      Outside global
tcp 10.1.5.1:80        192.168.234.2:8080 10.1.5.5:42306     10.1.5.5:42306
tcp 10.1.5.1:80        192.168.234.2:8080 ---                ---
R1#

あと、Static NATは通信が発生すれば、外部も表示されると思いますが。。

投稿ツリー

  >フォーラム検索へ


Copyright (c) 2020 Ping-t All rights reserved.
ログイン
ユーザ名 or E-Mailアドレス:

パスワード:







Contact

LPI-Japan Logo

LPI Logo