Você está na página 1de 31

Roteador Cisco IOS

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.

Cisco IOS User Interface Fundamentos


Utilizando uma interface de linha de comando que você tem que ter em mente as seguintes coisas

 Operações variar em diferentes dispositivos internetworking


 Digite ou cole inscrições no console comando modos
 Entrar chave encarrega dispositivo para analisar e executar os comandos
 Dois modos são primários EXEC modo utilizador e modo privilegiado para executar
comandos básicos Cisco
 Comando modos têm distintivo prompts

Cisco IOS Software Exec


Existem dois modos principais EXEC para a inscrição de comandos:

User Mode
 Limited exame do roteador
 Prompt com o roteador é Router

Privilegiada (ou ativado) Mode


 A análise detalhada do roteador
 Permite configuração e depuração
 Pré-requisitos de outros modos de configuração
 Prompt sobre o roteador está Router #

Configurado versus desconfigurado roteador


Após concluir o processo inicialização, o roteador Cisco serão configurados no prompt user-
mode prompt enquanto o roteador Cisco irá prompt no modo de configuração para a
configuração inicial, se o diálogo não existe uma configuração na memória.

Configuração do roteador Cisco Mode


O roteador Cisco setup modo comandos são os seguintes:

Configuração: A configuração inicial Dialog


Router # setup

Configuração do sistema Dialog

Continuar com a configuração diálogo? [Sim / não]: Y

A qualquer momento você pode inserir um ponto de interrogação "?" para ajudar

Use ctrl-c para abortar o diálogo em qualquer configuração rápida

Configurações padrão estão em colchetes "[]"

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

Você gostaria de entrar configuração básica de gestão? [Sim / não] n

Configuração interface Síntese


Primeiro, você gostaria de ver a actual interface síntese? [Sim]

Configurar parâmetros mundiais


Configurando parâmetros globais:

Insira nome de host [router]: R1


O segredo é permitir a senha usada para proteger o acesso privilegiado aos modos e
configurações. Esta senha, depois de inscritos, se torna criptografado na configuração.

Entrar permitir segredo: Cisco

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.

Entrar permitir senha: sanfran

O terminal virtual senha usada para proteger o acesso ao roteador, ao longo de um interface de
rede.

Entrar terminal virtual senha: sanjose

Configurar SNMP Network Management? [N]:

Configurar IP? [Sim]:

Configuração interface parâmetros


Configurando interface parâmetros:

Você quer configurar Ethernet 0 interface? [N]: Y

Configurar IP sobre esta interface? [N] Y

Endereço IP para esta interface: 10.1.1.33

Máscara de sub-rede para esta interface [255.0.0.0]: 255.255.255.0

Classe A rede é 10.0.0.0. Subnet 245 bits: máscara é / 24

Você quer configurar interface serial 0? [N]:

Configuração do script revisão e uso


O seguinte comando script foi criado:

[0] vá para o prompt do IOS sem salvar essa configuração


[1] Retorno de volta para a configuração sem guardar esta config
[2] Salve esta configuração para NVRAM e de saída.

Digite sua seleção [2]:


Quais são os comandos básicos Router
A seguir estão alguns comandos básicos do roteador de usuário e privilegiado exec modos que
são utilizados para verificar, cópia e suprimindo a configuração:

 Mostrar versão: Para visualizar o status de hardware e software do roteador Cisco


 Mostrar flash: Para visualizar os arquivos e diretórios residem na flash do roteador Cisco
 Mostrar executando-config: Para visualizar o status de memória RAM, a actual
configuração do roteador Cisco
 Mostrar startup-config: Para visualizar o status de NVRAM, salvou a configuração do
roteador Cisco
 Mostrar interfaces: Para ver as informações detalhadas sobre todas as interfaces do roteador
Cisco
 Mostrar ip interfaces: Para ver os pormenorizado configuração IP em todas as interfaces do
roteador Cisco
 Mostrar interfaces seriais 0: Para ver as informações detalhadas sobre um determinado
interface do roteador Cisco
 Mostrar ip interfaces seriais 0: Para ver os pormenorizado IP em uma configuração
específica interface do roteador Cisco
 Mostrar ip interface breve: Para ver a configuração IP em breve todas as interfaces do
roteador Cisco
 Mostrar linha: Para ver a breve informação sobre todas as linhas do roteador Cisco
 Mostrar line console 0: Para ver as informações detalhadas sobre uma linha específica do
roteador Cisco
 Mostrar o utilizador: Para ver alguns detalhes sobre os usuários que estão atualmente login
com o roteador Cisco através de qualquer linha.
 Show ip route: Para ver a tabela de roteamento IP da Cisco router
 Mostrar ip protocolos: Para visualizar o roteamento IP protocolos que estão atualmente em
execução no roteador Cisco
 Mostrar história: Para ver os últimos dez IOS comandos que foram executados com o
roteador Cisco
 Apagar startup-config: Para apagar o conteúdo da NVRAM do roteador Cisco
 Erase Flash: Para apagar o conteúdo do Flash do roteador Cisco
 Copiar executando-config startup-config: Para copiar o conteúdo da memória RAM para a
NVRAM do roteador Cisco
 Copiar startup-config tftp: Para copiar as configurações salvas de NVRAM para o servidor
TFTP para fins de backup
 Copiar flash tftp: Para copiar o arquivo de imagem IOS Flash para o servidor TFTP para fins
de backup
 Copiar tftp startup-config: Para restaurar a cópia de configuração em NVRAM salvou a
partir do servidor TFTP
 Copiar tftp flash: Para restaurar a cópia do arquivo imagem IOS em Flash a partir do
servidor TFTP
Cisco Routers

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.

Como sabem Cisco é a líder mundial na prestação de roteadores, comutadores e outros


dispositivos de rede. Roteadores Cisco são conhecidos como a melhor solução para qualquer tipo
de ambiente WAN. Roteadores Cisco são comportáveis dispositivos com uma interface de linha
de comando com base Cisco IOS software. A Cisco IOS é um software interpretador de linha de
comando para executar diferentes comandos gerar qualquer tipo de produção.

Roteadores Cisco Series

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:

 Roteador Cisco 700 série com uma porta BRI ISDN


 Roteador Cisco série 1000 com uma porta BRI ISDN

 Roteador Cisco série 1600 com um módulo extra unscratched

 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 Access Server 5300 séries roteador com porta Async

 Cisco 7200 séries sítio central solução roteador com vários módulos unscratched

 Cisco 12000 elevada série final roteador com capacidades GSR


Cisco Router configuração comandos

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 executando-config: Este comando exibe o status de memória RAM, a actual


configuração do roteador cisco

 Show ip route: Este comando exibe a tabela de roteamento IP do router cisco

 Mostrar startup-config: Este comando exibe o status de NVRAM, salvou a configuração do


roteador cisco
 Mostrar versão: Este comando exibe o status de hardware e software do 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.

Atribuindo IP a Cisco Router 2509

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

Como você configura um novo roteador Cisco?

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.

O [enable secret] permite acesso privilegiado às configurações de um roteador CISCO, portanto,


sua forma de recuperação não poderia deixar de requerer acesso físico ao mesmo. Quero dizer
com isto que precisaremos do cabo para a ligação da porta serial do nosso terminal à porta
console do roteador. No meu caso, utilizo o Hyper Terminal com emulador.

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.2. Desligue e ligue o roteador e ao reiniciar, pressione BREAK (CTRL+BREAK no Hyper


Terminal) dentro dos 60 segundos inciais no teclado do terminal afim de entrar no modo
ROMMON.

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.4. Responda no a todas as perguntas ou pressione CTRL+C para cancelar a configuração


incial.

2.5. Digite enable no prompt:


Router>enable
Router#

Estamos começando a obter um real progresso aqui não?

2.6. Copie o conteúdo da memória não volátil NVRAM para a volátil:


Router#copy startup-config running-config

2.7. Faça valer sua remuneração... comece a configurar o roteador:


Router#configure terminal
Router(config)#

Agora é por sua conta... Não se esqueça de tomar um gole de café.


Não se esqueça, também, de executar o no shutdown em cada umas das interfaces utilizadas -
verifique por meio de um show ip interface brief. Todas devem estar up.

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.

Resumidamente, o DHCP opera da seguinte forma, conforme ilustrado na figura 1:

Figura 1: Mensagens DHCP


 Um cliente envia um pacote broadcast (destinado a todas as máquinas) com um pedido
DHCP - DHCPDISCOVER. O cliente DHCP pode receber de mais de um servidor DHCP
na rede a resposta do DHCPDISCOVER, normalmente ele aceita a resposta do primeiro
que responder.
 Os servidores DHCP que capturarem este pacote na rede, irão responder com um pacote
DHCPOFFER que contém configurações onde constará, pelo menos, o endereço IP, a
máscara de rede e outros dados opcionais, como o gateway, servidores de DNS.
 O cliente retorna uma resposta formal DHCPREQUEST para o servidor que respondeu
para aceitar o endereço que o servidor lhe ofereceu.
 O servidor aceita o pedido e envia de volta para o cliente a mensagem de DHCPACK
confirmando que o endereço IP foi alocado para o cliente.

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

4 passo) Configurar as informações do nome do domínio, nome de netbios (para clientes


Microsoft), gateway default, servidor DNS e tempo que o endereço IP ficará disponível para o
cliente:
Router(dhcp-config)# domain-name domain
Router(dhcp-config)# dns-server address [address2 ... address8]
Router(dhcp-config)# netbios-name-server address [address2 ... address8]
Router(dhcp-config)# default-router address [address2 ... address8]
Router(dhcp-config)# lease {days [hours][minutes] | infinite}

Exemplo:

Router(config)# ip dhcp pool CLIENT


Router(dhcp-config)# network 192.168.0.0 255.255.255.0
Router(dhcp-config)# domain-name minhaempresa.com.br
Router(dhcp-config)# default-router 192.168.0.254
Router(dhcp-config)# netbios-name-server 192.168.0.251
Router(dhcp-config)# dns-server 192.168.0.251
Router(dhcp-config)# lease 7

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.

Router# debug ip dhcp server packet


DHCPD:DHCPDISCOVER received from client 0b07.1134.a029 through relay 192.168.0.1
DHCPD:assigned IP address 192.168.0.3 to client 0b07.1134.a029

Veja mais detalhes em:


http://www.cisco.com/en/US/docs/ios/12_2/ip/configuration/guide/1cfdhcp.html

Configuring DHCP

Download this chapter

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.

DHCP Server Overview


The Cisco IOS DHCP Server feature is a full DHCP Server implementation that assigns and
manages IP addresses from specified address pools within the router to DHCP clients. If the
Cisco IOS DHCP Server cannot satisfy a DHCP request from its own database, it can
forward the request to one or more secondary DHCP Servers defined by the network
administrator.
Figure 14 shows the basic steps that occur when a DHCP client requests an IP address
from a DHCP Server. The client, Host A, sends a DHCPDISCOVER broadcast message to
locate a Cisco IOS DHCP Server. A DHCP Server offers configuration parameters (such as
an IP address, a MAC address, a domain name, and a lease for the IP address) to the client
in a DHCPOFFER unicast message.

Figure 14 DHCP Request for an IP Address from a DHCP Server

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.

DHCP Client Overview


The Cisco IOS DHCP client now enables you to obtain an IP address from a DHCP Server
dynamically using the DHCP protocol as specified in RFC 2131. In Cisco IOS Release 12.2,
only Ethernet interfaces are supported; work is in progress to support all interface types.
The Cisco IOS DHCP client offers the following benefits:
• Reduces time to configure and deploy
• Reduces the number of configuration errors
• Enables customers to centrally control the IP address assigned to a Cisco IOS router

DHCP Relay Agent Overview


A DHCP relay agent is any host that forwards DHCP packets between clients and servers.
Relay agents are used to forward requests and replies between clients and servers when
they are not on the same physical subnet. Relay agent forwarding is distinct from the
normal forwarding of an IP router, where IP datagrams are switched between networks
somewhat transparently. Relay agents receive DHCP messages and then generate a new
DHCP message to send out on another interface.
The Cisco IOS DHCP relay agent supports the use of unnumbered interfaces. The DHCP
relay agent automatically adds a static host route specifying the unnumbered interface as
the outbound interface.
DHCP Configuration Task List
The DHCP Server database is organized as a tree. The root of the tree is the address pool
for natural networks, branches are subnetwork address pools, and leaves are manual
bindings to clients. Subnetworks inherit network parameters and clients inherit subnetwork
parameters. Therefore, common parameters, for example the domain name, should be
configured at the highest (network or subnetwork) level of the tree.

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

Router(config)# Enables the Cisco IOS DHCP server and relay


service dhcp
features on your router.
Use the no form of this command to disable the
Cisco IOS DHCP server and relay features.

Configuring a DHCP Database Agent or Disabling DHCP Conflict Logging


A DHCP database agent is any host—for example, an FTP, TFTP, or rcp server—that stores
the DHCP bindings database. You can configure multiple DHCP database agents and you
can configure the interval between database updates and transfers for each agent. To
configure a database agent and database agent parameters, use the following command in
global configuration mode:
Command Purpose

Router(config)# ip dhcp Configures the database agent and


database url [timeout seconds |
the interval between database
write-delay seconds]
updates and database transfers.

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

Router(config)# no ip dhcp conflict Disables DHCP address


logging
conflict logging.

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

Router(config)# ip dhcp Specifies the IP addresses that the


excluded-address low-address
DHCP Server should not assign to
[high-address]
DHCP clients.
Configuring a DHCP Address Pool
You can configure a DHCP address pool with a name that is a symbolic string (such as
"engineering") or an integer (such as 0). Configuring a DHCP address pool also places you
in DHCP pool configuration mode—identified by the (dhcp-config)# prompt—from which you
can configure pool parameters (for example, the IP subnet number and default router list).
To configure a DHCP address pool, complete the required tasks in the following sections.

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

Router(config)# ip Creates a name for the DHCP Server address


dhcp pool name
pool and places you in DHCP pool configuration
mode (identified by the dhcp-config# prompt).

Configuring the DHCP Address Pool Subnet and Mask


To configure a subnet and mask for the newly created DHCP address pool, which contains
the range of available IP addresses that the DHCP Server may assign to clients, use the
following command in DHCP pool configuration mode:
Command Purpose

Router(dhcp-config)# Specifies the subnet network number and


network network-
mask of the DHCP address pool.
number [mask |
/prefix-length] The prefix length specifies the number of bits
that comprise the address prefix. The prefix is
an alternative way of specifying the network
mask of the client. The prefix length must be
preceded by a forward slash (/).

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

Router(dhcp-config)# domain-name Specifies the domain name for


domain
the client.

Configuring the IP Domain Name System Servers for the Client


DHCP clients query DNS IP servers when they need to correlate host names to IP
addresses. To configure the DNS IP servers that are available to a DHCP client, use the
following command in DHCP pool configuration mode:
Command Purpose

Router(dhcp-config)# Specifies the IP address of a DNS server that


dns-server address
is available to a DHCP client. One IP address
[address2 ... address8]
is required; however, you can specify up to
eight IP addresses in one command line.

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

Router(dhcp-config)# Specifies the NetBIOS WINS server that is


netbios-name-server
available to a Microsoft DHCP client. One
address [address2 ...
address8] address is required; however, you can
specify up to eight addresses in one
command line.

Configuring the NetBIOS Node Type for the Client


The NetBIOS node type for Microsoft DHCP clients can be one of four settings: broadcast,
peer-to-peer, mixed, or hybrid. To configure the NetBIOS node type for a Microsoft DHCP,
use the following command in DHCP pool configuration mode:
Command Purpose

Router(dhcp-config)# netbios- Specifies the NetBIOS node type for a


node-type type
Microsoft DHCP client.

Configuring the Default Router for the Client


After a DHCP client has booted, the client begins sending packets to its default router. The
IP address of the default router should be on the same subnet as the client. To specify a
default router for a DHCP client, use the following command in DHCP pool configuration
mode:
Command Purpose

Router(dhcp-config)# Specifies the IP address of the default


default-router address
router for a DHCP client. One IP address is
[address2 ... address8]
required; however, you can specify up to
eight addresses in one command line.

Configuring the Address Lease Time


By default, each IP address assigned by a DHCP Server comes with a one-day lease,
which is the amount of time that the address is valid. To change the lease value for an IP
address, use the following command in DHCP pool configuration mode:
Command Purpose

Router(dhcp-config)# lease Specifies the duration of the lease.


{days [hours][minutes] |
The default is a one-day lease.
infinite}
• Use the show ip dhcp binding to
display the lease expiration time
and date of the IP address of the
host.

Configuring Manual Bindings


An address binding is a mapping between the IP address and MAC address of a client. The
IP address of a client can be assigned manually by an administrator or assigned
automatically from a pool by a DHCP server.
Manual bindings are IP addresses that have been manually mapped to the MAC addresses
of hosts that are found in the DHCP database. Manual bindings are stored in NVRAM on
the DHCP server. Manual bindings are just special address pools. There is no limit on the
number of manual bindings, but you can only configure one manual binding per host pool.
Automatic bindings are IP addresses that have been automatically mapped to the MAC
addresses of hosts that are found in the DHCP database. Automatic bindings are stored on
a remote host called a database agent. The bindings are saved as text records for easy
maintenance.
All DHCP clients send a client identifier (DHCP option 61) in the DHCP packet. To configure
manual bindings, you must enter the client-identifier DHCP pool configuration command
with the appropriate hexadecimal values identifying the DHCP client.
To configure a manual binding, first create a host pool, then specify the IP address of the
client and client identifier or hardware address.
To configure manual bindings, use the following commands beginning in global
configuration mode:

Command Purpose

Step 1 Router(config)# ip Creates a name for the a DHCP Server


dhcp pool name
address pool and places you in DHCP
pool configuration mode—identified by
the (dhcp-config)# prompt.

Step 2 Router(dhcp- Specifies the IP address and subnet


config)# host
mask of the client.
address
[mask | /prefix- The prefix length specifies the number
length] of bits that comprise the address prefix.
The prefix is an alternative way of
specifying the network mask of the
client. The prefix length must be
preceded by a forward slash (/).

Step 3 Router(dhcp- Specifies the unique identifier for


config)# client-
DHCP clients. This command is used
identifier unique-
identifier for DHCP requests.
• DHCP clients require client
identifiers. The unique identification
of the client is specified in dotted
hexadecimal notation, for example,
01b7.0813.8811.66, where 01
represents the Ethernet media type.
• See "Troubleshooting Tips" below
for information on how to determine
the client identifier of the DHCP
client.

Step 4 Router(dhcp- (Optional) Specifies a hardware


config)# hardware-
address for the client. This command is
address hardware-
address type used for BOOTP requests.
The type value:
• Indicates the protocol of the
hardware platform. Strings and
values are acceptable. The string
options are:
– ethernet
– ieee802
• The value options are:
– 1 10Mb Ethernet
– 6 IEEE 802
If no type is specified, the default
protocol is Ethernet.

Step 5 Router(dhcp- (Optional) Specifies the name of the


config)# client-
client using any standard ASCII
name name
character. The client name should not
include the domain name. For example,
the name mars should not be specified
as mars.cisco.com.

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.
.
.
.

Configuring a DHCP Server Boot File


The boot file is used to store the boot image for the client. The boot image is generally the
operating system the client uses to load. To specify a boot file for the DHCP client, use the
following command in DHCP pool configuration mode:
Command Purpose

Router(dhcp-config)# Specifies the name of the file that is


bootfile filename
used as a boot image.
Configuring the Number of Ping Packets
By default, the DHCP Server pings a pool address twice before assigning a particular
address to a requesting client. If the ping is unanswered, the DHCP Server assumes (with a
high probability) that the address is not in use and assigns the address to the requesting
client. To change the number of ping packets the DHCP Server should send to the pool
address before assigning the address, use the following command in global configuration
mode:
Command Purpose

Router(config)# ip Specifies the number of ping packets the DHCP


dhcp ping packets
Server sends to a pool address before assigning
number
the address to a requesting client. The default is
two packets. Setting the count argument to a
value of 0 turns off DHCP Server ping operation
completely.

Configuring the Timeout Value for Ping Packets


By default, the DHCP Server waits 500 milliseconds before timing out a ping packet. To
change the amount of time the server waits, use the following command in global
configuration mode:
Command Purpose

Router(config)# ip dhcp Specifies the amount of time the DHCP


ping timeout
Server must wait before timing out a ping
milliseconds
packet. The default is 500 milliseconds.

Enabling the Cisco IOS DHCP Client on Ethernet Interfaces


To acquire an IP address via DHCP on an Ethernet interface, use the following command in
interface configuration mode:
Command Purpose

Router(config-if)# ip address dhcp Specifies that the Ethernet


[client-id interface name]
interface acquires an IP
[hostname host-name]
address through DHCP.
Configuring DHCP Server Options Import and Autoconfiguration
The Cisco IOS DHCP server can dynamically configure options such as the DNS and WINS
addresses to respond to DHCP requests from local clients behind the customer premises
equipment (CPE).
Previously, network administrators needed to manually configure the Cisco IOS DHCP
server on each device enabled with this feature. The Cisco IOS DHCP server was
enhanced to allow configuration information to be updated automatically. Network
administrators can configure one or more centralized DHCP servers to update specific
DHCP options within the DHCP pools. The remote servers can request or "import" these
option parameters from the centralized servers. See the section "DHCP Server Options
Import and Autoconfiguration Example" later in this chapter for a configuration example.
To configure the central router to update specific DHCP options within the DHCP pools, use
the following commands beginning in global configuration mode:

Command Purpose

Step 1 Router(config)# ip Creates a name for the a DHCP


dhcp pool name
Server address pool and places you
in DHCP pool configuration mode—
identified by the (dhcp-config)#
prompt.

Step 2 Router(dhcp-config)# Specifies the subnet network number


network network-
and mask of the DHCP address pool.
number [mask |
/prefix-length] The prefix length specifies the
number of bits that comprise the
address prefix. The prefix is an
alternative way of specifying the
network mask of the client. The prefix
length must be preceded by a
forward slash (/).

Step 3 Router(dhcp-config)# Specifies the IP address of a DNS


dns-server address
server that is available to a DHCP
[address2 ...
address8] client. One IP address is required;
however, you can specify up to eight
IP addresses in one command line.

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

Step 1 Router(config)# ip dhcp pool Creates a name for the a


name
DHCP Server address pool
and places you in DHCP
pool configuration mode—
identified by the (dhcp-
config)# prompt.

Step 2 Router(dhcp-config)# network Specifies the subnet


network-number [mask |
network number and mask
/prefix-length]
of the DHCP address pool.
The prefix length specifies
the number of bits that
comprise the address
prefix. The prefix is an
alternative way of
specifying the network
mask of the client. The
prefix length must be
preceded by a forward
slash (/).

Step 3 Router(dhcp-config)# import Import DHCP option


all
parameters into the DHCP
server database.

Step 4 Router(dhcp-config)# exit Exits DHCP pool


configuration mode.

Step 5 Router(config)# interface Configures an interface and


type number
enters interface
configuration mode.

Step 6 Router(config-if)# ip address Specifies that the interface


dhcp [client-id interface
acquires an IP address
name] [hostname host-name]
through DHCP.

Configuring the Relay Agent Information Option in BOOTREPLY Messages


To configure the DHCP Server to validate the relay agent information option in forwarded
BOOTREPLY messages, use the following command in global configuration mode:
Command Purpose

Router(config)# ip dhcp Configures the DHCP Server to check that


relay information check
the relay agent information option in
forwarded BOOTREPLY messages is valid.
Configuring a Relay Agent Information Reforwarding Policy
To configure a relay agent information reforwarding policy on the DHCP Server (what the
DHCP Server should do if a forwarded message already contains relay information), use
the following command in global configuration mode:
Command Purpose

Router(config)# ip dhcp relay Determines the relay information


information policy {drop | keep
reforwarding policy in a cable
|replace}
modem termination system.

Enabling the DHCP Smart-Relay Feature


By default, the DHCP smart-relay feature is disabled. To enable the smart-relay
functionality, use the following command in global configuration mode:
Command Purpose

Router(config)# ip Allows the DHCP relay agent to switch the


dhcp smart-relay
gateway address (giaddr field of a DHCP packet)
to secondary addresses when there is no
DHCPOFFER message from a DHCP Server.

Monitoring and Maintaining the DHCP Server


To clear DHCP Server variables, use the following commands in privileged EXEC mode, as
needed:
Command Purpose

Router# clear ip Deletes an automatic address binding from the


dhcp binding
DHCP database. Specifying the address argument
{address | *}
clears the automatic binding for a specific (client)
IP address, whereas specifying an asterisk (*)
clears all automatic bindings.
Router# clear ip Clears an address conflict from the DHCP
dhcp conflict
database. Specifying the address argument clears
{address | *}
the conflict for a specific IP address, whereas
specifying an asterisk (*) clears conflicts for all
addresses.
Router# clear ip Resets all DHCP Server counters to 0.
dhcp server
statistics
Router# clear ip Removes routes from the routing table added by
route [vrf vrf- the Cisco IOS DHCP Server and Relay Agent for
name] dhcp [ip-
the DHCP clients on unnumbered interfaces.
address]

To enable DHCP Server debugging, use the following command in privileged EXEC mode:
Command Purpose

Router# debug ip dhcp server {events Enables debugging on the


| packets | linkage}
DHCP Server.

To display DHCP Server information, use the following commands in EXEC mode, as
needed:
Command Purpose

Router# show ip Displays a list of all bindings created on a specific


dhcp binding
DHCP Server.
[address]
• Use the show ip dhcp binding to display the
lease expiration time and date of the IP address
of the host and the number. You can also use
this command to display the IP addresses that
have already been assigned.
Router# show ip Displays a list of all address conflicts recorded by a
dhcp conflict
specific DHCP Server.
[address]
Router# show ip Displays recent activity on the DHCP database.
dhcp database
[url] Note Use this command in privileged EXEC mode.
Router# show ip Displays count information about server statistics
dhcp server
and messages sent and received.
statistics
Router# show ip Displays the option parameters that were imported
dhcp import
into the DHCP Server database. Imported option
parameters are not part of the router configuration
and are not saved in NVRAM.
Router# show ip Displays the routes added to the routing table by
route [vrf vrf-
the Cisco IOS DHCP Server and Relay Agent.
name] dhcp [ip-
address]

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

DHCP Database Agent Configuration Example


The following example stores bindings on host 172.16.4.253. The file transfer protocol is
FTP. The server should wait 2 minutes (120 seconds) before writing database changes.
ip dhcp database ftp://user:password@172.16.4.253/router-dhcp write-delay 120

DHCP Address Pool Configuration Example


In the following example, three DHCP address pools are created: one in network
172.16.0.0, one in subnetwork 172.16.1.0, and one in subnetwork 172.16.2.0. Attributes
from network 172.16.0.0—such as the domain name, DNS server, NetBIOS name server,
and NetBIOS node type—are inherited in subnetworks 172.16.1.0 and 172.16.2.0. In each
pool, clients are granted 30-day leases and all addresses in each subnetwork, except the
excluded addresses, are available to the DHCP Server for assigning to clients. Table 5 lists
the IP addresses for the devices in three DHCP address pools.

Table 5 DHCP Address Pool Configuration Example

Pool 0 (Network Pool 1 (Subnetwork Pool 2 (Subnetwork


172.16.0.0) 172.16.1.0) 172.16.2.0)

Device IP Address Device IP Address Device IP Address

Default - Default 172.16.1.100 Default 172.16.2.100


routers routers 172.16.1.101 routers 172.16.2.101

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

ip dhcp database ftp://user:password@172.16.4.253/router-dhcp write-delay 120


ip dhcp excluded-address 172.16.1.100 172.16.1.103
ip dhcp excluded-address 172.16.2.100 172.16.2.103
!
ip dhcp pool 0
network 172.16.0.0 /16
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
!
ip dhcp pool 1
network 172.16.1.0 /24
default-router 172.16.1.100 172.16.1.101
lease 30
!
ip dhcp pool 2
network 172.16.2.0 /24
default-router 172.16.2.100 172.16.2.101
lease 30

Manual Bindings Configuration Example


The following example creates a manual binding for a client named Mars.cisco.com. The
MAC address of the client is 02c7.f800.0422 and the IP address of the client is
172.16.2.254.
ip dhcp pool Mars
host 172.16.2.254
hardware-address 02c7.f800.0422 ieee802
client-name Mars

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

Cisco IOS DHCP Client Example


Figure 15 shows a simple network diagram of a DHCP client on an Ethernet LAN.

Figure 15 Topology Showing DHCP Client with Ethernet Interface

On the DHCP Server, the configuration is as follows:


ip dhcp pool 1
network 10.1.1.0 255.255.255.0
lease 1 6

On the DHCP client, the configuration is as follows on interface E2:


interface Ethernet2
ip address dhcp

This configuration allows the DHCP client to aquire an IP address from the DHCP Server
through an Ethernet interface.

DHCP Server Options Import and Autoconfiguration Example


The following example shows a remote and central server configured to support DHCP
options import and autoconfiguration. The central server is configured to automatically
update DHCP options, such as DNS and WINs addresses, within the DHCP pools. In
response to a DHCP request from a local client behind CPE equipment, the remote server
can request or "import" these option parameters from the centralized server. See Figure 16
for a diagram of the network topology.

Figure 16 DHCP Example Network Topology

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

Você também pode gostar