KEMBAR78
Cisco IOS CLI Commands Guide | PDF | Ip Address | Router (Computing)
0% found this document useful (0 votes)
176 views3 pages

Cisco IOS CLI Commands Guide

The document provides an overview of common Cisco IOS CLI commands for configuring routers. It covers commands for enabling privileged modes, viewing configurations, setting passwords, configuring interfaces and IP addresses, DHCP setup, static NAT configuration, and RIP routing.

Uploaded by

zafar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
176 views3 pages

Cisco IOS CLI Commands Guide

The document provides an overview of common Cisco IOS CLI commands for configuring routers. It covers commands for enabling privileged modes, viewing configurations, setting passwords, configuring interfaces and IP addresses, DHCP setup, static NAT configuration, and RIP routing.

Uploaded by

zafar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 3

Cisco IOS CLI commands

Router>enable command to switch to privileged EXEC mode


disable command to return to user EXEC mode
exit command to return to the higher hierarchy mode
Router#configure terminal command to enter global configuration mode
help или ? contextual help command
Router#show startup-config command to view the contents of the initial
configuration file
Router#show running-config command to view the contents of the current
configuration file
Router#copy running-config command to copy current configuration to initial
startup-config configuration file
Router(config)#hostname [name] command to assign a unique name to the device
Router(config)#enable password commands to restrict access to privileged EXEC mode
[пароль] and prevent unauthorized persons from making changes
Router(config)#enable secret to the router's settings
[пароль]
group of commands for setting passwords for console access

Router(config)# line console 0 custom string definition (s)


Router(config-line)# password password setting
[пароль]
Router(config-line)# login command to confirm the need to request a password

Router(config-line)#no login command to disable password request

group of commands for setting a password for virtual ports (for protection when trying to
connect via a network connection:

Router(config)# line vty 0 4 custom string definition


Router(config-line)# password password setting
[пароль] command to confirm the need to request a password
Router(config-line)# login

Router(config)# service password encrypt all passwords stored in the router's memory
encryption
Interface Setup
Router(config)# interface definition of the type of custom interface and port
[название интерфейса] number
Router(config-if)#description interface description
[описание]
Router(config-if)#ip address [IP- assign IP address and interface subnet mask
адрес] [маска подсети]
Router(config-if)#clock rate clock frequency, entered when configuring the serial
[частота синхронизации] interface as a DCE device
Router(config-if)#no shutdown enable interface
Router(config-if)#shutdown shutdown interface (if necessary)

Router(config)# ip route 0.0.0.0 Default router setting


0.0.0.0 <Next Hop IP Address>
or
Router(config)# ip route 0.0.0.0
0.0.0.0 <interface> <port number>

DHCP setup
Router(config)#ip dhcp pool [имя Creating a DHCP address pool.
пула]
Router(dhcp-config)#network Specifying the subnet of the address pool
[адрес подсети] [маска подсети]
Router(config)#ip dhcp excluded- Exclude IP address or range of addresses from the pool
address [начальный адрес]
[конечный адрес]
Router(dhcp-config)#domain-name Specify the domain name.
[доменное имя клиента]
Router(dhcp-config)#dns server Specify the IP address of the server or DNS servers (up
[IP-адрес 1-сервера] [IP-адрес 2- to 8 servers can be configured on a single line)
сервера] … [IP-адрес 8-сервера]
Router(dhcp-config)#default-router Select the default router (gateway).
[IP-адрес шлюза]
lease {days [hours] [minutes] | Set the duration of the lease.
infinite}
Configure static NAT
Router(config)#interface Definition of the interface connecting the node to the
[интерфейс] local network
Router(config-if)#ip address [IP- Setting the primary IP address of the internal interface
адрес] [маска подсети]
Router(config-if)#ip nat inside Specifying the internal interface
Router(config-if)#exit
Router(config)#interface Determining the external interface (connecting the
[интерфейс] router to the ISP)
Router(config-if)#ip address [IP- Setting the Primary IP Address of the External Interface
адрес] [маска подсети]
Router(config-if)#ip nat outside Interface specification by external
Router(config-if)#exit
Router(config)#ip nat inside source Transformation Definition for Server
static [внутр. адрес] [внеш. адрес]

Router(config)#ip default-gateway Setting the default gateway


[адрес шлюза]
Router(config)#ip route Default route setting
[сеть_назначения]
[маска_подсети] [адрес_шлюза]
Configure RIP Routing
Router(config)#router rip choice of routing protocol
Router (config-router)#version 2 protocol version selection
Router(config-router)#network definition of directly connected networks
[номер-сети]
show version The command displays the operating system version and
reports whether all interface devices are recognized.
show flash The command displays the contents of the flash
memory, including the Cisco IOS image file. It also
displays the amount of flash memory currently in use
and the amount of free memory.
show ip nat translations Command to view existing broadcast entries
clear ip nat translation Command to delete existing translation entries
traceroute The command determines the path chosen for the
converted packages and verifies its correctness.
reload router reboot
erase startup-config clear router configuration
show ip protocols displays information about the configured routing
protocols
show ip route displays information about the routing table

You might also like