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

SG500 DHCP server with multiple name servers

dloeliger
Level 1
Level 1

Hello,

Is it possible to configure the DHCP server to give to the clients several DNS IP addresses?

In the web GUI it's only possible to configure one IP in optin 6.

 

Thanks,

Daniel

1 Accepted Solution

Accepted Solutions

NeilGouws
Level 1
Level 1

Hi There

yes it is ..., I haven't managed to work via the graphical interface yet, but have done the following on the command line of a "Cisco" SG500x, so far I'm not a big fan of these switches ... !

 

Note that for you to enable the DHCP server you have to specify an IP Address for the VLAN interface (your DHCP server has to have a static IP)

 

here is an example of config :

interface vlan 1
 ip address 10.1.1.1 255.255.255.0
 no ip address dhcp

ip dhcp server

ip dhcp excluded-address 10.1.1.1 10.1.1.10
ip dhcp pool network DATA
 address low 10.1.1.1 high 10.1.1.254 255.255.255.0
 lease 0 8
 domain-name testing.com
 default-router 10.1.1.1
 dns-server 8.8.8.8 8.8.4.4

 

Hope it answers your question

View solution in original post

5 Replies 5

 

Below is how you would do it from the cli on a router

ip dhcp pool Wireless_DHCP
   network 10.40.40.x 255.255.255.0
   default-router 10.40.40.251
   dns-server 10.10.10.10 20.20.20.20

 

I just tested this but I get an error message Unrecognized command... 

It's quite strange as the CLI manual for the SG500 (I just found it on Internet) specifies this.

 

Even Enabling or disablig the server is not working:

ip dhcp server or no ip dhcp server is unrecognized...

Really strange. I'm new to using the CLI on Cisco switches, so I might have made a mistake...?

 

N01010101
Level 1
Level 1

Cisco must provide option to add more DNS IP addresses via GUI.

NeilGouws
Level 1
Level 1

Hi There

yes it is ..., I haven't managed to work via the graphical interface yet, but have done the following on the command line of a "Cisco" SG500x, so far I'm not a big fan of these switches ... !

 

Note that for you to enable the DHCP server you have to specify an IP Address for the VLAN interface (your DHCP server has to have a static IP)

 

here is an example of config :

interface vlan 1
 ip address 10.1.1.1 255.255.255.0
 no ip address dhcp

ip dhcp server

ip dhcp excluded-address 10.1.1.1 10.1.1.10
ip dhcp pool network DATA
 address low 10.1.1.1 high 10.1.1.254 255.255.255.0
 lease 0 8
 domain-name testing.com
 default-router 10.1.1.1
 dns-server 8.8.8.8 8.8.4.4

 

Hope it answers your question

Thanks, worked fine!

I forgot to enter in config terminal mode before entering commands...!

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: