Difference between revisions of "ITT 2013/Network module 1/Assignment Day 12/confHelpSNAT"

From Teknologisk videncenter
Jump to: navigation, search
m
m (Connectivity test)
Line 58: Line 58:
 
{|
 
{|
 
|[[Image:PingWorks.png|600px|left|thumb|Ping]]
 
|[[Image:PingWorks.png|600px|left|thumb|Ping]]
 +
|}
 +
And the internet host should be able to connect to the server on the public address:
 +
{|
 +
|[[Image:SNATWebWorks.png|800px|left|thumb|Web Server]]
 
|}
 
|}
 
And the ICMP packet should be visible in the translationa table:
 
And the ICMP packet should be visible in the translationa table:
 
<source lang=cli>
 
<source lang=cli>
 
MyR1#<input>show ip nat statistics</input>  
 
MyR1#<input>show ip nat statistics</input>  
Total translations: 0 (0 static, 0 dynamic, 0 extended)
+
Total translations: 4 (1 static, 3 dynamic, 3 extended)
 
Outside Interfaces: FastEthernet0/0
 
Outside Interfaces: FastEthernet0/0
 
Inside Interfaces: FastEthernet0/1
 
Inside Interfaces: FastEthernet0/1
Hits: 30 Misses: 37
+
Hits: <notice>46</notice> Misses: 48
Expired translations: 8
+
Expired translations: 16
 
Dynamic mappings:
 
Dynamic mappings:
 
-- Inside Source
 
-- Inside Source
access-list 100 pool My-Pool refCount 0
+
access-list 100 pool My-Pool refCount 2
 
  pool My-Pool: netmask 255.255.255.240
 
  pool My-Pool: netmask 255.255.255.240
 
       start 193.80.112.40 end 193.80.112.45
 
       start 193.80.112.40 end 193.80.112.45
       type generic, total addresses 6 , allocated 0 (0%), misses 0
+
       type generic, total addresses 6 , allocated 1 (16%), misses 0
 
MyR1#<input>show ip nat translations</input>
 
MyR1#<input>show ip nat translations</input>
 
Pro  Inside global    Inside local      Outside local      Outside global
 
Pro  Inside global    Inside local      Outside local      Outside global
<notice>icmp 193.80.112.40:11 10.0.0.12:11       80.112.0.10:11     80.112.0.10:11
+
<notice>icmp 193.80.112.40:19 10.0.0.12:19       80.112.0.10:19     80.112.0.10:19
icmp 193.80.112.40:12 10.0.0.12:12       80.112.0.10:12     80.112.0.10:12
+
icmp 193.80.112.40:20 10.0.0.12:20       80.112.0.10:20     80.112.0.10:20</notice>
icmp 193.80.112.40:13 10.0.0.12:13      80.112.0.10:13    80.112.0.10:13
+
--- 193.80.112.35     10.0.100.100       ---                ---
icmp 193.80.112.40:14  10.0.0.12:14      80.112.0.10:14     80.112.0.10:14
+
<notice>tcp 193.80.112.35:80   10.0.100.100:80   80.112.0.10:1029  80.112.0.10:1029</notice>
icmp 193.80.112.40:15  10.0.0.12:15       80.112.0.10:15    80.112.0.10:15
 
icmp 193.80.112.40:16  10.0.0.12:16      80.112.0.10:16    80.112.0.10:16
 
icmp 193.80.112.40:17  10.0.0.12:17      80.112.0.10:17    80.112.0.10:17
 
icmp 193.80.112.40:18  10.0.0.12:18      80.112.0.10:18    80.112.0.10:18</notice>
 
  
 
MyR1#
 
MyR1#

Revision as of 10:56, 29 October 2013

Kate.png This article is under development....

Setup

MyR1

MyR1#show run
Building configuration...
Current configuration : 765 bytes
!
version 12.4
!
hostname MyR1
!
interface FastEthernet0/0
 ip address 193.80.112.33 255.255.255.240
 ip nat outside
 no shutdown
!
interface FastEthernet0/1
 ip address 10.0.0.1 255.255.0.0
 ip nat inside
 no shutdown
!
<notice>ip nat pool My-Pool 193.80.112.40 193.80.112.45 netmask 255.255.255.240
ip nat in sou static 10.0.100.100 193.80.112.35
ip nat inside source list 100 pool My-Pool</notice>
!
ip route 0.0.0.0 0.0.0.0 193.80.112.34 
!
access-list 100 permit ip 10.0.0.0 0.0.255.255 any
!
end

ISP

ISP#show run
Building configuration...
Current configuration : 515 bytes
!
version 12.4
!
hostname ISP
!
interface FastEthernet0/0
 ip address 80.112.0.1 255.255.255.0
 no shutdown
!
interface FastEthernet0/1
 ip address 193.80.112.34 255.255.255.240
 no shutdown
!
end

Connectivity test

The inside computer should be able to ping the outside host(PC3)

Ping

And the internet host should be able to connect to the server on the public address:

Web Server

And the ICMP packet should be visible in the translationa table:

MyR1#<input>show ip nat statistics</input> 
Total translations: 4 (1 static, 3 dynamic, 3 extended)
Outside Interfaces: FastEthernet0/0
Inside Interfaces: FastEthernet0/1
Hits: <notice>46</notice>  Misses: 48
Expired translations: 16
Dynamic mappings:
-- Inside Source
access-list 100 pool My-Pool refCount 2
 pool My-Pool: netmask 255.255.255.240
       start 193.80.112.40 end 193.80.112.45
       type generic, total addresses 6 , allocated 1 (16%), misses 0
MyR1#<input>show ip nat translations</input>
Pro  Inside global     Inside local       Outside local      Outside global
<notice>icmp 193.80.112.40:19  10.0.0.12:19       80.112.0.10:19     80.112.0.10:19
icmp 193.80.112.40:20  10.0.0.12:20       80.112.0.10:20     80.112.0.10:20</notice>
---  193.80.112.35     10.0.100.100       ---                ---
<notice>tcp 193.80.112.35:80   10.0.100.100:80    80.112.0.10:1029   80.112.0.10:1029</notice>

MyR1#