To configure a name for router, use hostname command for Global Configuration mode.
Router>enable
Router#configure terminal
Router(config)#hostname hour4khmer.R1
hour4khmer.R1(config)#exit
hour4khmer.R1#
How to Configure a MOTD Banner for RouterUsers will be presented with a MOTD (Message of the DAY) banner every time they attempt a connection via the console port, auxiliary port, or a telnet session to router. User the following commands to configure a MOTD message. Here the '#' character is known as a delimiting character. The banner message should be surrounded bye delimiting character and the message should not contain the delimiting character.
hour4khmer.R1>enable
hour4khmer.R1#configure terminal
hour4khmer.R1(config)#banner motd #Welcome to hour4khmer.blogspot.com#
hour4khmer.R1(config)#exit
hour4khmer.R1#
How to enable NDS lookup
To configure a DNS server for your router, follow these steps.
hour4khmer.R1>enable
hour4khmer.R1#configure terminal
hour4khmer.R1(config)#ip name-server 192.168.200.20
hour4khmer.R1(config)#exit
hour4khmer.R1#
How to turn off the automatic name resolution
The router is set by default to try to resolve any word that is not a command to a DNS server at address 255.255.255.255. We can turn off this by using the following command.
hour4khmer.R1>enable
hour4khmer.R1#configure terminal
hour4khmer.R1(config)#no ip domain-lookup
hour4khmer.R1(config)#exit
hour4khmer.R1#
How to assign a Local Name to an IP address
Following command assigns a host name to an IP address. Once this is completed, we can use the configured host name for telnet or ping.
hour4khmer.R1>enable
hour4khmer.R1#configure terminal
hour4khmer.R1(config)#ip host PC01 192.168.200.100
hour4khmer.R1(config)#exit
hour4khmer.R1#
How to Turn on synchronous logging
If the router sends a message to the console while you're entering a command, by default the router will interrupt your work to show the message.
If you want the information sent to console not interrupt the command you are typing, turn on synchronous logging.
hour4khmer.R1>enable
hour4khmer.R1#configure terminal
hour4khmer.R1(config)#line console 0
hour4khmer.R1(config-line)#logging synchronous
hour4khmer.R1(config-line)#exit
hour4khmer.R1(config)#exit
hour4khmer.R1#
How to configure an inactivity time-out for automatic log-off
Sets time limit when console automatically log off. Set to 0 0 (minutes seconds) means console never logs off.
hour4khmer.R1>enable
hour4khmer.R1#configure terminal
hour4khmer.R1(config)#line console 0
hour4khmer.R1(config-line)#exec-timeout 3 0
hour4khmer.R1(config-line)#exit
hour4khmer.R1(config)#exit
hour4khmer.R1#