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

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

For an introduction to the new site, click here. And see here for current known issues.

New Member

Problem Configuring Nat On a Stick


I'm trying to configure NAT on a stick just as a learning exercise in my home network. I followed the instructions on Cisco's website ( also an article on techrepublic ( that showed how to configure nat on a stick.

My setup is as follows

Comcast Connection

68.33.x.x IP address


Netgear Router

The netgear's gateway is and it leases to one computer on my home network

Right now, I have a hub connected between the Netgear router, the Cisco 2610, and the Windows PC that I will use to get on the internet. The Netgear router hooks into the uplink port on the Hub. The Cisco, and the PC all hook into 2 of the other ports.

The first question I have is whether or not it is better to have a switch or a hub in order to make this work? I know all of the advantages of using a switch but the techrepublic article specifically mentioned using a hub. Is there a reason or will either one work for this type of setup?

I'm trying to configure in a similar fashion as to what both articles said.

Here is my setup

interface Loopback0

ip address

ip nat outside


interface Ethernet0/0

ip address secondary

ip address

ip nat inside

ip policy route-map Nat-loop



ip nat pool external prefix-length 29

ip nat inside source list 10 pool external overload

ip http server

no ip http secure-server

ip classless

ip route

ip route Ethernet0/0

access-list 10 permit

access-list 102 permit ip any

access-list 102 permit ip any

route-map Nat-loop permit 10

match ip address 102

set ip next-hop

My router isn't able to connect to anything outside of the local network. Even doing a traceroute to an external IP is not working?

Please advise

Cisco Employee

Re: Problem Configuring Nat On a Stick


Try the below,

route-map Nat-loop permit 10

match ip address 102

set interface loopback 0

Now change, the NAT inside/outside as below,

interface loopback 0

ip nat inside

interface e0/0

ip nat outside

In your config NAT inside and outside is configured in wrong interfaces.

With the new config, Your PBR will forward the packet to loopback interface. Now the packet will be looped and send back from loopback interface to E0/0 (inside i/f to outside i/f) and your NAT will kick in.



New Member

Re: Problem Configuring Nat On a Stick


try this:

route-map Nat-loop permit 10

no set ip next-hop

set interface loopback0