China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-25 03:27
中国DOS联盟论坛 » DOS媒体世界 & 网络技术 (多媒体室) » Network boot: question about getting the server IP address View 5,337 Replies 16
Original Poster Posted 2008-11-10 16:13 ·  中国 广东 中山 电信
初级用户
Credits 46
Posts 20
Joined 2008-10-10 16:00
17-year member
UID 127997
Gender Male
Status Offline
Ask, I used mousedos to drive the network card, and then wanted to run netset.exe (from the network deployment tools of xugaohui, which can change the computer name and get the IP addresses of TFTP and DHCP), but it didn't work, and it prompted that a file was needed. May I ask: what specific other files does it need?
Floor 2 Posted 2008-11-10 16:23 ·  中国 上海 上海电信科技发展有限公司(中山南路111号)
中级用户
★★
我是DOS学者
Credits 367
Posts 180
Joined 2006-05-14 10:53
20-year member
UID 55507
Gender Male
From 重庆
Status Offline
This question is clearer to xugaohui. I haven't used the netset.exe tool you mentioned..

Mousedos is a network card driver? Strange.. It seems like it should be a mouse driver by name..
Floor 3 Posted 2008-11-10 16:31 ·  中国 广东 中山 电信
初级用户
Credits 46
Posts 20
Joined 2008-10-10 16:00
17-year member
UID 127997
Gender Male
Status Offline
mousedos is the mousedos toolbox, a universal network card driver toolbox for network cloning
The following is the website
http://www.mousedos.com/
Floor 4 Posted 2008-11-10 16:32 ·  中国 广东 中山 电信
初级用户
Credits 46
Posts 20
Joined 2008-10-10 16:00
17-year member
UID 127997
Gender Male
Status Offline
In pure DOS, is there a good way to obtain the DHCP or TFTP IP address and SET it into a variable
Floor 5 Posted 2008-11-10 16:33 ·  中国 广东 中山 电信
初级用户
Credits 46
Posts 20
Joined 2008-10-10 16:00
17-year member
UID 127997
Gender Male
Status Offline
Floor 6 Posted 2008-11-10 20:05 ·  中国 广东 中山 电信
初级用户
Credits 46
Posts 20
Joined 2008-10-10 16:00
17-year member
UID 127997
Gender Male
Status Offline
Bump again, seeking methods to obtain DHCP and TFTP service IPs under DOS and assign them to variables
Floor 7 Posted 2008-11-10 22:33 ·  中国 广东 揭阳 电信
高级用户
★★
Credits 774
Posts 293
Joined 2003-04-16 00:00
23-year member
UID 1579
Gender Male
From 湖北仙桃
Status Offline
The missing file is that netset.exe cannot be used with mousedos. This needs to call other programs to detect the network card model.
Of course you can't use it alone.
You can try downloading again to see if it works. In order to reduce the size of tftpboot, netset.exe was modified. It has only been tested on the virtual machine for the time being. If it still has an error, report the online model.
Under DOS, you can obtain all the data passed by the DHCP server to the client.
I get the DHCP packet by searching the data in memory. It's the software called query.exe. Written with qbasic. When executed, it displays most of the information of the DHCP server. Currently only common information is obtained. Then a batch program is generated to set the tftpip environment variable. This method is crude, but this is an effective way. It can perfectly obtain all the data passed from the DHCP server (which can be a router) to the client.
Originally, a network program was written with qbasic. But qbasic can only write programs based on the packet driver. The DHCP data obtained by this method is inaccurate. It's okay for routers or old versions of hanewin DHCP. It's easy to make mistakes. When using the ndis2 driver network card, it can't be used. Finally, an idea came up. Search in memory.
It can be used for both the packet driver and the ndisk2 driver. The data can be accurately obtained each time.
This kind of problem has been mentioned by many people on the forum. The answers on the Internet are all writing WATTCP programs, which can't be used for the ndis2 driver. And I don't know C language at all.

[ Last edited by xugaohui on 2008-11-10 at 23:03 ]
下载
09年7月7日 更新
感谢网友 囧HQY 提供空间
Floor 8 Posted 2008-11-11 12:39 ·  中国 广东 中山 电信
初级用户
Credits 46
Posts 20
Joined 2008-10-10 16:00
17-year member
UID 127997
Gender Male
Status Offline
Write your own QB network program pf
I tried ipconfig, but there are only local IP and gateway IP, and there is no server ID ip at all
After running query, it shows out of range, is it because of insufficient memory or what parameters are needed
Floor 9 Posted 2008-11-11 19:31 ·  中国 广东 揭阳 电信
高级用户
★★
Credits 774
Posts 293
Joined 2003-04-16 00:00
23-year member
UID 1579
Gender Male
From 湖北仙桃
Status Offline
It can only display the IP when the network is started and no other programs are executed. It is best to use it together with batch processing. It is suggested that you take a look at the netd.bat batch processing.
下载
09年7月7日 更新
感谢网友 囧HQY 提供空间
Floor 10 Posted 2008-11-11 20:36 ·  中国 广东 中山 电信
初级用户
Credits 46
Posts 20
Joined 2008-10-10 16:00
17-year member
UID 127997
Gender Male
Status Offline
I took a look at your batch script. The netset batch script is encrypted. It seems that if you run a certain part within this program, the query can work normally?
Floor 11 Posted 2008-11-11 21:00 ·  中国 广东 中山 电信
初级用户
Credits 46
Posts 20
Joined 2008-10-10 16:00
17-year member
UID 127997
Gender Male
Status Offline
I still can't do it before executing quickgho.bat under MOUSEDOS, and it shows "out of range".
Floor 12 Posted 2008-11-12 16:38 ·  中国 广东 中山 电信
初级用户
Credits 46
Posts 20
Joined 2008-10-10 16:00
17-year member
UID 127997
Gender Male
Status Offline
I use query and sometimes can query the siaddr, which can be specified as the router's address, not my TFTP and DHCP address.
Using xugaohui's TFTPBOOT image, sometimes it's the router's address, sometimes it's the correct TFTP IP address.
Why is mine always not working? Super depressed
Floor 13 Posted 2008-11-12 16:56 ·  中国 广东 揭阳 电信
高级用户
★★
Credits 774
Posts 293
Joined 2003-04-16 00:00
23-year member
UID 1579
Gender Male
From 湖北仙桃
Status Offline
Why not just use my software package? The IP obtained by query is definitely correct. Both MS TCP and IBM TCP may obtain the IP assigned by DHCP service or the router's DHCP. IBM usually obtains the information of DHCP service. If you are using MS IPX NetBEUI and Packet driver, most of the obtained IP is assigned by the router. Query is to find the IP in the local memory. It has nothing to do with the network. At least my tftpboot has not encountered the "out of range" error prompt. If I encounter this prompt, I need to modify the program.

mousedos has stopped updating, and it itself supports few network cards. tftpboot is the most perfect one.

There is no need to reinvent the wheel.

The batch file is not encrypted, but it is just edited under DOS. You can edit it with edit in the cmd window.

In order to make the program applicable to both NDIS2 driver and Packet driver situations, it is more reasonable to use the method of finding DHCP data in the memory.

[ Last edited by xugaohui on 2008-11-12 at 17:02 ]
下载
09年7月7日 更新
感谢网友 囧HQY 提供空间
Floor 14 Posted 2008-11-12 18:21 ·  中国 广东 中山 电信
初级用户
Credits 46
Posts 20
Joined 2008-10-10 16:00
17-year member
UID 127997
Gender Male
Status Offline
Your TFTPBOOT is indeed convenient, but I don't need the functions like changing the computer name at boot. I just need some functions that are applicable to me. Moreover, in my network environment, most of the time your TFTPBOOT gets the IP address of the router. My network is an environment where two wireless bridges of WDDRTt are used, and the host uses Windows 2008 Ent edition. While asking for advice, I can also improve myself. Maybe I didn't express clearly. I just need to be able to be well compatible with PXE boot packages in different network environments. Just as it's better to teach a man to fish than to give him fish, please give me some advice,楼主.
Floor 15 Posted 2008-11-12 19:44 ·  中国 广东 揭阳 电信
高级用户
★★
Credits 774
Posts 293
Joined 2003-04-16 00:00
23-year member
UID 1579
Gender Male
From 湖北仙桃
Status Offline
All are using msclient, we can't control whether it is looking for DHCP or the router's DHCP. In the environment I tested, 98% get the IP from the DHCP server. If it gets the router's DHCP, there's no way. Now the acquisition method is from memory. You can compare the client's IP information with the IP for entering Ghost network cloning. They are definitely the same. The function to change the computer name is a program running under DOS, completely independent from the network part.
下载
09年7月7日 更新
感谢网友 囧HQY 提供空间
Forum Jump: