2020-06-18

Basic Configuration for Cisco Router


This is the basic configuration for your Cisco router.Access your router and type
the following commands.

Router>
Router>enable
Router#
Router#conf t
Router(config)#no logging console
Router(config)#no ip domain lookup
Router(config)#no service config
Router(config)#service password-encryption
Router(config)#enable secret cisco

Restrict access to the router via console.

Router(config)#line console 0
Router(config-line)#password cisco1
Router(config-line)#login
Router(config-line)#exec-timeout 5
Router(config-line)#logging synchronous
Router(config-line)#exit

Restrict access to the router via telnet.

Router(config)#line vty 0 4
Router(config-line)#password cisco1
Router(config-line)#login
Router(config-line)#exec-timeout 5
Router(config-line)#logging synchronous
Router(config-line)#end
Router#copy run start

Configure Static Route.

Router#
Router#conf t
Router(config)#
Router(config)#ip route 0.0.0.0 0.0.0.0 192.168.1.1

Note. Supposed 192.168.1.1 is the given gateway IP address of the ISP

Configure ISP's IP address and NAT on the interface fa0/0.

Router(config)#int fa0/0
Router(config-if)#description WAN
Router(config-if)#ip address 192.168.10.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#ip nat outside
Router(config-if)#exit

Configure IP address and NAT for local area network.

Router(config)#
Router(config)#int fa0/1
Router(config-if)#description LAN
Router(config-if)#ip address 10.0.10.1 255.255.255.0
Router(config-if)#ip nat inside
Router(config-if)#no shutdown
Router(config-if)#exit


Configure Access Control List and PAT to connect to internet.

Router(config)#ip access-list standard LAN
Router(config-std-nacl)#permit 10.0.10.0 0.0.0.255
Router(config-std-nacl)#exit
Router(config)#ip nat inside source list LAN int fa0/0 overload
Router(config)#exit
Router#copy run start

Configure the DHCP Server

Router#
Router#conf t
Router(config)#ip dhcp excluded-address 10.0.10.1 10.0.10.10
Router(config)#ip dhcp pool CISCO
Router(dhcp-config)#network 10.0.10.0 255.255.255.0
Router(dhcp-config)#default-router 10.0.10.1
Router(dhcp-config)#dns-server 8.8.8.8
Router(dhcp-config)#exit






Reactions:

0 comments:

Post a Comment