Skip to content

Instantly share code, notes, and snippets.

@tinbotu
Created May 29, 2012 17:11
Show Gist options
  • Save tinbotu/2829572 to your computer and use it in GitHub Desktop.
Save tinbotu/2829572 to your computer and use it in GitHub Desktop.
ix2015 の napt テーブルエントリ数とれそう。未調査だけどsnmpでもとれないかな
ix2015-iwt(config)# sh ip napt ?
record -- Show NAPT address-base information
reserve -- Show NAPT reserve entries
service -- Show ALG service entries
statistics -- Show NAT/NAPT statistics
translation -- Show NAPT cache entries
ix2015-iwt(config)# sh ip napt translation
Interface: FastEthernet0/0.0
NAPT Cache - 1 entry, 4095 free, 12 peak, 20 create, 0 overflow
Codes: A - ALG, S - Static, Service
Prot Inside Address:Port Outside Address:Port Dest Address:Port Time
icmp 192.168.2.254:18596 192.168.2.254:18596 192.168.2.1:18596 50
Interface: FastEthernet0/0.1
NAPT Cache - 28 entry, 32740 free, 1130 peak, 120809 create, 0 overflow
Codes: A - ALG, S - Static, Service
Prot Inside Address:Port Outside Address:Port Dest Address:Port Time
icmp 219.161.0.0:59816 219.161.0.0:59816 61.194.0.0:59816 55
tcp 192.168.43.16:49161 219.161.0.0:49161 64.4.0.0:40017 43180
tcp 192.168.43.16:49163 219.161.0.0:49163 193.120.0.0:12350 42993
tcp 192.168.43.16:49178 219.161.0.0:49178 199.47.0.0:80 43179
tcp 192.168.43.16:49586 219.161.0.0:49586 125.56.0.0:80 28137
tcp 192.168.43.16:50313 219.161.0.0:50313 202.33.0.0:80 29199
tcp 192.168.43.16:50314 219.161.0.0:50314 202.33.0.0:80 29199
tcp 192.168.43.16:50315 219.161.0.0:50315 202.33.0.0:80 29199
tcp 192.168.43.16:50316 219.161.0.0:50316 202.33.0.0:80 29200
tcp 192.168.43.16:50340 219.161.0.0:50340 202.33.0.0:80 29202
tcp 192.168.43.16:50341 219.161.0.0:50341 202.33.0.0:80 29202
tcp 192.168.43.16:50342 219.161.0.0:50342 202.33.0.0:80 29202
tcp 192.168.43.16:50365 219.161.0.0:50365 202.33.0.0:443 29212
tcp 192.168.43.16:50367 219.161.0.0:50367 202.33.0.0:443 29210
tcp 192.168.43.16:50532 219.161.0.0:50532 199.59.0.0:80 29583
tcp 192.168.43.16:50657 219.161.0.0:50657 199.59.0.0:80 29919
tcp 192.168.43.16:50931 219.161.0.0:50931 125.56.0.0:80 30784
tcp 192.168.43.16:51077 219.161.0.0:51077 199.59.0.0:80 31303
tcp 192.168.43.16:51207 219.161.0.0:51207 199.59.0.0:80 32798
tcp 192.168.43.16:52182 219.161.0.0:52182 199.59.0.0:80 40194
tcp 192.168.43.16:52189 219.161.0.0:52189 199.59.0.0:80 40195
tcp 192.168.43.16:52229 219.161.0.0:52229 199.59.0.0:80 40562
tcp 192.168.43.16:52388 219.161.0.0:52388 199.59.0.0:80 41133
tcp 192.168.43.16:52467 219.161.0.0:52467 199.59.0.0:80 41466
tcp 192.168.43.16:52590 219.161.0.0:52590 199.59.0.0:80 41865
tcp 192.168.43.16:52682 219.161.0.0:52682 199.59.0.0:80 42484
S tcp 192.168.43.254:23 219.161.0.0:23 216.67.0.0:4059 32993
S tcp 192.168.43.254:23 219.161.0.0:23 219.92.0.0:4840 38635
ix2015-iwt(config)# sh ip napt statistics
Interface: FastEthernet0/0.0
Processing packets:
Inside: 924667 receives, 924667 forwards, 0 discards
Outside: 925673 receives, 925673 forwards, 0 discards
Mismatched configuration packets:
Inside: 0 unicast, 0 broadcast
Outside: 0 unicast, 0 broadcast
Translation failure packets:
Inside: 0 packets
Outside: 0 packets
Reassemble packets:
Inside: 0 reasm reqs, 0 reasm oks
Outside: 0 reasm reqs, 0 reasm oks
Memory allocation failures:
0 failures
Static NAT cache entries:
Inside: 0 forwards, 0 drops, 0 creates
Outside: 0 forwards, 0 drops, 0 creates
Dynamic NAT cache entries:
Inside: 0 forwards, 0 drops, 0 creates
Outside: 0 forwards, 0 drops, 0 creates
NAPT cache entries:
Inside: 924667 forwards, 0 drops, 63 creates
Outside: 925673 forwards, 0 drops, 1 creates
Static NAPT cache entries:
Inside: 0 forwards, 0 drops, 0 creates
Outside: 0 forwards, 0 drops, 0 creates
Service NAPT cache entries:
Inside: 0 forwards, 0 drops, 0 creates
Outside: 0 forwards, 0 drops, 0 creates
ALG Service NAPT cache entries:
Inside: 0 forwards, 0 drops, 0 creates
Outside: 0 forwards, 0 drops, 0 creates
Interface: FastEthernet0/0.1
Processing packets:
Inside: 6367731 receives, 6366957 forwards, 774 discards
Outside: 8077557 receives, 7962806 forwards, 114751 discards
Mismatched configuration packets:
Inside: 774 unicast, 0 broadcast
Outside: 114751 unicast, 0 broadcast
Translation failure packets:
Inside: 0 packets
Outside: 0 packets
Reassemble packets:
Inside: 0 reasm reqs, 0 reasm oks
Outside: 782 reasm reqs, 390 reasm oks
Memory allocation failures:
0 failures
Static NAT cache entries:
Inside: 0 forwards, 0 drops, 0 creates
Outside: 0 forwards, 0 drops, 0 creates
Dynamic NAT cache entries:
Inside: 0 forwards, 0 drops, 0 creates
Outside: 0 forwards, 0 drops, 0 creates
NAPT cache entries:
Inside: 6295246 forwards, 0 drops, 702806 creates
Outside: 7885033 forwards, 0 drops, 567 creates
Static NAPT cache entries:
Inside: 0 forwards, 0 drops, 0 creates
Outside: 0 forwards, 0 drops, 0 creates
Service NAPT cache entries:
Inside: 71705 forwards, 0 drops, 12 creates
Outside: 77770 forwards, 0 drops, 3301 creates
ALG Service NAPT cache entries:
Inside: 0 forwards, 0 drops, 0 creates
Outside: 0 forwards, 0 drops, 0 creates
NAPT Service - 2 entries
Prot Address:Port Service Port OutPkt InPkt
icmp 192.168.43.254:any any 3005 3638
tcp 192.168.43.254:23 23 65771 71805
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment