NAT Help, router on a stick with NAT

From: Malcolm Price (malcolm.price@lanbase.com)
Date: Sun Feb 04 2007 - 09:37:13 ART


Hi Group,

 

Has anyone ever setup NAT thorugh a router on a stick configuration.

 

I have a Cisco 2621 with a dot1q trunk supporting two VLANS, 1 and 10.

 

i.e.

 

interface FastEthernet0/0

 no ip address

 speed 100

 full-duplex

!

interface FastEthernet0/0.1

 encapsulation dot1Q 1 native

 ip address 1.1.1.254 255.255.255.0

 ip nat outside

!

interface FastEthernet0/0.10

 encapsulation dot1Q 10

 ip address 10.10.10.1 255.255.255.0

 ip nat inside

 no ip redirects

 

Traffic entering the router via vlan 10 gets checked for a destination
address of 172.1.1.1. If this matches it gets translated to 10.10.10.10 and
it should then go back out of the trunk via vlan 10.

 

I.e.

 

Ip nat inside source static 10.10.10.10 172.1.1.1

 

It gets transled ok, i.e.

 

*Mar 1 23:16:45.426: %SYS-5-CONFIG_I: Configured from console by console

*Mar 1 23:16:52.222: NAT: o: tcp (1.1.1.1, 11021) -> (172.1.1.1, 23) [0]

*Mar 1 23:16:52.222: NAT: s=1.1.1.1, d=172.1.1.1->10.10.10.10 [0]

 

But the traffic does not go via fa0/0.10.

 

If I simply move the ip nat inside statement from fa0/0.10 onto the serial
port s0/0 then it works a treat. It's an issue going back out of the
Ethernet, even though it's two vlans.

 

Any comments would be most welcomed :-)

 

M



This archive was generated by hypermail 2.1.4 : Thu Mar 01 2007 - 07:38:45 ART