Change dhcp server IP address

- Kone Bakenon - kone at univ-ouaga.bf
Sun Feb 18 16:30:17 UTC 2007


> Kone Bakenon - wrote:
>
>>I run dhcp server on IPcop server and it's not working properly. My
>>network is subnetted in Vlan 3 and Vlan 4.
>>The first time when a computer is on Vlan 3 or 4, it takes a good
>>parameters but if the same computer is moved to another Vlan, only the IP
>>address of dhcp server is the same but all the parameters changes.
>>The IP address for dhcp server should be 172.16.0.1 on Vlan 3 and
>>172.16.16.1 on Vlan 4.
>>How can i change automaticaly the IP address for the server in this case.
>
> I don't follow, why does the DHCP server address have to change ?
>
> As long as the network will route packets between the client and
> server then it should all just work, if it doesn't then the network
> is broken.
>
> Can you post your config and a description of the network ?
>

Here you have my dhcpd.conf
subnet 172.16.0.0 netmask 255.255.240.0
{
	range 172.16.1.1 172.16.15.254;
	option subnet-mask 255.255.240.0;
	option routers 172.16.0.1;
	option broadcast-address 172.16.15.255;
	option domaine-name "mydomain.bf";
	option domaine-name-servers 206.82.130.195;
	default lease-time 3600;
	max-lease-time 7200;
}

subnet 172.16.16.0 netmask 255.255.240.0
{
	range 172.16.16.2 172.16.31.254;
	option subnet-mask 255.255.240.0;
	option routers 172.16.16.1;
	option broadcast-address 172.16.31.255;
	option domaine-name "mydomain.bf";
	option domaine-name-servers 206.82.130.195;
	default lease-time 3600;
	max-lease-time 7200;
}

Thanks,
---------
Koné



More information about the dhcp-users mailing list