Компьютерный форум OSzone.net  

Компьютерный форум OSzone.net (http://forum.oszone.net/index.php)
-   Сетевые технологии (http://forum.oszone.net/forumdisplay.php?f=31)
-   -   Поднятие DHSP сервера на win XP. (http://forum.oszone.net/showthread.php?t=71799)

emos 19-06-2004 00:24 262466

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 262467

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.

Sadok 19-06-2004 08:53 262468

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 :)

mb 20-06-2004 15:06 262469

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

EVK 25-06-2004 13:04 262470

Конечно может!

Andy_user 25-06-2004 17:18 262471

How to Change the IP Range for the ICS DHCP Service:
http://support.microsoft.com/default...b;en-us;230148
How to Configure a Permanent IP Address for Network Devices
http://support.microsoft.com/default...b;en-us;230150


[s]Исправлено: Andy_user, 17:27 25-06-2004[/s]

mb 25-06-2004 19:10 262472

Andy_user
вообще-то тут про XP Pro спрашивают, а не про  Win ME и W98

TimAlex 23-09-2006 16:21 488595

Поднятие DHSP сервера на win XP.
 
Часто работаю спрограмным обеспечением WTware. Для загрузки по сети необходимо поднимать DHSP. C сервернаыми win 2000 и 2003 проблем нет, а вот с win xp траблы. Может кто подскажет, что можно поднять?

ShaddyR 23-09-2006 16:45 488606

tftpd32 тебе в помощь.

TimAlex 25-09-2006 07:27 489054

Цитата:

tftpd32 тебе в помощь.
Извини но не подошел :idontnow: .

Надо что бы было, если по майкросовтовским праматрам, - 074 и 067
а точнее:
018 - это путь расширений
066 - это имя сервера загрузки
067 - имя файла загрузки
074 - Серверы IRC

там есть тока 66 и 67 и то если используешь свой TFTP

XXXler 25-09-2006 07:49 489060

Цитата:

Извини но не подошел
чем именно он не подошел?

TimAlex 26-09-2006 08:01 489600

Цитата:

Надо что бы было, если по майкросовтовским праматрам, - 074 и 067
а точнее:
018 - это путь расширений
066 - это имя сервера загрузки
067 - имя файла загрузки
074 - Серверы IRC

там есть тока 66 и 67 и то если используешь свой TFTP
Вот тем и не подошел.

XXXler 26-09-2006 11:33 489685

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 находишь\создаешь значения вида:
  1. AddOptionNumber<N> - тип DWORD, в его значении указывается в десятичном режиме номер параметра DHCP.
  2. 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:
  1. в названии параметра указываем MAC-адрес компьютера, для которого нужно задать статический IP
  2. в значении параметра указываем нужный 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 26-09-2006 11:40 489687

Сейчас проверю. :moil:

XXXler 26-09-2006 11:41 489689

TimAlex, есть встроенный TFTP - почему-бы его и не использовать?

З.Ы. Н-дя, WTware - из бесплатной Thinstatation сделали платную софтину, чтож, может хоть бОльшую поддержку железа реализовали или GUI для редактирования настроек...

TimAlex 29-09-2006 20:14 491368

XXXler
Цитата:

TimAlex, есть встроенный TFTP - почему-бы его и не использовать?
Про каккой именно ты говоришь, про тот что в WTware?? Да, есть, но вот н задача, как ни пробЫвал, ни загружает....
Пробывал и TFTP из WTware, и из tftpd32.... раздаёт адрес но не грузится (.
Если использовать возможности сервачной винды(2к, 2003) все летает.


Время: 02:11.

Время: 02:11.
© OSzone.net 2001-