Cisco Inital Router Configuration Commands
Description | Command |
---|---|
User EXEC mode | Router > |
Enter the privileged EXEC mode | Router > enable Router # |
Enter the global configuration mode. | configure terminal Example: Router# configure terminal Router(config)# |
Specify the name for the router. | hostname name Example: Router(config)# hostname Router1 Router1(config)# |
Disable DNS lookup | Router(config)# no ip domain-lookup |
Specify an encrypted password to prevent unauthorized access to the privileged exec mode. | enable secret password Example: Router(config)# enable secret cisco Router(config)# |
Specify a password to prevent unauthorized access to the console. | line con 0 password password login Example: Router(config)# line con 0 Router(config-line)# password class Router(config-line)# login Router(config)# |
Specify a password to prevent unauthorized telnet access. Router vty lines: 0 15 Switch vty lines: 0 15 |
line vty 0 4 password password login Example: Router(config)# line vty 0 4 Router(config-line)# password class Router(config-line)# login Router(config-line)# |
Encrypt the plaintext passwords | service password-encryption |
Configure the MOTD banner. | Banner motd % message % Example: Router(config)# banner motd % Welcome % Router(config)# |
Configure an interface. Router- interface is OFF by default Switch- interface is ON by default |
Router(config)# interface fa0/0 Router(config-if)# description description Router(config-if)# ip address address mask Router(config-if)# no shutdown Router(config-if)# |
Configure an interface IPv6 | Router(config-if)# ipv6 address ipv6address/prefix Router(config-if)# ipv6 address ipv6address linklocal |
Configure an interface. (Gigabit interface) | Router(config)# interface gig0/0 Router(config-if)# description description Router(config-if)# ip address address mask Router(config-if)# no shutdown |
To enable IPv6 routing | Router(config)# ipv6 unicast-routing |
Save the configuration to NVRAM. | copy running-config startup-config Example: Router# copy running-config startup-config Router# |
Add a local username to the router | username usernamehere secret passwordhere |
Configure local AAA authentication for console access on the router | Router(config)# aaa new-model Router(config)# aaa authentication login default local |