PT Commands ROUTER
PT Commands ROUTER
PT Commands ROUTER
3. Router(config)#line console 0
Router(config-line)#password console
Router(config-line)#login
Enters console line mode
Sets console line mode password to console
Enables password checking at login
4. Router(config)#line vty 0 4
Router(config-line)#password telnet
Router(config-line)#login
5. Router(config)#line aux 0
Router(config-line)#password aux
Router(config-line)#login
Note: The enable secret password is encrypted by default. The enable password
is not. In this case we need to use “service password-encryption”
Customize
1. Router(config)#interface fastethernet 0/0
Router(config-if)#description Student Lab
LAN
5. Router(config)#no ip domain-lookup
The no ip domain-lookup Command
Turns off trying to automatically resolve an unrecognized command to a local host name
Ever type in a command incorrectly and are left having to wait for a minute or two as the
router tries to translate your command to a domain server of 255.255.255.255? The router is
set by default to try to resolve any word that is not a command to a Domain Name System
(DNS) server at address 255.255.255.255. If you are not going to set up DNS, turn off this
feature to save you time as you type, especially if you are a poor typist.
6. Router(config)#line console 0
Router(config-line)#exec-timeout 0 0
The logging synchronous Command
Sets the time limit when the console automatically logs off. Set to 0 0 (minutes seconds)
means the console never logs off.
The command exec-timeout 0 0 is great for a lab environment because the console never logs
out. This is considered to be bad security and is dangerous in the real world. The default for
the exec-timeout command is 10 minutes and zero (0) seconds (exec-timeout 10 0).
3. Router#erase startup-config
Deletes the startup configuration file from NVRAM
Clock Commands
1. Router# clock set 10:50:00 Oct 26 2006
Configure the clock
Routing Protocols
RIP:
Router(config)#router rip
Router(config-router)#version 2
Router(config-router)#network 192.168.0.0
*Router(config-router)#timers basic 30 180
180 240
**Router(config-router)#passive-interface
Fa0/0 **
**You will need to stop the updates from being broadcasted to the internet. For this
purpose, use the ‘passive interface’ command. This command prevents the interface from
forwarding any RIP broadcasts, but keeps the interface listening to what others are saying in
RIP.
EIGRP:
Router(config)#router eigrp 1
Router(config-router)#network 172.16.0.0
Router(config-router)#network 192.168.10.8
0.0.0.3
Router(config-router)#no auto-summary
Router(config-router)#redistribute static
Related commands:
1. Setting bandwidth(in kilobits)
Router(config)#int s0/0/1
Router(config-if)#bandwidth 1024
*Router(config-if)#ip bandwidth-percent
eigrp 1 50
* used to configure the percentage of bandwidth that may be used by EIGRP on an
interface.
Related commands:
3. #show ip ospf
2. Default route
Router(config)# ip route 0.0.0.0 0.0.0.0
[next_hop_address]
Note: next_hop_address means the interface of the other Router through which the packets
will be sent.
3. Static route
Router(config)# ip route [source_net_addr]
[sub_mask] [next_hop_address]
Checking commands
#show ip protocols (verify protocol)
#show ip route (examine the routing tables)
#show interface se0/0/1 (examine the actual values
used for bandwidth, delay, reliability, and load in the
computation of the routing metric)
Pc>cmd> ipconfig /all (for MAC address and others)