cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
514
Views
0
Helpful
3
Replies

Routemap + NAT

anka_ozcan
Level 1
Level 1

Hi,

I have following scenario:

Two routemaps defined on the router and NAT is enabled. However, I need to make Remote Dektop Connection and access FTP server behind the router. Without routemap I managed to do, but with routemap I do not know how to do.

Necessary configuration segment is as below:

<.....>

!

ip nat inside source route-map Dialer0 interface Dialer0 overload

ip nat inside source route-map Dialer1 interface Dialer1 overload

!

access-list 97 permit 192.168.1.0 0.0.0.255

access-list 98 permit 192.168.1.0 0.0.0.255

dialer-list 1 protocol ip permit

dialer-list 2 protocol ip permit

!

route-map Dialer0 permit 10

match ip address 97

match interface Dialer0

!

route-map Dialer1 permit 10

match ip address 98

match interface Dialer1

!

<..rest of the config...>

3 Replies 3

pkhatri
Level 11
Level 11

Hi Mate,

You cannot use a route-map for inbound connections - they are only used for outbound connections i.e. connections from your inside network to the outside network.

In order to enable inbound FTP connections, enter in something like the following:

ip nat inside source static tcp 21 21

As long as your clients use active FTP, the above should work just fine.

Hope that helps - pls rate the post if it does.

Paresh

I know, but the problem is that I configured router to do per packet load balancing on two ADSL lines (dynamic ip). When we type

ip nat inside source static tcp 192.168.1.254 21 interface Dialer0 21

ip nat inside source static tcp 192.168.1.254 21 interface Dialer1 21

only last entered one will be accepted, is there any method to overcome this situation ?

The one thing I can suggest is that you assign two internal addresses to your FTP server and then do the following:

ip nat inside source static tcp 192.168.1.253 21 interface Dialer0 21

ip nat inside source static tcp 192.168.1.254 21 interface Dialer1 21

That way, the router will accept both commands.

Hope that helps - pls rate the post if it does.

Paresh

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: