cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1047
Views
0
Helpful
5
Replies

Nexus 3500 - Second DHCP server

geeksy
Level 1
Level 1

Hi folks, hope someone can help.

 

I currently have a Linux DHCP server sitting in a VLAN behind the NXS. All hosts in this VLAN get IP from the Linux server. I want to configure a second DHCP server on a diffferent VLAN and intend to use dhcp relay feature to accomplish this. As with IOS, I was expecting the local server to respond to the DHCP requests first but on NX-IOS, it appears, the dhcp discover messages are not sent to local DHCP and instead I am getting IPs only from the remote DHCP server.

 config I used was - ip dchp relay address x.x.x.x

 

Is there a way of chosing local as primary and remote as secondary?

 

Many thanks in advance,

GK

2 Accepted Solutions

Accepted Solutions

Reza Sharifi
Hall of Fame
Hall of Fame

Hi,

Since DHCP relies on the broadcast for the initial DHCP discover prosses, either the DHCP server or the DHCP relay agent must be on the same network.  In your case the Linux server is local and should be the primary and provide the IP. I know this does not make sense, but For testing purposes, can you configure both DHCP IPs with local Linux as the first one and the remote device as the second one?

ip dchp relay address x.x.x.x (local Linux)

ip dchp relay address x.x.x.x (remote Linux)

HTH

View solution in original post

Yachay
Level 1
Level 1

Let me know if I am wrong:

 

Your users and the primary DHCP server are in the same VLAN (let's say VLAN 10) and you have a second DHCP server in a new VLAN (VLAN 20.) SVI 10 was configured with the command 'ip dhcp relay address 20.20.20.1' but now, all clients are getting their IPs from the second DHCP server.

 

Well, that behavior is expected since all DHCP requests are being forwarded to the server configured in the ip dhcp relay command. 

 

You can try adding the first DHCP server: 'ip dhcp relay address 10.10.10.1' before the second one, or you can move the primary DHCP server to a different VLAN (VLAN 30) and to run the same command but with the new IP.

View solution in original post

5 Replies 5

Reza Sharifi
Hall of Fame
Hall of Fame

Hi,

Since DHCP relies on the broadcast for the initial DHCP discover prosses, either the DHCP server or the DHCP relay agent must be on the same network.  In your case the Linux server is local and should be the primary and provide the IP. I know this does not make sense, but For testing purposes, can you configure both DHCP IPs with local Linux as the first one and the remote device as the second one?

ip dchp relay address x.x.x.x (local Linux)

ip dchp relay address x.x.x.x (remote Linux)

HTH

Thanks both, will try adding both as DHCP relay and see how it goes.

 

Glad to help and good Luck!

Thanks both.
ip dchp relay address x.x.x.x (local Linux)
ip dchp relay address x.x.x.x (remote Linux)
Fixed my issue.

Appreciate your help.

Yachay
Level 1
Level 1

Let me know if I am wrong:

 

Your users and the primary DHCP server are in the same VLAN (let's say VLAN 10) and you have a second DHCP server in a new VLAN (VLAN 20.) SVI 10 was configured with the command 'ip dhcp relay address 20.20.20.1' but now, all clients are getting their IPs from the second DHCP server.

 

Well, that behavior is expected since all DHCP requests are being forwarded to the server configured in the ip dhcp relay command. 

 

You can try adding the first DHCP server: 'ip dhcp relay address 10.10.10.1' before the second one, or you can move the primary DHCP server to a different VLAN (VLAN 30) and to run the same command but with the new IP.

Review Cisco Networking products for a $25 gift card