cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3518
Views
5
Helpful
4
Replies

SG500 dhcp relay for two different dhcp servers

ANT2CISCO
Level 1
Level 1

Hi there.

I have Cisco SG500 in L3 mode.

Now I need to get ip addresses for vlans from two different external dhcp servers (for ex. 192.168.1.21 and 10.17.10.10).

 

For Cisco Catalyst it would looks something like this:

int vlan 100

   ip addr 10.100.10.1 255.255.255.0

   ip helper-addr 192.168.1.21

int vlan 110

   ip addr 10.150.20.1 255.255.255.0

   ip helper-addr 10.17.10.10

int vlan 120

   ip addr 10.200.20.1 255.255.255.0

   ip helper-addr 10.17.10.10

 

etc

....

Anyway to get this construction on SG500?

 

Thx

 

1 Accepted Solution

Accepted Solutions

Hi again,

You can try with relay again. Remove the helper command and go to vlan interface (10.150.20.1):

 

switchxxxxxx# config
switchxxxxxx(config)# interface vlan 30
switchxxxxxx(config-if)# ip dhcp relay enable
switchxxxxxx(config-if)# ip dhcp relay address 10.17.10.10

*Note: 

 

The operational status of DHCP Relay on an interface is active if one of the following conditions exist:
• DHCP Relay is globally enabled, and there is an IP address defined on the interface.
Or
• DHCP Relay is globally enabled, there is no IP address defined on the interface, the interface is a VLAN, and option 82 is enabled.

Up to 8 servers can be defined.

I'm adding you a link to CLI guide just in case:

http://www.cisco.com/c/dam/en/us/td/docs/switches/lan/csbms/Sx500/cli_guide/CLI_500.pdf

Hope it helps

Cheers,

Mike

View solution in original post

4 Replies 4

mipopov
Cisco Employee
Cisco Employee

Hello,

You can try something like this:

for the example given (vlan 100):

switchxxxxxx(config)# ip helper-address 10.100.10.1 192.168.1.21

 

for the example given (vlan 110):

switchxxxxxx(config)# ip helper-address 10.150.20.1 10.17.10.10

 

for the example given (vlan 120):

switchxxxxxx(config)# ip helper-address 10.200.20.1 10.17.10.10

Cheers,
Mike

Hi, Mike 
Thank you for your reply.

Would you clarify, do I have to keep global ip dhcp relay settings?
when I've used one external dhcp server, I've configured:
ip dhcp relay enable
ip dhcp relay address 192.168.1.21
+
ip dhcp relay enable
on interface vlan xxx,
and it works fine. But I have to add one more dhcp-server right now.

Just I've added
ip-helper address 10.150.20.1 10.17.10.10, but it didn't work: /

Hi again,

You can try with relay again. Remove the helper command and go to vlan interface (10.150.20.1):

 

switchxxxxxx# config
switchxxxxxx(config)# interface vlan 30
switchxxxxxx(config-if)# ip dhcp relay enable
switchxxxxxx(config-if)# ip dhcp relay address 10.17.10.10

*Note: 

 

The operational status of DHCP Relay on an interface is active if one of the following conditions exist:
• DHCP Relay is globally enabled, and there is an IP address defined on the interface.
Or
• DHCP Relay is globally enabled, there is no IP address defined on the interface, the interface is a VLAN, and option 82 is enabled.

Up to 8 servers can be defined.

I'm adding you a link to CLI guide just in case:

http://www.cisco.com/c/dam/en/us/td/docs/switches/lan/csbms/Sx500/cli_guide/CLI_500.pdf

Hope it helps

Cheers,

Mike

Hi, Mike.

Thank you for your help, it's really worked now. 

 

BTW, there is hidden command 'ip dhcp relay address xx.xx.xx.xx' on vlan interface.

When I've added the command, I saw there were two ip dhcp relay servers in the general configuration:

ip dhcp relay address 10.17.10.10.
ip dhcp relay address 192.168.1.21
ip dhcp relay enable

But there aren't appear any additional commands on the vlan interface:

interface vlan 150
 ip address 10.150.20.1 255.255.255.0
 ip dhcp relay enable

SG500, SW ver.1.4.9.4

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:

Switch products supported in this community
Cisco Business Product Family
  • CBS110
  • CBS220
  • CBS250
  • CBS350
Cisco Switching Product Family
  • 110
  • 200
  • 220
  • 250
  • 300
  • 350
  • 350X
  • 550X