Показать полную графическую версию : Поднятие DHSP сервера на win XP.
We have small network, all PCs are running WindowsXP Pro SP1.
One of the PC - let's name it "Server" have 2 NICs, and with simple ICS all other PCs can access Internet.
We use static IPs, and all is fine and works perfect!
But once there was a discuss:
"Is it possible all other PCs haven't static IP addresses, but dynamic?"
"Yes, I told, it's simple! - WinXP have builded internal DHCP allocator - it gives IPs from it's network address scope, 192.168.0.0/24!"
But when I was asked:
"Can every PC lease EXACTLY the same IP address all the time - DHCP with static IPs?" - I was shocked! I know, that DHCP allocator in WindowsXP Pro isn't possible to be tuned...
So, can this be realised: WinXP Pro SP1 to give via DHCP IP address to some PC depending only of it's MAC address? I know, that is possible with the help of extra software, like WinGate, or using server version of that OS, like Windows2000 Advanced Server, or Windows2003 Enterprise Server, for example. But the exact question is about WindowsXP Professional SP1 - can this OS be tuned with registry manipulation, or using some .ini or .cfg files, so every PC in LAN can lease exactly the same IP all the time, even after the lease period. And that IP is based ONLY on it's MAC address?
Thanks in advance!
P.S. And exuse me, that I'm using English instead Russian! :( I can almost free read your lovely language, but I'm not quite sure to speak or write in Russian!
Again: Thanks in advance!
DubleZero
19-06-2004, 00:59
Maybe you at least will try to use Russian in future? Becouse the number of people who could be able to help you will increase. May be something in your spelling wiil be incorrect, but here are manypeople who,probably, can help you, but don't understand English at all.
I have heard, Linux can act as DHCP server, but about Windows - I don't know.
emos
I know, that is possible with the help of extra software, like WinGate, or using server version of that OS
All is correct. Only so.
this OS be tuned with registry manipulation, or using some .ini or .cfg files
No, unfortunately... ICS is the сhildren's toy :)
emos
"Can every PC lease EXACTLY the same IP address all the time - DHCP with static IPs?" "
Imho by the ХP with ICS it to adjust LEASE is impossible, but it is possible to establish static addresses by comp of clients, static address It is established in options TCP of the client,
main thing that -
Only because the computer with ICS on internal NIC cannot have other address rather than 192.168.0.1 and all clients should is in the same network with it-192.168.0.0
In this case a gateway the computer with ICS and DNS adresses has been specified in options TCP of the client
sorry for my English
Andy_user
25-06-2004, 17:18
How to Change the IP Range for the ICS DHCP Service:
http://support.microsoft.com/default.aspx?scid=kb;en-us;230148
How to Configure a Permanent IP Address for Network Devices
http://support.microsoft.com/default.aspx?scid=kb;en-us;230150
Исправлено: Andy_user, 17:27 25-06-2004
Andy_user
вообще-то тут про XP Pro спрашивают, а не про Win ME и W98
Часто работаю спрограмным обеспечением WTware (http://www.wtware.ru/). Для загрузки по сети необходимо поднимать DHSP. C сервернаыми win 2000 и 2003 проблем нет, а вот с win xp траблы. Может кто подскажет, что можно поднять?
tftpd32 (http://moo.akacrasher.com/~philippej/tftpd32.html) тебе в помощь.
tftpd32 тебе в помощь.
Извини но не подошел :idontnow: .
Надо что бы было, если по майкросовтовским праматрам, - 074 и 067
а точнее:
018 - это путь расширений
066 - это имя сервера загрузки
067 - имя файла загрузки
074 - Серверы IRC
там есть тока 66 и 67 и то если используешь свой TFTP
Извини но не подошел
чем именно он не подошел?
Надо что бы было, если по майкросовтовским праматрам, - 074 и 067
а точнее:
018 - это путь расширений
066 - это имя сервера загрузки
067 - имя файла загрузки
074 - Серверы IRC
там есть тока 66 и 67 и то если используешь свой TFTP
Вот тем и не подошел.
1. Добавление других параметров DHCP:
Q: Does the DHCP server manages other options ?
A: Yes. You have to edit either the registry or the Ini file and change the AddOptionNumber<N> and AddOptionValue<N>. The values are string values unless they begin whith 0x followed by a hexadecimal value. Note that the special string '$IP$' will be replaced by the assigned IP address.
В переводе:
В ключе HKEY_LOCAL_MACHINE\SOFTWARE\TFTPD32\DHCP находишь\создаешь значения вида:
AddOptionNumber<N> - тип DWORD, в его значении указывается в десятичном режиме номер параметра DHCP.
AddOptionValue<N> - тип REG_SZ, значение параметра DHCP, указанного в AddOptionNumber<N>.
(в заначении допускается использование выражения $IP$ - оно возвращает присвоенный клиенту IP)
<N> - просто порядковый номер пары параметр\значение, от 1 до 10(?)
Пример:
REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\TFTPD32\DHCP]
"AddOptionNumber1"=dword:00000012 ;параметр 018(здесь оно указано в 16-ричном виде)
"AddOptionValue1"="blablabla" ;значение параметра 018
"AddOptionNumber2"=dword:0000004a ;параметр 074(здесь оно указано в 16-ричном виде)
"AddOptionValue2"="10.0.0.100" ;значение параметра 074
2. Присвоение статических IP:
Q: Can the DHCP server assign static IP ?
A: Yes. Create a new "string value" registry key under HKEY_LOCAL_MACHINE\SOFTWARE\TFTPD32\DHCP. The key's name will be the host's mac-address (ie 0A:0B:0C:0D:0E:0F). The key's data value will be the desired IP address (ie 192.168.1.2). See example.
Перевод:
В ветке HKEY_LOCAL_MACHINE\SOFTWARE\TFTPD32\DHCP создаем значение типа REG_SZ:
в названии параметра указываем MAC-адрес компьютера, для которого нужно задать статический IP
в значении параметра указываем нужный IP
З.Ы. Правда непонятно исключает он этот IP из выдаваемого диапазона или нет
Пример:
REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\TFTPD32\DHCP]
"00:14:85:05:44:85"="10.0.0.254"
3. Вместо реестра удобней использовать ini-файл:
Q: How do i use ini file instead of registry ?
A: Create an empty file called Tftpd32.ini in the same directory as Tftpd32.exe. Open the settings window, validate with OK, go into the DHCP Tab and click on Save. The configuration has now been saved into Tftpd32.ini.
В переводе:
Создаем в папке с Tftpd32.exe пустой файл с названием Tftpd32.ini, в программе щелкаем кнопку Settings, в окне настроек нажимаем OK, далее на вкладке DHCP нажимаем кнопку Save
Теперь все параметры реестра сохранены в Tftpd32.ini, и будет использоваться ini-файл, вместо настроек с реестра (структура файла абсолютно совпадает со структурой ветки HKEY_LOCAL_MACHINE\SOFTWARE\TFTPD32).
TimAlex, есть встроенный TFTP - почему-бы его и не использовать?
З.Ы. Н-дя, WTware - из бесплатной Thinstatation сделали платную софтину, чтож, может хоть бОльшую поддержку железа реализовали или GUI для редактирования настроек...
XXXler
TimAlex, есть встроенный TFTP - почему-бы его и не использовать?
Про каккой именно ты говоришь, про тот что в WTware?? Да, есть, но вот н задача, как ни пробывал, ни загружает....
Пробывал и TFTP из WTware, и из tftpd32.... раздаёт адрес но не грузится (.
Если использовать возможности сервачной винды(2к, 2003) все летает.
© OSzone.net 2001-2012
vBulletin v3.6.4, Copyright ©2000-2025, Jelsoft Enterprises Ltd.
Available in ZeroNet 1osznRoVratMCN3bFoFpR2pSV5c9z6sTC