Here is a simple script I wrote to configure a Cisco router. First the header of my script:

##CISCO SCRIPT#### This script assumes you are in enable mode and ready to configure the router

##Lets configure the interfaces

Now configure terminal by entering these commands:

configure terminal
interface gig 0/0
description Lan
ip address 10.0.0.1 255.255.255.0
ip nat inside
no shutdown
exit

Conf T

interface gig 0/1
description Wan
ip address x.x.x.x x.x.x.x
ip nat outside
no shutdown
exit

## We need a default route (the x’s should be your default gateway)
Conf T

ip route 0.0.0.0 0.0.0.0 x.x.x.x

##now we need to setup the nat list for the internet

ip nat inside source list NAT interface gig 0/1 overload

##and of course we cant do anything without an access list to let traffic pass

ip access-list ext NATpermit ip 10.0.0.0 0.0.0.255 any

And that is a basic configuration, of course you will probably need to forward some ports so just copy and paste this line, if you need to change the port just edit the port number in the line

conf t
ip nat inside source static tcp 10.0.0.1 25 60.10.10.10 25 extendable

and thats all folks, please email us if you need any help on setting these routers up. IronTech Solutions is happy to try to solve any issue we can. My next post will cover some more advanced configurations and if there is anything you would like to know you can email us with those questions.