Getting vlan interface address from dhcp server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2023 09:06 AM
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)
- Labels:
-
Cisco Software
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2023 09:14 AM
Try add
Feature dhcp
And check again
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2023 09:21 AM - edited 11-14-2023 09:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2023 09:25 AM
Do you add feature dhcp in global mode ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2023 10:22 AM
you dont confirm that DHCP feature add or not ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2023 10:13 PM
Yeah, that's what I did, but it didn't work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2023 11:12 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2023 01:55 AM
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 :
4. then add DHCP configuration to get DHCP Address. (make sure DHCP Server in the same VLAN 170 to get IP address)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2023 06:03 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2023 06:17 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2023 02:48 PM
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
