Cisco:Basic commands to setup a cisco router

How to lock the privilege mode :

 enable
 configure terminal
 enable secret cisco

How to secure vty ?

enable
configure terminal
line vty 0 15   [ for help type line vty ? ]
login
password cisco

How to secure console port?

enable
configure terminal
line con 0
login
password cisco

How to secure the aux port?

enable
configure terminal
line aux 0
login
password cisco

How to setup banner?

enable
configure terminal
banner motd  #
Please dont log in #

How to encrypt all the password :

configure terminal
service password-encryption

How to change host name?

configure terminal
hostname R2

How to setup logging synchronous?

configure terminal
line console 0
logging synchronous 
line vty 0 15
logging synchronous

How to stop domain lookup?

configure terminal
no ip domain-lookup

How to setup Ip address?

r1#show ip interface brief 	 
configure terminal	 
interface FastEthernet 0/1	 
no shutdown	 
ip address 192.168.1.1 255.255.255.0	 
description Link to switch2

how to allow router to speak with Isp/How to create default route to isp

ip route 0.0.0.0 0.0.0.0 ip-of-isp
meaning: it say to router, if you dont know anything sent it to isp router.

How to allow Internal network to access internet :
Step 1 :
label the interface

configure terminal	 
interface FastEthernet 0/1	 
ip nat inside
exit
interface FastEthernet 0/0
ip nat outside

Step 2 :
Create Access list to allow Internal lan to use NAT

configure terminal
ip access-list standard NAT_ADDRESS
permit 10.0.0.0 0.0.0.255

Step 3 :
Enable nat overload

ip nat inside source list NAT_ADDRESS interface FastEthernet 0/0 overload

How to do port forwarding from router to devices

configure terminal
ip nat inside source static tcp 10.0.0.227 25 interface Ethernet0/0 25

How to distribute static/default route to others routers:

configure terminal
router rip
redistribute static
meaning: it will give default route to each router in the organizations.so we don't have to create default router into each router.

One Response to “Cisco:Basic commands to setup a cisco router”

  1. Just landed on this post via Google seek. I love it. This post switch my percept and I am acquiring the RSS feeds. Cheers Up.

Leave a Reply