Cisco Router Configuration Guide
1. Encrypting Your Passwords
When configuring passwords on a Cisco router, encryption ensures that plain-text
passwords are not visible to anyone who has access to the router configuration file.
Types of passwords:
- Console Password
- VTY (Telnet/SSH) Password
- Enable Password
- Enable Secret (more secure)
To encrypt all passwords:
Router(config)# service password-encryption
To set a secure privileged EXEC password:
Router(config)# enable secret MySecurePass
Password Encryption Types
Type 0: Unencrypted
Type 7: Weak reversible encryption
Type 5: MD5 hash (enable secret)
Type 9: SHA-256 (newer IOS versions)
2. Router Interfaces & Bringing Up an Interface
Router interfaces connect the device to networks. These interfaces must be configured with
an IP address and brought up using the 'no shutdown' command.
Example for Ethernet interface:
Router> enable
Router# configure terminal
Router(config)# interface GigabitEthernet0/0
Router(config-if)# ip address [Link] [Link]
Router(config-if)# no shutdown
Verify interface status:
Router# show ip interface brief
3. Configuring an IP Address on an Interface
To assign an IP address to any interface:
Router(config)# interface GigabitEthernet0/0
Router(config-if)# ip address [Link] [Link]
Router(config-if)# no shutdown
To save the configuration:
Router# write memory
4. Serial Interface Commands
Serial interfaces are used in WAN connections between routers. Configuration involves
assigning IP addresses, and setting clock rate if it's the DCE end.
Basic Configuration:
Router(config)# interface Serial0/0/0
Router(config-if)# ip address [Link] [Link]
Router(config-if)# clock rate 64000 (only if DCE)
Router(config-if)# no shutdown
Sample Serial Configuration
On Router A (DCE):
RouterA(config)# interface Serial0/0/0
RouterA(config-if)# ip address [Link] [Link]
RouterA(config-if)# clock rate 64000
RouterA(config-if)# no shutdown
On Router B (DTE):
RouterB(config)# interface Serial0/0/0
RouterB(config-if)# ip address [Link] [Link]
RouterB(config-if)# no shutdown
Verification Commands
Router# show ip interface brief
Router# show controllers serial 0/0/0
Router# show running-config
Status Indicators
- Up/Up: Interface is working
- Up/Down: Protocol problem
- Down/Down: Interface is shut or no cable
- Administratively down: Interface shut down manually