From: Narbik Kocharians (narbikk@gmail.com)
Date: Mon Feb 05 2007 - 01:14:46 ART
You also need to configure a PBR (Policy Based Routing), i will send you an
example configuration from my work book hope that helps.
On 2/4/07, Malcolm Price <malcolm.price@lanbase.com> wrote:
>
> 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.10and
> 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
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
>
-- Narbik Kocharians CCIE# 12410 (R&S, SP, Security) CCSI# 30832 Network Learning, Inc. (CCIE class Instructor) www.ccbootcamp.com (CCIE Training)
This archive was generated by hypermail 2.1.4 : Thu Mar 01 2007 - 07:38:46 ART