cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1006
Views
20
Helpful
9
Replies

DHCP services on router

Robert3487
Level 1
Level 1

HI, I'm working through the ccna voice lab manual, i have the setup on the router up to the point of getting DHCP setup on the router. I added the commands in the book to setup dhcp on the router but then it moves to testing the connectivity. It says to then connect a pc to the switch and check to see if it gets a DHCP assigned address out of the Data vlan. To me it seems like there would have to be some additional configuration on the switch for this to hand out DHCP addresses right? This is the ccna voice lab book, step 6, for anyone that may have it. Needless to say it did not receive any IP address out of the data vlan. I know I can just open the properties of the adapter and manually assign an address but I want to understand why its not working. I can post the output of the router and switch if needed. 

 

1 Accepted Solution

Accepted Solutions

Hi,

You will have to debug dhcp traffic between your router and client. Run the following debug command on the router:

debug ip dhcp server packet detail

 

Thanks

John

**Please rate posts you find helpful**

View solution in original post

9 Replies 9

johnd2310
Level 8
Level 8

Hi,

 

Post the config of the router and the switch.

 

Thanks

John

**Please rate posts you find helpful**

 

It wouldnt let me post both configs at the same time. 

 

 

 

Hi,

 

You configs look fine. Can you confirm the vlan are created on the switch and active on the trunk. What is the output of "show vlan" and "show int trunk" on the switch?

 

thanks

John

 

**Please rate posts you find helpful**

Switch_1#
Switch_1#sh vlan

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa0/1, Gi0/1, Gi0/2
10   Data                             active    Fa0/2, Fa0/3, Fa0/4, Fa0/5
                                                Fa0/6, Fa0/7, Fa0/8, Fa0/9
                                                Fa0/10, Fa0/11, Fa0/12, Fa0/13
                                                Fa0/14, Fa0/15, Fa0/16, Fa0/17
                                                Fa0/18, Fa0/19, Fa0/20, Fa0/21
                                                Fa0/22, Fa0/23, Fa0/24
11   Management                       active
15   Voice                            active    Fa0/2, Fa0/3, Fa0/4, Fa0/5
                                                Fa0/6, Fa0/7, Fa0/8, Fa0/9
                                                Fa0/10, Fa0/11, Fa0/12, Fa0/13
                                                Fa0/14, Fa0/15, Fa0/16, Fa0/17
                                                Fa0/18, Fa0/19, Fa0/20, Fa0/21
                                                Fa0/22, Fa0/23, Fa0/24
1002 fddi-default                     act/unsup
1003 token-ring-default               act/unsup
1004 fddinet-default                  act/unsup
1005 trnet-default                    act/unsup

VLAN Type  SAID       MTU   Parent RingNo BridgeNo Stp  BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1    enet  100001     1500  -      -      -        -    -        0      0
10   enet  100010     1500  -      -      -        -    -        0      0
11   enet  100011     1500  -      -      -        -    -        0      0
15   enet  100015     1500  -      -      -        -    -        0      0
1002 fddi  101002     1500  -      -      -        -    -        0      0
1003 tr    101003     1500  -      -      -        -    -        0      0
1004 fdnet 101004     1500  -      -      -        ieee -        0      0
1005 trnet 101005     1500  -      -      -        ibm  -        0      0

Remote SPAN VLANs
------------------------------------------------------------------------------


Primary Secondary Type              Ports
------- --------- ----------------- ------------------------------------------

 

 

Switch_1#sh int trunk

Switch_1#sh int trunk

Switch_1#sh int trunk?
trunk

 

Hi,

 

Seems your trunk is not working. What interface on the switch connects to the router and what is the status of that interface?

 

Thanks

John

**Please rate posts you find helpful**

Complete rookie mistake, the interface on the router was down, I did a no shut on the port and now i get output from the sh int trunk command. Still getting an APIPA address for the ethernet connection to my computer instead of from the data VLAN. I'm connected to switchport 0/1, and to the fa0/1 port on the router. 

 

Switch_1#sh int trunk

Port        Mode             Encapsulation  Status        Native vlan
Fa0/1       on               802.1q         trunking      1

Port        Vlans allowed on trunk
Fa0/1       1-4094

Port        Vlans allowed and active in management domain
Fa0/1       1,10-11,15

Port        Vlans in spanning tree forwarding state and not pruned
Fa0/1       1,10-11,

Hi,

You will have to debug dhcp traffic between your router and client. Run the following debug command on the router:

debug ip dhcp server packet detail

 

Thanks

John

**Please rate posts you find helpful**

I figured it out, turns out the connection was setup for fa0/0 and I was plugged into fa0/1. I moved the connection over and got addresses for the phone and pc. Thanks for the help!

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card