internal DHCP Server

Post Reply
almatel

internal DHCP Server

Post by almatel »

Hi all,
Can a 6850E switch act as a multi scope DHCP Server for Multi Vlans,if yes
So may You help to give an example( vlan 10 , vlan 20 ).
your help is appreciated .
Regards.
silvio
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 2087
Joined: 01 Jul 2008 10:51
Location: Germany

Re: internal DHCP Server

Post by silvio »

Hi,
your switch need ip interfaces in all your vlans where it act as dhcp server.
here an example of a dhcpd.conf file for 3 ranges:

Code: Select all

server-identifier alcatel-lucent.com;
      subnet 192.168.1.0 netmask 255.255.255.0 {
         dynamic-dhcp range 192.168.1.100 192.168.1.199 {
            option subnet-mask 255.255.255.0;
            option routers 192.168.1.1;
	    option domain-name-servers 8.8.8.8;
            option dhcp-lease-time 900;
 }}
      subnet 192.168.2.0 netmask 255.255.255.0 {
         dynamic-dhcp range 192.168.2.100 192.168.2.199 {
            option subnet-mask 255.255.255.0;
            option routers 192.168.2.1;
	    option domain-name-servers 8.8.8.8;
            option dhcp-lease-time 900;
  }}
      subnet 192.168.3.0 netmask 255.255.255.0 {
         dynamic-dhcp range 192.168.3.100 192.168.3.199 {
            option subnet-mask 255.255.255.0;
            option routers 192.168.3.1;
	    option domain-name-servers 8.8.8.8;
            option dhcp-lease-time 900;
   }}
regards
Silvio
almatel

Re: internal DHCP Server

Post by almatel »

thank you Silvio for your help,but...
should I configured that in dhcpd.conf file only (referring to doc.)

1 Navigate to /flash/switch directory.
-> cd /flash/switch
2 Copy the dhcpd.conf.template file and save it as dhcpd.conf. The dhcpd.conf file can then be
customized as necessary.

-> cp dhcpd.conf.template dhcpd.conf

4 Customize the dhcp.conf and dhcpd.pcy files according to your requirements. Use the vi command to
modify the existing configuration file.

-> vi dhcpd.conf
and restart & enable the dhcp server. that's all ?
Is it working fine.... no common issues you have faced.
please advise.
regards.
silvio
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 2087
Joined: 01 Jul 2008 10:51
Location: Germany

Re: internal DHCP Server

Post by silvio »

correct. You can create and edit the fiel with vi. Or you copy it via FTP or USB from you computer to the directory. Also there must be an empty file dhcpd.pcy. Than you have to enable and restart dhcp server with AOS command. You will find some posts in the forum (it is the same at all omniswitches).
regards
Silvio
almatel

Re: internal DHCP Server

Post by almatel »

hi, silvio
thanks allot
yasirsattar06

Re: internal DHCP Server

Post by yasirsattar06 »

Hi Silvio,

If i have two Domain-Name -Servers, how i'll configure second Domain-Name -Server in dhcp pool?
Current configuration is as below:

server-identifier alcatel-lucent.com;

subnet 10.1.1.0 netmask 255.255.255.0
{
dynamic-dhcp range 10.1.1.1 10.1.1.150
{
option subnet-mask 255.255.255.0;
option routers 10.1.1.254;
option domain-name-servers 192.168.8.1;
option dhcp-lease-time 900;
}
}
I have second domain-name-server 10.1.1.10.

Regards,
devnull

Re: internal DHCP Server

Post by devnull »

It will probably be

option domain-name-servers 192.168.8.1, 8.8.8.8;

If its not working try

option domain-name-servers 192.168.8.1 8.8.8.8;
Post Reply

Return to “OmniSwitch 6850 / 6850E”