Templates for Configuring Cisco Routers
Below are templates that are useful for fast configuration of Cisco routers. I have compiled several routers that are commonly used. Please contact me for any questions related to this article.
There are several methods of configuring a Cisco router but ill be using the IOS command-line interface. There are a couple reasons for using the CLI (command line interface) but the main reason is:
Speed; after investing the time to learn the commands you can perform many operations much more quickly than by using a menu
Setting up
Initially you will configure the router from a terminal using a serial cable. A serial cable is delivered with the Cisco router; view a snapshot of serial cable picture below:
Plug the serial cable into a serial (COM) port on the PC and the other end into the console port on the Cisco router. See pictorial illustrations below:
If you are using Windows XP start HyperTerminal and follow the wizard for set up; remember to set the connection speed to 9600 baud or click the restore defaults button. If you are connecting using a Linux box you can use Seyon. However, windows vista and 7 does not come and you will need to download putty portable. Click here to download it.
After the router boots, it will ask you if you wish to begin initial configuration. Type “no” if you type “yes”, it will take you to the menu interface
My main aim when drafting this section was to provide you with the shortest possible way to configure your router. To know more about Cisco routers you can use other articles or ask me through the comment section of this post.
Configuring the Router for Internet Access
To use this template you will require a notepad; to access a notepad in your computer, go to start and click run or press windows key + r. on the run dialog box type notepad and press enter.
Cisco 800 Series
If you are using the 800 series router copy the codes below and paste them on your notepad.
Note: The Internet interface will be fastethernet4 and the rest will be for your LAN
………………………………………………………………………………………………………………………………………………………start of copy
Conf t
!
hostname inAdvert.com
!
boot-start-marker
boot-end-marker
!
logging buffered 4096 debugging
enable secret test
!
no aaa new-model
ip subnet-zero
!
!
ip name-server 41.203.208.18
ip name-server 41.203.208.19
!
username wilber password wanjira
!
!
!
interface Vlan1
description LAN
ip address 192.168.0.1 255.255.255.0
ip nat inside
full-duplex
!
interface FastEthernet4
description INTERNET_CONNECTION
ip address 41.203.217.210 255.255.255.252
ip nat outside
speed auto
full-duplex
!
ip nat inside source list 102 interface FastEthernet0 overload
ip classless
ip route 0.0.0.0 0.0.0.0 41.203.217.209
!
!
access-list 102 permit ip 192.168.0.0 0.0.0.255 any
!
banner motd ^CCC
========================================================
UNAUTHORISED ACCESS NOT PERMITTED
========================================================^C
!
line con 0
login local
line aux 0
login local
no exec
line vty 0 4
login local
transport input telnet
!
end
wr
………………………………………………………………………………………………………………………………………………………end of copy
Scroll to “making changes to the notepad” section to continue:
Cisco 1700 Series
If you are using the 1700 series router copy the codes below and paste them on your notepad.
Note: The Internet interface will be fastethernet0 and the internal interface will be ethernet0
………………………………………………………………………………………………………………………………………………………start of copy
Conf t
!
hostname inAdvert.com
!
boot-start-marker
boot-end-marker
!
logging buffered 4096 debugging
enable secret test
!
no aaa new-model
ip subnet-zero
!
!
ip name-server 41.203.208.18
ip name-server 41.203.208.19
!
username wilber password wanjira
!
!
!
interface ethernet0
description LAN
ip address 192.168.0.1 255.255.255.0
ip nat inside
full-duplex
!
interface FastEthernet0
description INTERNET_CONNECTION
ip address 41.203.217.210 255.255.255.252
ip nat outside
speed auto
full-duplex
!
ip nat inside source list 102 interface FastEthernet0 overload
ip classless
ip route 0.0.0.0 0.0.0.0 41.203.217.209
!
!
access-list 102 permit ip 192.168.0.0 0.0.0.255 any
!
banner motd ^CCC
========================================================
UNAUTHORISED ACCESS NOT PERMITTED
========================================================^C
!
line con 0
login local
line aux 0
login local
no exec
line vty 0 4
login local
transport input telnet
!
end
wr
………………………………………………………………………………………………………………………………………………………end of copy
Scroll to “making changes to the notepad” section to continue:
Cisco 1800 Series
If you are using the 1800 series router copy the codes below and paste them on your notepad.
Note: The Internet interface will be fastethernet0/0 and the internal interface will be fastethernet0/1
………………………………………………………………………………………………………………………………………………………start of copy
Conf t
!
hostname inAdvert.com
!
boot-start-marker
boot-end-marker
!
logging buffered 4096 debugging
enable secret test
!
no aaa new-model
ip subnet-zero
!
!
ip name-server 41.203.208.18
ip name-server 41.203.208.19
!
username wilber password wanjira
!
!
!
interface fastethernet0/1
description LAN
ip address 192.168.0.1 255.255.255.0
ip nat inside
full-duplex
!
interface FastEthernet0/0
description INTERNET_CONNECTION
ip address 41.203.217.210 255.255.255.252
ip nat outside
speed auto
full-duplex
!
ip nat inside source list 102 interface FastEthernet0 overload
ip classless
ip route 0.0.0.0 0.0.0.0 41.203.217.209
!
!
access-list 102 permit ip 192.168.0.0 0.0.0.255 any
!
banner motd ^CCC
========================================================
UNAUTHORISED ACCESS NOT PERMITTED
========================================================^C
!
line con 0
login local
line aux 0
login local
no exec
line vty 0 4
login local
transport input telnet
!
end
!
Wr
………………………………………………………………………………………………………………………………………………………end of copy
Scroll to “making changes to the notepad” section to continue:
Making Changes to the Notepad
Having copied the content to your notepad, it is time to replace the following:
Router Name
With the notepad opened press “ctrl+h” to open the replace dialog box. On the find what text box type “inAdvert” which is the current router name. On the replace with text box type the intended router name you want and click replace all to make the changes. Click cancel to close the dialog box.
Enable Secret
This is the password that enables a user to access the privileged section of the router OS. With the notepad opened press “ctrl+h” to open the replace dialog box. On the find what text box type “test” which is the current enable secret. On the replace with text box type the desired password and click replace all to make the changes. Click cancel to close the dialog box.
Domain Name Server
The DNS is given to you by your Internet ISP. With the notepad opened press “ctrl+h” to open the replace dialog box. On the find what text box type “41.203.208.18” which is the current primary DNS. On the replace with text box type your ISP primary DNS and click replace all to make the changes. On the find what text box type “41.203.208.19” which is the current secondary DNS. On the replace with text box type your ISP secondary DNS and click replace all to make the changes. Click cancel to close the dialog box.
Username and Password
The username and password is used to give users access to the router. With the notepad opened press “ctrl+h” to open the replace dialog box. On the find what text box type “wilber” which is the current username. On the replace with text box type your desired login name and click replace all to make the changes. On the find what text box type “Wanjira” which is current user password. On the replace with text box type the desired login password. Click replace all to make the changes. Click cancel to close the dialog box.
Internet IP Addresses
The internet IP address is provided by the ISP after mapping and they are necessary to enable you gain access to the public network. With the notepad opened press “ctrl+h” to open the replace dialog box. On the find what text box type “41.203.217.210” which is the current internet IP. On the replace with text box type the IPS provided to you by your ISP. Click replace all to make the changes. Click cancel to close the dialog box.
Internet Subnet Mask
These are provided by the ISP and they work with the Internet IP address. With the notepad opened press “ctrl+h” to open the replace dialog box. On the find what text box type “255.255.255.252” which is the current internet subnet mask. On the replace with text box type the subnet mask given to you by your ISP. Click replace all to make the changes. Click cancel to close the dialog box.
Internet Gateway
These are provided by the ISP and they work with the Internet IP address. With the notepad opened press “ctrl+h” to open the replace dialog box. On the find what text box type “41.203.217.209” which is the current internet gateway. On the replace with text box type the internet gateway given to you by your ISP. Click replace all to make the changes. Click cancel to close the dialog box.
These are all the changes required to get you started. Save your notepad and copy all the notepad contents to your clipboard. To copy to your clipboard press “ctrl+a” to select all the notepad content then press “ctrl+c” notepad configs to the clipboard. Go to the next step.
Uploading the configs to your Router
After copying the notepad contents, open up your HyperTerminal program. Access the router privileged mode. Note: the router privileged mode ends in a # sign e.g. if the router name is “router”, the privileged mode will be
Router#
From the edit menu of HyperTerminal, click on paste to upload the notepad configs to your router. Test if the connection works.
this will sure help the freshers, keep up the good job mkubwa.
thanks man, feel free to chip in whenever you can.
Way to go man