Cisco: Konfigurasi NAT: Difference between revisions

No edit summary
No edit summary
 
Line 28: Line 28:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
  Router1#sh ip nat statistics
  Router1#sh ip nat statistics
  Total translations: 1 (1 static, 0 dynamic, 0 extended)
  Total translations: 1 (1 static, 0 dynamic, 0 extended)
  Outside Interfaces: FastEthernet0/1
  Outside Interfaces: FastEthernet0/1
  Inside Interfaces: FastEthernet0/0
  Inside Interfaces: FastEthernet0/0
  Hits: 10  Misses: 36
  Hits: 10  Misses: 36
  Expired translations: 19
  Expired translations: 19
  Dynamic mappings:
  Dynamic mappings:
  Router1#sh ip nat translations
  Router1#sh ip nat translations
  Pro  Inside global    Inside local      Outside local      Outside global
  Pro  Inside global    Inside local      Outside local      Outside global
  —  12.12.12.12      10.10.10.2        —
  —  12.12.12.12      10.10.10.2        —
  Router1#sh ip route
  Router1#sh ip route
  Gateway of last resort is 12.12.12.2 to network 0.0.0.0
  Gateway of last resort is 12.12.12.2 to network 0.0.0.0
 
       10.0.0.0/24 is subnetted, 1 subnets
       10.0.0.0/24 is subnetted, 1 subnets
  C      10.10.10.0 is directly connected, FastEthernet0/0
  C      10.10.10.0 is directly connected, FastEthernet0/0
       12.0.0.0/24 is subnetted, 1 subnets
       12.0.0.0/24 is subnetted, 1 subnets
  C      12.12.12.0 is directly connected, FastEthernet0/1
  C      12.12.12.0 is directly connected, FastEthernet0/1
  S*  0.0.0.0/0 [1/0] via 12.12.12.2
  S*  0.0.0.0/0 [1/0] via 12.12.12.2