www.howtonetwork.org

CCNA & CCNP Certifcation Training

  • About
  • Contact
  • FAQ
  • Join
  • Home
  • CCNA
    • ICND1
    • ICND2
    • 101 CCNA LABS
  • CCNP
    • ROUTE
    • SWITCH
    • TSHOOT
    • 101 CCNP LABS
  • CompTIA
    • Security+
    • Network+
  • Design
    • CCDA
    • CCDP
You are here: Home / 101 CCNA LABS / Dynamic Host Configuration Protocol Solutions / Lab 70 Solution: Configuring IOS DHCP Server

Lab 70 Solution: Configuring IOS DHCP Server

Task 1:

For reference information on configuring hostnames, please refer to:

Lab 35 Configuration and Verification Task 1

Task 2:

Sw1#config t

Enter configuration commands, one per line.  End with CNTL/Z.

Sw1(config)#vlan 50

Sw1(config-vlan)#name DHCP_VLAN

Sw1(config-vlan)#exit

Sw1(config)#interface range fastethernet0/2 — 3

Sw1(config-if-range)#switchport mode access

Sw1(config-if-range switchport access vlan 50

Sw1(config-if-range)#spanning-tree portfast

%Warning: portfast should only be enabled on ports connected to a single

host. Connecting hubs, concentrators, switches, bridges, etc… to this

interface  when portfast is enabled, can cause temporary bridging loops.

Use with CAUTION

%Portfast will be configured in 2 interfaces due to the range command

but will only have effect when the interfaces are in a non-trunking mode.

Sw1(config-if-range)#no shutdown

Sw1(config-if-range)#end

Sw1#

Task 3:

R1#config t

Enter configuration commands, one per line.  End with CNTL/Z.

R1(config)#ip dhcp pool CCNA-DHCP-POOL

R1(dhcp-config)#network 172.16.1.0 255.255.255.0

R1(dhcp-config)#dns-server 10.1.1.254

R1(dhcp-config)#netbios-name-server 10.2.2.254

R1(dhcp-config)#default-router 172.16.1.1

R1(dhcp-config)#domain-name howtonetwork.net

R1(dhcp-config)#lease 5 0 30

R1(dhcp-config)#end

R1#show ip dhcp pool CCNA-DHCP-POOL

Pool CCNA-DHCP-POOL :

Utilization mark (high/low) : 100 / 0
Subnet size (first/next) : 0 / 0
Total addresses : 254
Leased addresses : 0
Pending event : none

1 subnet is currently in the pool :

Current index        IP address range                    Leased addresses

172.16.1.1           172.16.1.1       – 172.16.1.254      0

Task 4:

R1#show ip dhcp binding

Bindings from all pools not associated with VRF:

IP address          Client-ID/              Lease expiration        Type

Hardware address/

User name

172.16.1.2          0100.1d09.d402.38       Mar 06 1993 04:12 AM    Automatic

The ipconfig /all on a Windows-based workstation would show the following:

101solutions_fig2

NOTE: If you have configured another Cisco IOS device as a DHCP client to test your configuration, you should see the following output:

 

R1#show dhcp server

DHCP server: ANY (255.255.255.255)

Leases:   2

Offers:   2      Requests: 2     Acks: 2     Naks: 0

Declines: 0      Releases: 3     Bad:  0

DNS0:   172.16.1.254,   DNS1:  172.16.2.254

NBNS0:  10.1.1.254,   NBNS1: 10.2.2.254

Subnet: 255.255.255.0   DNS Domain: howtonetwork.net

Prev

Next

About Us

This is a free bonus site for members of www.howtonetwork.com

Copyright

The content on this copyright Reality Press Ltd.
Copyright Reality Press Ltd.