NAT基礎檢視指令

Show ip nat statistic

Router-1#show ip nat statistic

Total translations: 0 (0 static, 0 dynamic, 0 extended)

Outside Interfaces: FastEthernet0/1

Inside Interfaces: FastEthernet0/0

Hits: 0  Misses: 22

Expired translations: 0

Dynamic mappings:

-- Inside Source

access-list 2 pool test2 refCount 0

 pool test2: netmask 255.255.255.0

       start 10.1.1.1 end 10.1.1.1

       type generic, total addresses 1 , allocated 0 (0%), misses 0

可以顯示目前的NAT組態摘要,Input Output介面等相關資訊。

Show ip nat translations

uter-1#show ip nat translations

Pro  Inside global     Inside local       Outside local      Outside global

icmp 10.1.1.1:1        192.168.1.3:1      10.1.1.254:1       10.1.1.254:1

icmp 10.1.1.1:2        192.168.1.3:2      10.1.1.254:2       10.1.1.254:2

icmp 10.1.1.1:3        192.168.1.3:3      10.1.1.254:3       10.1.1.254:3

icmp 10.1.1.1:4        192.168.1.3:4      10.1.1.254:4       10.1.1.254:4

顯示目前NAT對應表

Debug ip nat

Router-1#debug ip nat

IP NAT debugging is on

Router-1#

NAT: s=192.168.1.3->10.1.1.1, d=10.1.1.254 [5]

NAT*: s=10.1.1.254, d=10.1.1.1->192.168.1.3 [6]

NAT: s=192.168.1.3->10.1.1.1, d=10.1.1.254 [6]

NAT*: s=10.1.1.254, d=10.1.1.1->192.168.1.3 [7]

NAT: s=192.168.1.3->10.1.1.1, d=10.1.1.254 [7]

NAT*: s=10.1.1.254, d=10.1.1.1->192.168.1.3 [8]

NAT: s=192.168.1.3->10.1.1.1, d=10.1.1.254 [8]

NAT*: s=10.1.1.254, d=10.1.1.1->192.168.1.3 [9]

S代表來源  à代表轉換  d代表目的

arrow
arrow
    全站熱搜

    林作倉 發表在 痞客邦 留言(0) 人氣()