Basic Router configuration
1. Verifying
R1#show running-config Building configuration... Current configuration : 598 bytes ! version 12.4 no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption ! hostname R1 ! ! ! R1#show ip interface brief Interface FastEthernet0/0 FastEthernet0/1 Serial0/0/0 Serial0/0/1 Vlan1 R1# IP-Address unassigned unassigned 192.168.2.1 unassigned unassigned OK? Method Status Protocol
YES manual administratively down down YES manual administratively down down YES manual down down
YES manual administratively down down YES manual administratively down down
R1#show controllers s0/0/0 Interface Serial0/0/0 Hardware is PowerQUICC MPC860 DCE V.35, no clock idb at 0x81081AC4, driver data structure at 0x81084AC0 SCC Registers: General [GSMR]=0x2:0x00000000, Protocol-specific [PSMR]=0x8 Events [SCCE]=0x0000, Mask [SCCM]=0x0000, Status [SCCS]=0x00 Transmit on Demand [TODR]=0x0, Data Sync [DSR]=0x7E7E Interrupt Registers: Config [CICR]=0x00367F80, Pending [CIPR]=0x0000C000
R1#show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static route Gateway of last resort is not set C R1# 192.168.1.0/24 is directly connected, Serial0/0/0
R1#show cdp neighbors Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone Device ID Router R1# Local Intrfce Ser 0/0/0 Holdtme 126 Capability R Platform C1841 Port ID Ser 0/0/0
R1#show cdp entry * protocol Protocol information for Router : IP Address: 192.168.1.1 R1#
2. Configure the device hostname.
Router(config)#hostname R1 R1(config)#
3. Disable DNS lookup. R1(config)#no ip domain-lookup R1(config)# 4. Configure a privileged EXEC mode password
R1(config)#enable secret cisco R1(config)#
5. Configure a message-of-the-day banner
R1(config)#banner motd . Enter TEXT message. End with the character '.'. *********************** * * Warning !!! Admin Only * *
***********************. R1(config)#
6. Configure a password for the console connections.
R1(config)#line console 0 R1(config-line)#password class R1(config-line)#login R1(config-line)#exit R1(config)#
7.
Configure a password for all vty connections.
R1(config)#line vty 0 4 R1(config-line)#password class R1(config-line)#login R1(config-line)#exit R1(config)#
8. Configure password encryption
R1(config)#service password-encryption R1(config)#
9. Configure IP addresses a. FastEthernet0/0
R1(config)#interface fastEthernet 0/0 R1(config-if)#ip add 192.168.1.1 255.255.255.0 R1(config-if)#no shutdown %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up R1(config-if)#exit
b. Serial 0/0/0 DTE
R1(config)#int s0/0/0 R1(config-if)#ip add 192.168.2.1 255.255.255.0 R1(config-if)#no shut %LINK-5-CHANGED: Interface Serial0/0/0, changed state to down R1(config-if)#exit R1(config)#
c. Serial 0/0/1 DCE
R1(config)#int s0/0/1 R1(config-if)#ip add 192.168.3.1 255.255.255.0 R1(config-if)#clock rate 64000 R1(config-if)#no shut %LINK-5-CHANGED: Interface Serial0/0/1, changed state to down R1(config-if)#exit R1(config)#
10. Save konfigurasi
R1#copy running-config startup-config Destination filename [startup-config]? Building configuration... [OK] R1#
11. Restart router
R1#reload Proceed with reload? [confirm] %SYS-5-RELOAD: Reload requested by console. Reload Reason: Reload Command. System Bootstrap, Version 12.3(8r)T8, RELEASE SOFTWARE (fc1) Cisco 1841 (revision 5.0) with 114688K/16384K bytes of memory. Self decompressing the image : ###########################################################