cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
396
Views
0
Helpful
1
Replies

how do I configure my switch port as a PC (virtual client) with DHCP?

Hi, I have created some new vlan- xyz and I want to test my DHCP request works as expected, since there is no end users at this time to test it, i tried to simulate with the below config, but i am not receiving any IP address, i have pasted the debug output also below.. please advice if i am missing something in the config? or need to work with my firewall team to allow any rules? Appreciate your time and help.

 

Note - I masked the vlan info with xyz in the below config and debug output.

 

 interface vlan xyz

ip dhcp client client-id ascii ASW12
ip address dhcp
end

 

 

Dec 14 14:15:58.762: DHCP: SDiscover attempt # 3 for entry:
Dec 14 14:15:58.762: DHCP Lease server: 0.0.0.0, state: 3 Selecting
Dec 14 14:15:58.762: DHCP transaction id: 1920
Dec 14 14:15:58.762: DHCP: SDiscover placed class-id option: 636973636F706E70
Dec 14 14:15:58.763: DHCP: SDiscover: sending 292 byte length DHCP packet
Dec 14 14:15:58.763: DHCP: SDiscover 292 bytes
Dec 14 14:16:02.761: DHCP: QScan: Timed out Selecting state%Unknown DHCP problem.. No allocation possible
Dec 14 14:16:11.748: DHCP: Waiting for 20 seconds on interface Vlanxyz
Dec 14 14:16:31.749: DHCP: Try 5 to acquire address for Vlan320
Dec 14 14:16:31.755: DHCP: allocate request
Dec 14 14:16:31.755: DHCP: zapping entry in DHC_PURGING state for Vlxyz
Dec 14 14:16:31.755: DHCP: deleting entry 463D4F44 0.0.0.0 from list
Dec 14 14:16:31.756: DHCP Lease server: 0.0.0.0, state: 11 Purging
Dec 14 14:16:31.756: DHCP transaction id: 1920
Dec 14 14:16:31.756: DHCP: new entry. add to queue, interface Vlanxyz
Dec 14 14:16:31.756: DHCP: MAC address specified as 0000.0000.0000 (0 0). Xid is 1921

1 Reply 1

Hello

It wont work unless you have a routed interface related to the vlan 

example: L3/L2 switch interconnect via a trunk

L3 switch

int vlan 10
ip address 10.1.12.1 255.255.255.0


ip dhcp pool lan
network 10.1.12.0/24
default 10.1.12.1
lease 0 8

L2 switch
int vlan 10

no shut
ip address dhcp


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul
Review Cisco Networking for a $25 gift card