Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Routemap + NAT

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
Purple

Re: Routemap + NAT

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

New Member

Re: Routemap + NAT

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 ?

Purple

Re: Routemap + NAT

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

236
Views
0
Helpful
3
Replies