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 69 Solution: Configuring IOS DHCP Clients

Lab 69 Solution: Configuring IOS DHCP Clients

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 100

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 100

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#conf t

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

R1(config)#int fa0/0

R1(config-if)#ip address dhcp

R1(config-if)#no shutdown

R1(config-if)#end

*Mar  1 02:25:29.029: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up

*Mar  1 02:25:30.030: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

*Mar  1 02:25:33.164: %DHCP-6-ADDRESS_ASSIGN: Interface FastEthernet0/0 assigned DHCP address 192.168.20.3, mask 255.255.255.0, hostname R1

R1#

NOTE: When you see the log message %DHCP-6-ADDRESS_ASSIGN: you know that your device has been assigned an IP address via DHCP. Verify that the interface specified is the one you configured for DHCP.

R1#show ip interface fastethernet 0/0

FastEthernet0/0 is up, line protocol is up

Internet address is 192.168.20.3/24

Broadcast address is 255.255.255.255

Address determined by DHCP

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

NOTE: From the above output, we can see that the DHCP server provided us with two DNS servers as specified by the line: DNS0:   172.16.1.254,   DNS1:  172.16.2.254 as well as two WINS servers, as specified by the line NBNS0:  10.1.1.254,   NBNS1: 10.2.2.254. The Subnet mask is /24 and the DNS domain provided is howtonetwork.net. If a workstation, such as a Windows-based computer were provided IP addressing information from the same DHCP server and we issued ipconfig /all at the command prompt, we would see:

 

101solutions_fig1

 

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.