Router Configurations
A network engineer can enter commands via the CLI environment in several ways. The most common are:
* Console
* Telnet or SSH
* AUX port
While the engineer is in Privileged EXEC mode, it will allow him/her to make changes to the router such as configuring the FastEthernet interface. After the router is configured, the engineer should show the running configuration and copy the running configuration to the startup configuration periodically to save changes.
The importance of having a specific hostname would divert confusion during network configuration and maintenance. When accessing a device using Telnet or SSH, its important to make sure that a name is attached. If all devices remained with the same default name, you couldn't identify that the proper device is connected. By choosing and documenting names wisely, it is easier to remember, discuss and identify network devices. It is good practice to create the naming scheme at the same time as the addressing scheme.
Passwords are the number one defense against unauthorized access to network devices. Every device should have locally configured passwords to limit access. The IOS uses hierarchical modes to help with device security to allow different access privileges.
Here is a basic overview of the configuration of RIP on a Cisco router:Router(config)#router ripRouter(config-router)#network 192.168.1.0Router(config-router)#network 192.168.2.0Router(config-router)#network 192.168.3.0Router(config-router)#network 192.168.4.0Router(config-router)#network 192.168.5.0The 192.168.x.0 address can be changed to whatever address you would like to be broadcast over RIP. There are also other settings that can be configured.If you use RIPv2 you can also have the following configuration:Router(config)#router ripRouter(config-router)#version 2Router(config-router)#network 192.168.1.0Router(config-router)#network 192.168.2.0Router(config-router)#network 192.168.3.0Router(config-router)#network 192.168.4.0Router(config-router)#network 192.168.5.0Router(config-router)#exitRouter(config)#exitRouter#%SYS-5-CONFIG_I: Configured from console by consoleRouter#copy running-config startup-configDestination filename [startup-config]?Building configuration...[OK]Router#
A(config)# router rip A(config-router)# passive-interface S0/0 B(config)# router rip B(config-router)# network 192.168.25.48 B(config-router)# network 192.168.25.64 A(config)# router rip A(config-router)# no network 192.168.25.32 B(config)# router rip B(config-router)# passive-interface S0/0 A(config)# no router rip
Remove Console password router>enable router#configure terminal router(config)#line console 0 router(config-line)#no login router(config-line)#no password router(config-line)#exit router(config)#exit
That's where the router's startup-config (startup configuration) is stored.That's where the router's startup-config (startup configuration) is stored.That's where the router's startup-config (startup configuration) is stored.That's where the router's startup-config (startup configuration) is stored.
Type on previllage Mode:- Router(config)#line vty 0 4 Router(config-line)#pass Router(config-line)#password 123 Router(config-line)#login Router(config-line)#exit used for telnet , to take ur PC on telnet through Router..............
Paris(config)# router eigrp 100 Paris(config-router)# network 192.168.7.0 Paris(config-router)# network 192.168.8.0
router#config t router(config)#router eigrp 100 #net NETWORK ADDRESS
router (config)# ip dhcp servicerouter (dhcp-config)# ip dhcp pool router (dhcp-config)# network
Router(config)#Copy running-config startup-config
First you must decide what specific protocol you want to use. Then you configure it on the individual routers. Example, with Cisco routers: Router(config)#router rip Router(config-router)#network 10.0.0.0. Router(config-router)#exit Additional commands may be required for optimization. Note: I use RIP for illustration purposes, but it is usually not the best option for routing.First you must decide what specific protocol you want to use. Then you configure it on the individual routers. Example, with Cisco routers: Router(config)#router rip Router(config-router)#network 10.0.0.0. Router(config-router)#exit Additional commands may be required for optimization. Note: I use RIP for illustration purposes, but it is usually not the best option for routing.First you must decide what specific protocol you want to use. Then you configure it on the individual routers. Example, with Cisco routers: Router(config)#router rip Router(config-router)#network 10.0.0.0. Router(config-router)#exit Additional commands may be required for optimization. Note: I use RIP for illustration purposes, but it is usually not the best option for routing.First you must decide what specific protocol you want to use. Then you configure it on the individual routers. Example, with Cisco routers: Router(config)#router rip Router(config-router)#network 10.0.0.0. Router(config-router)#exit Additional commands may be required for optimization. Note: I use RIP for illustration purposes, but it is usually not the best option for routing.
I will show the commands, together with the prompt, assuming the router name has not been changed. A subnet mask is also required; I will provide one. ^Z is Control-Z, used to exit configuration mode quickly: Router>enable Router#configure terminal Router(config)#interface E0 Router(config-if)#ip address 192.168.1.1 255.255.255.0 Router(config-if)#^Z Router#I will show the commands, together with the prompt, assuming the router name has not been changed. A subnet mask is also required; I will provide one. ^Z is Control-Z, used to exit configuration mode quickly: Router>enable Router#configure terminal Router(config)#interface E0 Router(config-if)#ip address 192.168.1.1 255.255.255.0 Router(config-if)#^Z Router#I will show the commands, together with the prompt, assuming the router name has not been changed. A subnet mask is also required; I will provide one. ^Z is Control-Z, used to exit configuration mode quickly: Router>enable Router#configure terminal Router(config)#interface E0 Router(config-if)#ip address 192.168.1.1 255.255.255.0 Router(config-if)#^Z Router#I will show the commands, together with the prompt, assuming the router name has not been changed. A subnet mask is also required; I will provide one. ^Z is Control-Z, used to exit configuration mode quickly: Router>enable Router#configure terminal Router(config)#interface E0 Router(config-if)#ip address 192.168.1.1 255.255.255.0 Router(config-if)#^Z Router#
there are 4 types of password used in router 1. previlage password 2. vty 3. console 4 auxilary on the router goto globle configuration mode type: router(config)#enable password [password] (for normal) router(config)#enable secret [password] (for encrypt password) router(config)#exit router(config)#ctrl+z (to save) it is used to set password in previlage mode