cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
851
Views
0
Helpful
10
Replies

Getting vlan interface address from dhcp server

se9672865898
Level 1
Level 1

Hi all. Switch nexus 5548, I need to assign ip address to vlan interface via dhcp.
In catalyst series I did it like this:
interface FastEthernet0/23
ip address dhcp
In nexus I get an error:
% Invalid ip address at '^' marker.
Could you please tell me how to configure how to get ip address on vlan interface from dhcp server?

BIOS: version 3.6.0

system: version 7.3(13)N1(1)

10 Replies 10

Try add 

Feature dhcp

And check again 

se9672865898
Level 1
Level 1

Didn't help, that option doesn't even exist

Do you add feature dhcp in global mode ?

you dont confirm that DHCP feature add or not ?

Yeah, that's what I did, but it didn't work.

Use any port  

No switchport <<- make it l3 port 

Ip add dhcp 

See if l3 port is accpet this dhcp' if it accpet then it HW limitations that not allow this command under SVI.

balaji.bandi
Hall of Fame
Hall of Fame
 I need to assign ip address to vlan interface via dhcp.

So based on the discussion here, you looking VLAN SIV Interface to get DHCP IP address from server.

1. Make sure the interface connected to outside towards DHCP Server should belong to same VLAN

example in your case interface FastEthernet0/23 - to be in VLAN 170

2. Make sure you created VLAN 170 in global mode and (i guess you already added feature DHCP)

3. SVI VLAN

feature interface-vlan

follow below guide :

https://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus5000/sw/interfaces/521_N11/b_5k_Interfaces_Config_Guide_Release_521N11/b_5k_Interfaces_Config_Guide_Release_521N11_chapter_011.html

4. then add DHCP configuration to get DHCP Address. (make sure DHCP Server in the same VLAN 170 to get IP address)

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

se9672865898
Level 1
Level 1

I reset the switch settings with the write erase command, then reload to check again
In the end I could not get an address from the DHCP server
The server itself is in the same vlan, other switches in my network get the address without problems.
Is this a hardware or software limitation?
Could you please tell me how to check this?
In this manual there is no item about receiving ip address from dhcp server, so my switch does not support this function?
https://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus5000/sw/interfaces/521_N11/b_5k_Interfaces_Config_Guide_Release_521N11/b_5k_Interfaces_Config_Guide_Release_521N11_chapter_011.html

Yes, I also check N9K and there is command ip add dhcp and it need feature dhcp only. 
but unfortualty N5K dont support DHCP clinet. 
you can contact Cisco TAC to more sure about this feature in this platform.
MHM

can you post show run and enable debug and see why IP address not getting ?

what is other device where this nexus connected, post the port config

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help