How to Configure a DHCP Server and DHCP Relay Agent

Опубликовано: 28 Сентябрь 2024
на канале: Ferds Tech Channel
548
4

How to Configure a DHCP Server and DHCP Relay Agent

**********Configuring the DHCP Server**********

1. ip dhcp excluded-address 10.0.10.1 10.0.10.10
2. ip dhcp pool VLAN30
network 10.0.10.0 255.255.255.0
default-router 10.0.10.1
dns-server 10.0.8.51


1. ip dhcp excluded-address 10.0.11.1 10.0.11.10
2. ip dhcp pool VLAN40
network 10.0.11.0 255.255.255.0
default-router 10.0.11.1
dns-server 10.0.8.51

**********Configuring the the DHCP Relay Agent**********

interface Vlan30
ip helper-address 10.0.8.51
!
interface Vlan40
ip helper-address 10.0.8.51


**********DHCP Server Verification Commands**********

show ip dhcp binding
show ip dhcp pool [poolname]
show ip dhcp server statistics


**********Configure the DHCP Client to get an IP address via DHCP**********

nano /etc/network/interfaces - uncomment the following commands
auto eth0
iface eth0 inet dhcp


**********Host Verification Commands**********

ifconfig
netstat -nr
cat /etc/resolv.conf

Document Link:
https://docs.google.com/document/d/1f...

#cisco #ccna #ccnp #ccie