router> enable Enter privileged mode from user mode
router# disable or exit Exit from privileged mode to user mode
router# show sessions View TELNET sessions on this machine
router# disconnect close all TELNET sessions
router# show users View users on this machine
router# erase startup-config delete configuration in NVRAM
router# reload restart router
router# config terminal enter privileged mode from user mode
router(config)# hostname rl configure username rl
router(config)# #banner welcome# configure startup speech
router# show controllers serial0 View the physical layer information of serial port 0 (mainly DTE/DCE)
router# show ip interface View the IP configuration information of the port
router# show hosts View the host table
end or ctrl+z Return from various configuration modes to Privileged mode
rl(config)# no ip domain-lookup Disable dynamic domain name resolution
rl(config)# ip domain-lookup Turn on dynamic domain name resolution
rl(config)# ip name-server 202.106.0.20 After turning on dynamic domain name resolution , you can specify DNS service
rl(config)# interface serial 0 Enter serial 0 interface configuration mode rl (config- if
)# no shutdown All ports of the router are closed by default, use this command to enable them , if it is DTE, it is unnecessary . Set rl(config-if)# bandwidth 64 Set the port bandwidth to 64K rl(config-if)# ctrl+c or ctrl+z shortcut to exit to privileged mode rl# show interface serial 0 View s0 information , if you see that both serial and line protocol show up, it means that both ends of the link are set up successfully. Note : if serial down or line down appears, the port on the other side may not be shut down or the cable is not plugged in properly; if serial up, line down appears down may be that the clock rate is not set on the DCE side, or it may be
Incorrect encapsulation format rl
# show cdp neighbors View CDP neighbor information
rl# show cdp entry *
rl(config-if)# ip add 10.0.0.1 255.0.0.0 Enter the corresponding interface and configure the corresponding IP address
rl# ping 10.0.0.2 Use Use the ping command to check the connectivity of neighbors
rl# show ip route Check the routing table, you can see the routing information starting with C, which is the directly connected routing information;
you can see the routing information starting with R, which is the route learned from rip It can be seen that
the routing information starting with I replaces the routing information starting with R, this is because the
management distance of igrp is 100, which is less than 120 of rip.
rl(config-if)# router rip starts the RIP routing protocol
rl( config-router)# network 10.0.0.0 Publish the network segment (note that the network number is followed by the network number instead of the
IP address)
rl# show ip protocol View the configured routing protocol
rl(config)# router igrp 300 Be sure to pay attention to the IGRP behind Add the autonomous system number, the test questions
It will tell you the AS NUMBER, just
type rl(config-router)# network 10.0.0.0
rl(config)# line vty0 4 Enter the virtual thread configuration mode, in this mode you can configure the telnet function
rl(config-line)# login
rl(config-line)# password cisco Configure the telnet password, the default network device telnet function
is closed, after the password is configured, it will automatically open
rl(config)# enable password cisco Configure the password to enter the enable mode, case-sensitive
rl(config)# enable secret ciscocisco Configure the password to enter enable mode, which is an encrypted password,
invisible to show run
rl(config)# line console 0
rl(config-line)# login
rl(config-line)# password cisco configure the password to enter user mode
rl(config-line)# logging synchronous input synchronization
rl(config-line)# exec-timeout 0 0 prohibit jumping out because there is no input for a period of time
rl# copy running-config startup-config Save the configuration, pay attention to the requirements of the question when taking the test,
if the question asks you to save the configuration, you must not miss
this item
r1# copy tftp startup-config
r1# copy running-config tftp
r1 # copy tftp flash