A router is a layer 3 device used to forward packets from one network to another. It forwards the packet through one of its ports on the basis of destination IP address and the entry in the routing table. By using a routing table, it finds an optimized path between the source and destination network. Show
Here, we will talk about Cisco router’s basic commands like assigning an IP address to an interface, bringing up an interface, applying to enable and secret passwords. Administrative Configuration: Giving hostname to the router – We can set the hostname as: router(config)#hostname GeeksforGeeksrouter GeeksforGeeksrouter(config)# Applying banners – These are specifically used to give a small security notice to the user who wants to access the router. We can customize it According to our needs as like asking for credentials needed for the login. Types of banners are: 1. banner motd – GeeksforGeeksrouter(config)#banner motd # Enter Text message. End with character '#' $ No unauthorized access allowed. Enter your credentials!! # Here motd means a message of the day and # means delimiter i.e message should end with the symbol provided. This message will be shown while entering into the router’s user execution mode 2. Exec banner – It will be displayed on the screen when the user will log in through the VTY lines. 3. Login banner – This banner will be displayed after the banner motd but before the login. These banners are used to make login interactive. Setting password – 1. enable password – The enable password is used for securing privilege mode. This password will be shown in clear text by the command “show running-configuration”. These are replaced by secret passwords nowadays. router(config)#enable password GeeksforGeeks 2. Enable secret password – This is also used for securing privilege mode but the d the difference is that it will be displayed as a cipher in “show running-configuration”. This password will override the enable password if both passwords are set. router(config)#enable secret GeeksforGeeks 3. line console password – When a user will take access through the console port then this password will be asked. router(config)#line console 0 router(config-line)#password GeeksforGeeks router(config-line)#login 4. line VTY password
– When a user wants to access a router through VTY lines (telnet or ssh) then this password will be asked. router(config)#line VTY 0 4 router(config-line)#password GeeksforGeeks router(config-line)#exit 5. auxiliary password – This password will secure the aux port. router(config)#line aux 0 router(config-line)#password GeeksforGeeks router(config-line)#login Assigning IP address to a router’s interface – router(config)#interface fa0/0 router(config-if)#ip address 192.168.1.1 255.255.255.0 router(config-if)#no shut Here first we have to specify the router’s interface on which we want to give an IP address. Then we will enter interface mode where we will give an IP address as shown followed by its subnet mask (255.255.255.0). Then, we have made the router port administratively up by no shut command. Copying and erasing configuration – router#copy running-config startup-config To erase the configuration of NVRAM, use the command router#erase startup-config Almost all Cisco devices use Cisco IOS to operate and Cisco CLI to be managed. The basic CLI commands for all of them are the same, which simplifies Cisco device management. Here is a Cisco commands cheat sheet that describes the basic commands for configuring, securing and troubleshooting Cisco network devices.
Which command is used to view the current configuration on the router?Use the command show running-config to look at the current configuration. This command will display the active configuration file in memory including saved configuration changes. The working memory and running configuration are stored in RAM. _Show startup-config shows the backup configuration in NVRAM.
What is the router command for displaying the startup configuration?To display the contents of NVRAM (if present and valid) or to show the configuration file pointed to by the CONFIG_FILE environment variable, use the show startup-config EXEC command.
What is initial router configuration?A router must be configured with specific settings before it can be deployed. New routers are not configured. They must be initially configured using the console port.
How can I see the configuration of my Cisco router?On a Cisco Wireless LAN Controller:
Type "config paging disable" in priviledged mode to set your terminal to display without any breaks. 2. Type "show run-config" to display the config.
|