Sei sulla pagina 1di 12

instructables

How to Configure DHCP in Cisco Packet Tracer

by Viktor17gt

In this tutorial we will configure IP addresses dynamically, for this will be done two examples configuring DHCP.
The first configuration is through the router and the second is through a server.

I use 2 language for this instructable, the English and the Spanish.

How to Configure DHCP in Cisco Packet Tracer: Page 1


Step 1:

Step 1: First configure the DHCP service on the Ip address 172.16.1.1 255.255.255.0
router, so
we will first enable the two interfaces and place their No shutdown
respective IP addresses with their Subnet Mask.
Do write memory
To do this, the following commands will be written in
global configuration for the R1 router:

Int Fa0/0
Paso 1: De primero configuraremos el servicio DHCP
Ip address 172.16.0.1 255.255.255.0 en el router, para ello de primero habilitaremos las
dos interfaces y le colocaremos sus respectivas
No shutdown direcciones IP con sus Subnet Mask.

Int Fa0/1 Para ello se escribirán los siguientes comandos en

configuración global para el router R1: Ip address 172.16.1.1 255.255.255.0

Int Fa0/0 No shutdown

Ip address 172.16.0.1 255.255.255.0 Do write memory

No shutdown

Int Fa0/1

How to Configure DHCP in Cisco Packet Tracer: Page 2


Step 2:

Step 2: Now you will proceed to enable a logical Paso 2: Ahora se procederá a habilitar una interfaz
interface inside the router, this type of interfaces are lógica dentro del router, este tipo de interfaces son
very useful since these are always on if the router is muy útiles ya que estas siempre están encendidas
on too. But it is good practice to always make sure media vez el router este encendido. Pero es una
that the logical interface is turned on. buena práctica siempre asegurarnos de que la
To do this we will place the following commands in interfaz lógica esta encendida. Para ello colocaremos
the global configuration: los siguientes comandos en la configuración global:

Int loopback 1 Int loopback 1

Ip address 1.1.1.1 255.255.255.255 Ip address 1.1.1.1 255.255.255.255

No shutdown No shutdown

How to Configure DHCP in Cisco Packet Tracer: Page 3


Step 3:

Step 3: To configure the DHCP you must know which Dns-server 8.8.8.8
network address we want to provide, which is the
Subnet Mask and which is the Default Gateway on Exit
the network. As optional we can also exclude certain
IP addresses to reserve them or simply because we Note that for the Default Gateway we will use the
do not want to use them and we can also configure a loopback address 1, we could also have put any
DNS service where we will place an address that we address of the physical interfaces of the router R1 but
want, it is worth repeating that these last two for ease we will place in default-router 1.1.1.1. It
configurations are optional since the DHCP service should also be mentioned that the address 8.8.8.8
can Work perfectly well without these. that was put in the DNS service is like a
The commands to use are as follows: demonstrative purpose.

Ip dhcp excluded-address 172.16.0.1 172.16.0.10 Paso 3: Para la configuración del DHCP se debe de
tomar en cuenta cual es la dirección de red que
Ip dhcp pool NET1 queremos proporcionar, cual es la Subnet Mask y
cuál es la Gateway de la red. Como opcional también
Network 172.16.0.0 255.255.255.0 podemos excluir ciertas direcciones IP para
reservarlas o simplemente porque no las queremos
Default-router 1.1.1.1 usar y también podemos configurar un servicio DNS
en donde colocaremos una dirección que nosotros
Dns-server 8.8.8.8 deseemos, cabe repetir de que estas dos últimas
configuraciones son opcionales ya que el servicio de
Exit DHCP puede funcionar perfectamente bien sin estas.
Los comandos a utilizar son los siguientes:
Ip dhcp excluded-address 172.16.1.1 172.16.1.10
Ip dhcp excluded-address 172.16.0.1 172.16.0.10
Ip dhcp pool NET2
Ip dhcp pool NET1
Network 172.16.1.0 255.255.255.0
Network 172.16.0.0 255.255.255.0
Default-router 1.1.1.1
Default-router 1.1.1.1

Dns-server 8.8.8.8 Exit

Exit Hay que tomar en consideración que para el Default


Gateway usaremos la dirección de loopback 1,
Ip dhcp excluded-address 172.16.1.1 172.16.1.10 también se pudo haber puesto cualquier dirección de
las interfaces físicas del router R1 pero por facilidad
Ip dhcp pool NET2 colocaremos en default-router 1.1.1.1. También hay
que mencionar que la dirección 8.8.8.8 que se puso
Network 172.16.1.0 255.255.255.0 en el servicio DNS es como un fin demostrativo.

Default-router 1.1.1.1

Dns-server 8.8.8.8

How to Configure DHCP in Cisco Packet Tracer: Page 4


Step 4:

Step 4: We now need to require DCHP services on Paso 4: Ahora debemos de requerir los servicios de
the respective physical interfaces of the router. We DCHP en las respectivas interfaces físicas del router.
must be very careful that we are requiring the DHCP Debemos de ser muy precavidos de que estamos
service in the correct interface, for this we must note requiriendo el servicio DHCP en la interfaz correcta,
that the address of the interface matches the address para ello debemos de notar que la dirección de la
of the DHCP together with the subnet mask, to interfaz coincida con la dirección del DHCP junto con
require the service we must use the address of the la subnet mask, para requerir el servicio debemos de
Default-router. usar la dirección del default-router. Para evitar
To prevent confusions in this step we will only confusiones en este paso solo configuraremos la
configure the DHCP request on the Fa0/0 interface. petición de DHCP en la interfaz Fa0/0. Los
The commands are: comandos son:

Int Fa0/0 Int Fa0/0

Ip helper-address 1.1.1.1 Ip helper-address 1.1.1.1

How to Configure DHCP in Cisco Packet Tracer: Page 5


Step 5:

Step 5: Now proceed to verify that if the IP addresses hayan repartido automáticamente las direcciones IP
have been automatically distributed for the final para los dispositivos finales que estén conectados a
devices that are connected to the Fa0/0 interface. la interfaz Fa0/0. Para ello entramos a una laptop y
To do this we go to a laptop and select the IP seleccionamos la opción IP Configuration, luego
Configuration option, then we have to click the DHCP tenemos que darle click a la opción de DHCP. Puede
option. It may take some time to give the address tardar un cierto tiempo en dar la dirección
automatically but if we are sure that our configuration automáticamente pero si estamos seguros de que
is fine we will not have to worry, there is a possibility nuestra configuración está bien no tendremos de que
that it will be late to give the address automatically, preocuparnos, hay una posibilidad de que se tarde
for that we can select the Static option and then para dar la dirección automáticamente, para eso
DHCP again to get the IP address. podemos seleccionar la opción de Static y luego
DHCP de nuevo para obtener la dirección IP.
Paso 5: Ahora procederemos a verificar que si se

How to Configure DHCP in Cisco Packet Tracer: Page 6


Step 6:

Step 6: In this part we will configure the DHCP Paso 6: En esta parte configuraremos el servicio
service for the Fa0/1 interface as it was done in Step DHCP para la interfaz Fa0/1 así como se hizo en el
4, the commands we will use are: Paso 4, los comandos que utilizaremos son:

Int Fa0/1 Int Fa0/1

Ip helper-address 1.1.1.1 Ip helper-address 1.1.1.1

Do write memory Do write memory

Step 7:

Step 7: We need to select the DHCP option on the laptops that are connected to the Fa0/1 interface as was done
in Step 5.

Paso 7: Tenemos que seleccionar la opción de DHCP en las laptop que están conectadas a la interfaz Fa0/1 así
como se hizo en el Paso 5.

How to Configure DHCP in Cisco Packet Tracer: Page 7


Step 8:

Step 8: Now proceed to configure the DHCP service of the second form, in this method we have to configure it on
a Server.

Paso 8: Ahora procederemos a configurar el servicio DHCP de la segunda forma, en este método tenemos que
configurarlo en un Server.

Step 9:

Step 9: In this step we will configure the IP addresses Paso 9: En este paso configuraremos las direcciones
for the physical interfaces. The programming will be IP para las interfaces físicas. La programación se
done in the global configuration with the following hará en la configuración global con los siguientes
commands: comandos:

Int fa0/0 Int fa0/0

Ip address 10.10.10.1 255.255.255.252 Ip address 10.10.10.1 255.255.255.252

No shutdow No shutdow

Int fa0/1 Int fa0/1

Ip address 172.32.0.1 255.255.255.0 Ip address 172.32.0.1 255.255.255.0

No shutdow No shutdow

Do write memory Do write memory

How to Configure DHCP in Cisco Packet Tracer: Page 8


Step 10:

Step 10: In this step, select the server by selecting para ello lo seleccionamos y le damos click a la
and clicking the Desktop option, then selecting IP opción de Desktop, luego seleccionamos IP
Configuration to place an IP address together with the Configuration para colocarle una dirección IP junto
Subnet Mask and its default Gateway that matches con su Subnet Mask y su Default Gateway que
the physical interface of the Router that is connected. coincida con la interfaz física del router al que esta
conectado.
Paso 10: En este paso seleccionaremos el Server,

How to Configure DHCP in Cisco Packet Tracer: Page 9


Step 11:

Step 11: Now select the Services option and then the DHCP service.

Paso 11: Ahora seleccionamos la opción de Services y luego el servicio de DHCP.

Step 12:

Step 12: At this moment we have to select the option la opción On para poner en operación el servicio y
On to start the service and proceed to configure it, procederemos a configurarlo, al igual que la
just like the DHCP programming on the router, it must programación de DHCP en el router, este debe de
match the network address we want to give you the coincidir con la dirección de red que queremos
service Ip addresses automatically. brindarle el servicio de dar direcciones Ip de forma
automática.
We must take into account that the Default Gateway
must be the Ip address of the interface where we will Hay que tomar muy en cuenta que la Default
request the service, when we have everything Gateway debe de ser la dirección Ip de la interfaz
configured we will click the Add button and then the donde nos solicitarán el servicio, cuando tengamos
Save button. todo configurado daremos click al botón de Add y
luego al botón de Save.
Paso 12: En este momento tenemos que seleccionar

How to Configure DHCP in Cisco Packet Tracer: Page 10


Step 13:

Step 13: Then we will return to the configuration of Paso 13: Luego regresaremos a la configuración del
the router to require the DHCP service of the Server, router para requerir el servicio de DHCP del Server,
for this we must note that the service will be para ello debemos de notar que se solicitará el
requested based on the IP address of the Server. The servicio en base a la dirección IP del Server. Los
commands to be used will be programmed in the comandos a utilizar se programarán en la
global configuration. configuración global.

Int Fa0/1 Int Fa0/1

Ip helper-address 10.10.10.2 Ip helper-address 10.10.10.2

Do write memory Do write memory

Step 14:

Step 14: Finally on a laptop select the option of para seleccionaremos la opción de Desktop y Ip
Desktop and Ip Configuration, then select the DHCP Configuration, luego seleccionaremos la opción de
option to receive the IP address automatically. DHCP para recibir la dirección Ip de manera
automática.
It should be remembered that if you do not give the
address automatically you can implement the Se debe de recordar que si no da al principio la
recommendations in Step 5. dirección de manera automática puede implementar
las recomendaciones del Paso 5.
Paso 14: Por último entraremos a un dispositivo final

How to Configure DHCP in Cisco Packet Tracer: Page 11


How to Configure DHCP in Cisco Packet Tracer: Page 12

Potrebbero piacerti anche