0% found this document useful (0 votes)
66 views11 pages

31 - Router DHCP (Packet Tracer 7.0 - Español)

The document describes configuring DHCP services on a router. It shows the router being configured with DHCP pools for two networks with different IP ranges and subnets. One pool is configured to serve IP addresses on the 172.0.0.0/21 network, while the other is configured to serve the 192.168.56.0/24 network. Both pools use the router's IP as the default gateway and specify an external DNS server. The configuration is then verified.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
66 views11 pages

31 - Router DHCP (Packet Tracer 7.0 - Español)

The document describes configuring DHCP services on a router. It shows the router being configured with DHCP pools for two networks with different IP ranges and subnets. One pool is configured to serve IP addresses on the 172.0.0.0/21 network, while the other is configured to serve the 192.168.56.0/24 network. Both pools use the router's IP as the default gateway and specify an external DNS server. The configuration is then verified.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 11

31 - Router DHCP [Packet Tracer 7.

0 -
Español]
Entramos a router 1841

Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int fa0/0
Router(config-if)#ip add 172.0.0.1 255.255.240.0
Router(config-if)#no shut

Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

Router(config-if)#int fa0/1
Router(config-if)#ip add 192.168.56.1 255.255.255.0
Router(config-if)#no shut

Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up

Router(config-if)#exit
Router(config)#ip dhcp pool codestack
Router(dhcp-config)#network 172.0.0.0 255.255.240.0
Router(dhcp-config)#default-router 172.0.0.1
Router(dhcp-config)#dns-server 8.8.8.8
Router(dhcp-config)#ip dhcp pool youtube
Router(dhcp-config)#
Router(dhcp-config)#network 192.168.56.0 255.255.255.0
Router(dhcp-config)#default-router 192.168.56.1
Router(dhcp-config)#dns-server 8.8.8.8
Router(dhcp-config)#
Vamos a configurar ahora el pc1

Le damos click a la opción de dhcp y nos sale esto

SORPRESAA
Para saber los comandos de dhcp

Router(config)#ip dhcp ?
excluded-address Prevent DHCP from assigning certain addresses
pool Configure DHCP address pools
relay DHCP relay agent parameters
Router>ena
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#ip dhcp?
dhcp
Router(config)#ip dhcp ?
excluded-address Prevent DHCP from assigning certain addresses
pool Configure DHCP address pools
relay DHCP relay agent parameters
Router(config)#ip dhcp exluded-address 172.0.0.2 172.0.0.100
^
% Invalid input detected at '^' marker.
Router(config)#ip dhcp excluded-address 172.0.0.2 172.0.0.100
Router(config)#end
Router#
%SYS-5-CONFIG_I: Configured from console by console
show running-config

Ya teniendo una nueva mascara de red obtenemos otra vez una nueva ip entrando al equipo
desactivando y activando el puntico de dhcp
Pc0
Como vemos en el pc0 si cambio

Ahora conectaremos un switch y creare una vlan

Desconectaremos un pc y conectaremos el switch hacia el router


Y le asignaremos una dirección ip y dhcp

En comando cli del switch

Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 27
Switch(config-vlan)#int vlan 27
Switch(config-if)#
%LINK-5-CHANGED: Interface Vlan27, changed state to up

Switch(config-if)#ip address dhcp


Switch(config-if)#end
Switch#
%SYS-5-CONFIG_I: Configured from console by console

Switch#show run

Volvemos a escribir show run

Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int vlan 27
Switch(config-if)#ip address dhcp
Switch(config-if)#end
Switch#
%SYS-5-CONFIG_I: Configured from console by console

Volvemos a poner show run

Después va

Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int fa0/1
Switch(config-if)#switchport mode ac
Switch(config-if)#switchport access vlan 27
Switch(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan27, changed state to up

Switch(config-if)#
Switch(config-if)#end
Switch#
%SYS-5-CONFIG_I: Configured from console by console
show run

volvemos a escribir show run

ya se ve conectado entonces haremos una prueba de coneccion


Haciendo ping no encontramos la ip entonces entramos a switch

Elegimos vlan 27

Crearemos otra sub interfaz


10:31

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy