Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computing > Cisco > Nat-In-A-Stick Problem

Reply
Thread Tools

Nat-In-A-Stick Problem

 
 
Carlo
Guest
Posts: n/a
 
      09-16-2006
Hy, I have some problem to configure LAB with NAT-IN-A-STICK
This is my schema and configurations:

Nat Router External Router
+---------------+ +---------------+
| | |Loop0 177.10.1.3
| sec pri | | |
+------+--------+ +------+--------+
192.168.100.33 | 10.0.148.154 | 10.0.0148.153
-----------+---+-----------------------+
|
+------+--------+
| 192.168.100.2 |
| gw .254 |
| route add |
+---------------+

Nat Router
------------------------
ip subnet-zero
!
interface Loopback0
ip address 10.0.1.1 255.255.255.252
ip nat outside
!
interface FastEthernet0
ip address 192.168.100.33 255.255.255.0 secondary
ip address 10.0.148.154 255.255.255.248
ip nat inside
ip policy route-map Nat-loop
speed auto
!
ip nat pool MyExternal 10.0.148.155 10.0.148.156 prefix-length 29
ip nat inside source list 11 pool MyExternal overload
ip classless
ip route 0.0.0.0 0.0.0.0 10.0.148.153
!
access-list 11 remark "Usata per comunicare con ExternalRouter"
access-list 11 permit 192.168.100.0 0.0.0.255
access-list 102 remark "Usata dalla route-map Nat-loop"
access-list 102 permit ip 192.168.100.0 0.0.0.255 any
access-list 102 permit ip any 10.0.148.0 0.0.0.255
access-list 177 remark "Per scopo debugging"
access-list 177 permit icmp any any
route-map Nat-loop permit 10
match ip address 102
set ip next-hop 10.0.1.2
!
....end


External Router
------------------------
interface Loopback0
ip address 177.10.1.3 255.255.255.0
!
interface Ethernet0
ip address 10.0.148.153 255.255.255.0
!
interface ATM0
....
!
ip classless
ip route 0.0.0.0 0.0.0.0 ATM0


Route Statiche sul Pc
------------------------------------

Route attive:
Indirizzo rete Mask Gateway Interfaccia
Metrica
0.0.0.0 0.0.0.0 192.168.100.254 192.168.100.3
20
10.0.1.0 255.255.255.0 192.168.100.33 192.168.100.3
1
10.0.148.0 255.255.255.0 192.168.100.33 192.168.100.3
1
177.10.1.3 255.255.255.255 192.168.100.33 192.168.100.3
1
Gateway predef.: 192.168.100.254
================================================== =========================
Route permanenti:
Nessuna



***************************

Dal PC:
C:\Documents and Settings\Administrator\Desktop>ping 177.10.1.3

Esecuzione di Ping 177.10.1.3 con 32 byte di dati:

Richiesta scaduta.

Statistiche Ping per 177.10.1.3:
Pacchetti: Trasmessi = 1, Ricevuti = 0,
Persi = 1 (100% persi),
Control-C
^C
C:\Documents and Settings\Administrator\Desktop>


Sul Nat Router:
----------------
1w6d: IP: route map Nat-loop, item 10, permit
1w6d: IP: FastEthernet0 to Loopback0 10.0.1.2
1w6d: IP: route map Nat-loop, item 10, permit
1w6d: IP: FastEthernet0 to Loopback0 10.0.1.2
1w6d: IP: s=10.0.148.156 (FastEthernet0), d=177.10.1.3 (Loopback0),
g=10.0.1.2,len 60, forward
1w6d: ICMP type=8, code=0
1w6d: IP: tableid=0, s=10.0.148.156 (Loopback0), d=177.10.1.3
(FastEthernet0), routed via RIB
1w6d: IP: s=10.0.148.156 (Loopback0), d=177.10.1.3 (FastEthernet0),
g=10.0.148.153, len 60, forward
1w6d: ICMP type=8, code=0
1w6d: IP: route map Nat-loop, item 10, permit
1w6d: IP: FastEthernet0 to Loopback0 10.0.1.2
1w6d: IP: s=10.0.148.156 (FastEthernet0), d=177.10.1.3 (Loopback0),
g=10.0.1.2,len 60, forward
1w6d: ICMP type=8, code=0
1w6d: IP: tableid=0, s=10.0.148.156 (Loopback0), d=177.10.1.3
(FastEthernet0), routed via RIB
1w6d: IP: s=10.0.148.156 (Loopback0), d=177.10.1.3 (FastEthernet0),
g=10.0.148.153, len 60, forward
1w6d: ICMP type=8, code=0
1w6d: IP: tableid=0, s=177.10.1.3 (FastEthernet0), d=10.0.148.156
(FastEthernet0), routed via RIB
1w6d: IP: s=177.10.1.3 (FastEthernet0), d=10.0.148.156 (FastEthernet0),
len 60,rcvd 3
1w6d: ICMP type=0, code=0
1w6d: ICMP: echo reply rcvd, src 177.10.1.3, dst 10.0.148.156


NatRouter#sh ip nat trans
Pro Inside global Inside local Outside local Outside
global
icmp 10.0.148.156:512 192.168.100.3:512 177.10.1.3:512
177.10.1.3:512
NatRouter#


Sull'External Router:
---------------------------------
ExternalRouter#
*Mar 14 11:38:33.247: ICMP: echo reply sent, src 177.10.1.3, dst
10.0.148.156
*Mar 14 11:38:38.627: ICMP: echo reply sent, src 177.10.1.3, dst
10.0.148.156


It seems good the packets from PC to External Router between NAT router
but the answer is seems not working fine.
Why this?

Thanks Carlo

 
Reply With Quote
 
 
 
 
swapnendu swapnendu is offline
Member
Join Date: Sep 2006
Posts: 57
 
      09-16-2006
your configuration shows the ip address of Loopback interface is 10.0.1.1 while your debug messages and route map show it as 10.0.1.2..correct it and it shud wrk...

Also, the exact scenario is explained here...chk it out & find out wht hv u done wrong in your configuration....

http://www.cisco.com/en/US/tech/tk64...80094430.shtml
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem problem problem :( Need Help Mike ASP General 2 05-11-2004 08:36 AM



Advertisments