Escolar Documentos
Profissional Documentos
Cultura Documentos
Roteadores Cisco são aparelhos gerenciável. Isso significa que eles têm a Cisco IOS software
para gerenciamento de rede e de internetwork. O software da Cisco IOS fornece serviços de rede
e aplicações de rede ativado. A Cisco IOS CLI é o software baseado na qual você pode executar
comandos Cisco IOS.
Comandos Cisco
Existem mais de 2000 comandos roteador Cisco na última versão do roteador Cisco IOS
software, incluindo os comandos básicos roteador junto com o nível avançado comandos como
roteador Cisco wireless router comandos. O roteador Cisco IOS têm diferentes modos executável
com diferentes solicitações. Você pode usar estes modos diferentes para executar tarefas. Cada
modo tem um conjunto de comandos.
User Mode
Limited exame do roteador
Prompt com o roteador é Router
A qualquer momento você pode inserir um ponto de interrogação "?" para ajudar
Setup básico de gestão configura apenas suficiente para a conectividade de gestão do sistema,
prorrogado configuração irá pedir para configurar cada interface com o sistema
A senha é utilizada quando permitir que você não especificar uma senha secreta permitir, com
algumas versões mais antigas de software, e arrancar imagens.
O terminal virtual senha usada para proteger o acesso ao roteador, ao longo de um interface de
rede.
Roteadores são basicamente utilizado para conectar diferentes redes de encaminhamento através
do intercâmbio de informações entre si. Router é um dispositivo de rede camada mantém um
banco de dados chamado IP routing tabela aprendendo os endereços IP de servidores de redes
directamente ligadas por omissão. Após ativar o IP Routing processo, aprenderam a redes
também podem ser vistos na tabela de roteamento IP do intercâmbio de informações roteamento
IP.
Cisco introduz diferentes séries de roteadores para fornecer a solução da indústria. A série varia
de capacidades, porta densidade e software IOS. Você pode dividir o cisco roteador série para
fornecer soluções de três tipos de ambientes. Em primeiro lugar é a casa ou escritório solução
telecomutadores solução. Nesta categoria o cisco roteador série 700, 800 e 1000 séries série estão
incluídos. A segunda é a sucursal ou pequeno escritório a partir de 1600 começou a solução série
modular router incluindo séries 2500 e 2600 roteador série modular router até 3600 série
modular router. A terceira categoria é a sede central ou local, incluindo solução série AS 5300,
7200 e 12000 roteador série modular série GSR roteador.
Aqui estão diferentes séries de Routers Cisco que são comumente utilizados na indústria para
diferentes tipos de soluções:
Cisco 2500 séries sucursal solução com um roteador AUI Ethernet e duas portas seriais
Roteador Cisco 2600 com uma série modular unscratched WAN Interface Card (WIC)
Série modular roteador Cisco 3600 com o apoio de FXO e porta voz FXS
Cisco 7200 séries sítio central solução roteador com vários módulos unscratched
Você deve ter de conhecer a configuração básica do roteador Cisco Cisco IOS com a
configuração e os comandos operacionais roteador Cisco certamente executar comandos para o
desempenho de qualquer internetwork.
Aqui estão alguns comandos básicos cisco roteador configuração operação junto com comandos
de roteadores:
Endereço IP [endereço] [máscara subnet]: Este comando é usado para configurar o endereço IP
da interface específicas do roteador cisco
Host [nome]: Este comando é usado para atribuir um nome de host para o router cisco
Line vty 0 15: Este comando é usado para entrar no modo line vty configuração do roteador
cisco
Line con 0: Este comando é usado para entrar line console configuração de modo a cisco
roteador
Line aux 0: Este comando é usado para entrar line configuração auxiliar de modo a cisco
roteador
Login: Este comando diz para pedir a senha de uma linha do roteador cisco
Senha [password]: Este comando é usado para definir a senha de uma linha do roteador cisco
Ativar senha [password]: Este comando é usado para definir a senha para entrar no modo
privilegiado exec do roteador cisco
Ativar secreto [password]: Este comando é usado para definir a senha criptografada para entrar
no modo privilegiado exec do roteador cisco
Configurar terminal: Este comando é usado para entrar no modo de configuração global do
roteador cisco
Mostrar interfaces seriais 0: Este comando exibe o status de interface específicas do roteador
cisco
Mostrar interfaces: Este comando exibe informações completas sobre todas as interfaces no
roteador cisco
Mostrar ip interface breve: Este comando exibe a breve configuração IP de todas as interfaces
de roteador cisco
Mostrar flash: Este comando exibe os arquivos e diretórios residem na flash do roteador cisco
Visualizar histórico: Este comando exibe os últimos dez comandos que foram realizadas no cisco
roteador
Apagar startup-config: Este comando é usado para apagar a configuração salva roteador da
Cisco.
Routers têm interface diferente e cada interface conecta a uma rede, por isso, cada um deve ter a
sua própria interface ip configurações. Para atribuir ip para o roteador Cisco 2509 você deve
executar este conjunto de comandos. Router2509 (config) # interface serial 0
Router2509 (config-se) # endereço ip 10.0.0.1 255.0.0.0
Para configurar um roteador Cisco é muito simples. O porto do console Cisco router deverá ser
ligado com a porta COM de seu computador usando o cabo UTP capotagem. Após a conexão
física foi feita HyperTerminal aberto a fazer uma sessão e dar qualquer nome a ela. A porta COM
deve ser em Restaurar padrão nas configurações das propriedades de imprensa e porta COM
tecla enter. Você vai ver que o modo de configuração do router cisco irá correr em seu terminal.
Vá até a configuração Modo de configuração com a ajuda de diálogo. A configuração básica
inclui a configuração de host, configurando a permitir secreto senha, senha e habilitar a linha vty
senha e da configuração de cada interface do roteador cisco.
Como recuperar o acesso a roteadores CISCO com a senha perdida [enable secret]
1. Introdução
Optei por escrever este tutorial uma vez que, pelo menos duas vezes por ano, me deparo com um
roteador CISCO com a senha perdida. Este procedimento funciona em boa parte dos produtos
CISCO (806, 827, 1003, 1005, 1400, 1600, 1700, 2600, 3600, 4500, alguns Catalysts, entre
outros). Observe que não é meu intuito mostrar como operar o IOS mas apenas lembrar os
engenheiros de rede deste importante procedimento.
As configurações são:
9600 baud rate
No parity
8 data bits
1 stop bit
No flow control
2. Procedimentos
2.1. Se você possuir acesso ao IOS, digite show version para exibir e anotar o configuration
register. Normalmente é 0x2102 ou 0x102. Caso não consiga o acesso, devido à um login
perdido ou uma senha TACACS, você poderá assumir, com tranquilidade, que este registrador
contém 0x2102.
2.3. Digite confreg 0x2142 no prompt para prosseguir. A seguir digite reset para executar um
boot sem, porém, carregar as configurações atuais:
rommon 1>confreg 0x2142
rommon 2>reset
2.8. Após realizar seu trabalho com precisão no passo anterior, configure a nova senha digitando:
Router(config)#enable secret MinhaNovaSenha
Router(config)#^Z
Router#
2.9. O Grand Finale consiste em salvar as alterações realizadas na memória volátil na NVRAM
e alterar os registradores:
Router#copy running-config startup-config
Router#configure terminal
Router(config)#config-register 0x2102
Router(config)#^Z
Router#
Configurando o serviço de DHCP em roteadores Cisco
Este artigo descreve os passos para habilitar o serviço de DHCP (Dynamic Host Configuration
Protocol) em roteadores Cisco. O DHCP é um protocolo que oferece configuração de
endereçamento IP para hosts na rede e está construído em um modelo de cliente/servidor, na qual
o servidor mantém o gerenciamento centralizado de endereços IPs usados na rede.
Comandos para configuração do DHCP no Cisco IOS DHCP Server: por padrão no Cisco
IOS DHCP Server o serviço de DHCP já está habilitado. Caso você queira parar o serviço ou
reiniciá-lo digite o seguinte comando no modo de configuração global:
Exemplo:
Router(config)# service dhcp
Router(config)# no service dhcp
1 passo) Para excluir um endereço do grupo de endereços que será atribuído para os clientes,
digite o seguinte comando:
Router(config)# ip dhcp excluded-address low-address [high-address]
Você pode excluir apenas um endereço por linha de comando, ou pode escolher um range de
endereços na qual quer excluir do pool de endereços que serão atribuídos para os clientes.
Exemplo: Router(config)# ip dhcp excluded-address 192.168.0.254
Router(config)# ip dhcp excluded-address 192.168.0.250 192.168.0.254
2 passo) Configurar o range de endereços que serão atribuídos aos clientes que solicitarão
endereços IP na rede:
Primeiro passo é colocar um nome para o pool de endereços, nesse momento você irá entrar no
modo de configuração do DHCP.
Router(config)# ip dhcp pool name
Exemplo: Router(config)# ip dhcp pool CLIENT
3 passo) Você precisa colocar uma máscara que irá identificar a quantidade de endereços
disponíveis que serão distribuídos para os clientes:
Router(dhcp-config)# network network-number [mask | /prefix-length]
Exemplo: Router(dhcp-config)# network 192.168.0.0 255.255.255.0
Exemplo:
O tempo padrão que o endereço ficará atribuído para um cliente (lease) é de um dia, caso você
não especifique o tempo através do comando lease.
Troubleshooting:
Router# show ip dhcp binding - use esse comando para verificar os endereços que já foram
distribuídos para clientes, bem como o tempo que falta para expirar o "aluguél" do endereço IP.
Configuring DHCP
Configuring DHCP
Table Of Contents
Configuring DHCP
DHCP Server Overview
DHCP Client Overview
DHCP Relay Agent Overview
DHCP Configuration Task List
Enabling the Cisco IOS DHCP Server and Relay Agent Features
Configuring a DHCP Database Agent or Disabling DHCP Conflict Logging
Excluding IP Addresses
Configuring a DHCP Address Pool
Configuring the DHCP Address Pool Name and Entering DHCP Pool
Configuration Mode
Configuring the DHCP Address Pool Subnet and Mask
Configuring the Domain Name for the Client
Configuring the IP Domain Name System Servers for the Client
Configuring the NetBIOS Windows Internet Naming Service Servers for the
Client
Configuring the NetBIOS Node Type for the Client
Configuring the Default Router for the Client
Configuring the Address Lease Time
Configuring Manual Bindings
Troubleshooting Tips
Configuring a DHCP Server Boot File
Configuring the Number of Ping Packets
Configuring the Timeout Value for Ping Packets
Enabling the Cisco IOS DHCP Client on Ethernet Interfaces
Configuring DHCP Server Options Import and Autoconfiguration
Configuring the Relay Agent Information Option in BOOTREPLY Messages
Configuring a Relay Agent Information Reforwarding Policy
Enabling the DHCP Smart-Relay Feature
Monitoring and Maintaining the DHCP Server
Configuration Examples
DHCP Database Agent Configuration Example
DHCP Address Pool Configuration Example
Manual Bindings Configuration Example
Cisco IOS DHCP Client Example
DHCP Server Options Import and Autoconfiguration Example
Configuring DHCP
This chapter describes how to configure Dynamic Host Configuration Protocol (DHCP). For
a complete description of the DHCP commands listed in this chapter, refer to the "DHCP
Commands" chapter of the Cisco IOS IP Command Reference, Volume 1 of 3: Addressing
and Services publication. To locate documentation of other commands that appear in this
chapter, use the command reference master index, or search online.
As explained in RFC 2131, Dynamic Host Configuration Protocol, DHCP provides
configuration parameters to Internet hosts. DHCP consists of two components: a protocol
for delivering host-specific configuration parameters from a DHCP Server to a host and a
mechanism for allocating network addresses to hosts. DHCP is built on a client/server
model, where designated DHCP Server hosts allocate network addresses and deliver
configuration parameters to dynamically configured hosts. By default, Cisco routers running
Cisco IOS software include DHCP server and relay agent software.
DHCP supports three mechanisms for IP address allocation:
• Automatic allocation—DHCP assigns a permanent IP address to a client.
• Dynamic allocation—DHCP assigns an IP address to a client for a limited period of time
(or until the client explicitly relinquishes the address).
• Manual allocation—The network administrator assigns an IP address to a client and
DHCP is used simply to convey the assigned address to the client.
The format of DHCP messages is based on the format of Bootstrap Protocol (BOOTP)
messages, which ensures support for BOOTP relay agent functionality and interoperability
between BOOTP clients and DHCP Servers. BOOTP relay agents eliminate the need for
deploying a DHCP Server on each physical network segment. BOOTP is explained in
RFC 951, Bootstrap Protocol (BOOTP), and RFC 1542, Clarifications and Extensions for
the Bootstrap Protocol.
To identify the hardware platform or software image information associated with a feature,
use the Feature Navigator on Cisco.com to search for information about the feature or refer
to the software release notes for a specific release. For more information, see the
"Identifying Supported Platforms" section in the "Using Cisco IOS Software" chapter in this
book.
Note A DHCP client may receive offers from multiple DHCP Servers and can accept any one of
the offers; however, the client usually accepts the first offer it receives. Additionally, the offer
from the DHCP Server is not a guarantee that the IP address will be allocated to the client;
however, the server usually reserves the address until the client has had a chance to
formally request the address.
The client returns a formal request for the offered IP address to the DHCP Server in a
DHCPREQUEST broadcast message. The DHCP Server confirms that the IP address has
been allocated to the client by returning a DHCPACK unicast message to the client.
Note The formal request for the offered IP address (the DHCPREQUEST message) that is sent
by the client is broadcast so that all other DHCP Servers that received the
DHCPDISCOVER broadcast message from the client can reclaim the IP addresses that
they offered to the client.
If the configuration parameters sent to the client in the DHCPOFFER unicast message by
the DHCP Server are invalid (a misconfiguration error exists), the client returns a
DHCPDECLINE broadcast message to the DHCP Server.
The DHCP Server will send to the client a DHCPNAK denial broadcast message, which
means the offered configuration parameters have not been assigned, if an error has
occurred during the negotiation of the parameters or the client has been slow in responding
to the DHCPOFFER message (the DHCP Server assigned the parameters to another
client) of the DHCP Server.
DHCP defines a process by which the DHCP Server knows the IP subnet in which the
DHCP client resides, and it can assign an IP address from a pool of valid IP addresses in
that subnet.
The DHCP Server identifies which DHCP address pool to use to service a client request as
follows:
• If the client is not directly connected (the giaddr field of the DHCPDISCOVER broadcast
message is non-zero), the DHCP Server matches the DHCPDISCOVER with a DHCP
pool that has the subnet that contains the IP address in the giaddr field.
• If the client is directly connected (the giaddr field is zero), the DHCP Server matches the
DHCPDISCOVER with DHCP pool(s) that contain the subnet(s) configured on the
receiving interface. If the interface has secondary IP addresses, the subnets associated
with the secondary IP addresses are examined for possible allocation only after the
subnet associated with the primary IP address (on the interface) is exhausted.
The Cisco IOS DHCP Server feature offers the following benefits:
• Reduced Internet access costs
Using automatic IP address assignment at each remote site substantially reduces
Internet access costs. Static IP addresses are considerably more expensive to purchase
than are automatically allocated IP addresses.
• Reduced client configuration tasks and costs
Because DHCP is easy to configure, it minimizes operational overhead and costs
associated with device configuration tasks and eases deployment by nontechnical
users.
• Centralized management
Because the DHCP Server maintains configurations for several subnets, an
administrator only needs to update a single, central server when configuration
parameters change.
Before you configure the Cisco IOS DHCP Server feature, complete the following tasks:
• Identify an external File Transport Protocol (FTP), Trivial File Transfer Protocol (TFTP),
or remote copy protocol (rcp) server that you will use to store the DHCP bindings
database.
• Identify the IP addresses that you will enable the DHCP Server to assign, and the IP
addresses that you will exclude.
• Identify DHCP options for devices where necessary, including the following:
– Default boot image name
– Default routers
– Domain Name System (DNS) servers
– NetBIOS name server
• Decide on a NetBIOS node type (b, p, m, or h).
• Decide on a DNS domain name.
Note Inherited parameters can be overridden. For example, if a parameter is defined in both the
natural network and a subnetwork, the definition of the subnetwork is used.
Address leases are not inherited. If a lease is not specified for an IP address, by default, the
DHCP Server assigns a one-day lease for the address.
To configure the Cisco IOS DHCP Server feature, perform the tasks described in the
following sections. First configure a database agent or disable conflict logging, then specify
IP addresses that the DHCP Server should not assign (excluded addresses) and should
assign (a pool of available IP addresses) to requesting clients. The tasks in the first three
sections are required. The tasks in the remaining sections are optional.
• Enabling the Cisco IOS DHCP Server and Relay Agent Features (Optional)
• Configuring a DHCP Database Agent or Disabling DHCP Conflict Logging (Required)
• Excluding IP Addresses (Required)
• Configuring a DHCP Address Pool (Required)
• Configuring Manual Bindings (Optional)
• Configuring a DHCP Server Boot File (Optional)
• Configuring the Number of Ping Packets (Optional)
• Configuring the Timeout Value for Ping Packets (Optional)
• Enabling the Cisco IOS DHCP Client on Ethernet Interfaces (Optional)
• Configuring DHCP Server Options Import and Autoconfiguration (Optional)
• Configuring the Relay Agent Information Option in BOOTREPLY Messages (Optional)
• Configuring a Relay Agent Information Reforwarding Policy (Optional)
• Enabling the DHCP Smart-Relay Feature (Optional)
Enabling the Cisco IOS DHCP Server and Relay Agent Features
By default, the Cisco IOS DHCP server and relay agent features are enabled on your router.
To reenable these features if they are disabled, use the following command in global
configuration mode:
Command Purpose
If you choose not to configure a DHCP database agent, disable the recording of DHCP
address conflicts on the DHCP Server. To disable DHCP address conflict logging, use the
following command in global configuration mode:
Command Purpose
Excluding IP Addresses
The DHCP Server assumes that all IP addresses in a DHCP address pool subnet are
available for assigning to DHCP clients. You must specify the IP address that the DHCP
Server should not assign to clients. To do so, use the following command in global
configuration mode:
Command Purpose
Configuring the DHCP Address Pool Name and Entering DHCP Pool Configuration
Mode
To configure the DHCP address pool name and enter DHCP pool configuration mode, use
the following command in global configuration mode:
Command Purpose
Note You can not configure manual bindings within the same pool that is configured with the
network command. To configure manual bindings, see the "Configuring Manual Bindings"
section.
Configuring the Domain Name for the Client
The domain name for a DHCP client places the client in the general grouping of networks
that make up the domain. To configure a domain name string for the client, use the following
command in DHCP pool configuration mode:
Command Purpose
Configuring the NetBIOS Windows Internet Naming Service Servers for the Client
Windows Internet Naming Service (WINS) is a name resolution service that Microsoft DHCP
clients use to correlate host names to IP addresses within a general grouping of networks.
To configure the NetBIOS WINS servers that are available to a Microsoft DHCP client, use
the following command in DHCP pool configuration mode:
Command Purpose
Command Purpose
Troubleshooting Tips
You can determine the client identifier by using the debug ip dhcp server packet
command. In the following example, the client is identified by the value 0b07.1134.a029.
Router# debug ip dhcp server packet
DHCPD:DHCPDISCOVER received from client 0b07.1134.a029 through relay
10.1.0.253.
DHCPD:assigned IP address 10.1.0.3 to client 0b07.1134.a029.
.
.
.
Command Purpose
To configure the remote router to import DHCP options into the DHCP server database, use
the following commands beginning in global configuration mode:
Command Purpose
To enable DHCP Server debugging, use the following command in privileged EXEC mode:
Command Purpose
To display DHCP Server information, use the following commands in EXEC mode, as
needed:
Command Purpose
Configuration Examples
This section provides the following configuration examples:
• DHCP Database Agent Configuration Example
• DHCP Address Pool Configuration Example
• Manual Bindings Configuration Example
• Cisco IOS DHCP Client Example
• DHCP Server Options Import and Autoconfiguration Example
DNS 172.16.1.102 — — — —
Server 172.16.2.102
NetBIOS 172.16.1.103 — — — —
name 172.16.2.103
server
NetBIOS h-node — — — —
node type
Because attributes are inherited, the previous configuration is equivalent to the following:
ip dhcp pool Mars
host 172.16.2.254 mask 255.255.255.0
hardware-address 02c7.f800.0422 ieee802
client-name Mars
default-router 172.16.2.100 172.16.2.101
domain-name cisco.com
dns-server 172.16.1.102 172.16.2.102
netbios-name-server 172.16.1.103 172.16.2.103
netbios-node-type h-node
This configuration allows the DHCP client to aquire an IP address from the DHCP Server
through an Ethernet interface.
Central Router
!do not assign this range to DHCP clients
ip dhcp-excluded address 10.0.0.1 10.0.0.5
!
ip dhcp pool central
! Specifies network number and mask for DHCP clients
network 10.0.0.0 255.255.255.0
! Specifes the domain name for the client
domain-name central
! Specifies DNS server that will respond to DHCP clients when they need to
correlate host
! name to ip address
dns-server 10.0.0.2
!Specifies the NETBIOS WINS server
netbios-name-server 10.0.0.2
!
interface FastEthernet0/0
ip address 10.0.0.1 255.255.255.0
duplex auto
speed auto
Remote Router
!
ip dhcp pool client
! Imports DHCP options parameters into DHCP server database
import all
network 20.0.0.0 255.255.255.0
!
interface FastEthernet0/0
ip address dhcp
duplex auto
speed auto