|
rose4cat
初级用户
 
积分 46
发帖 20
注册 2008-10-10
状态 离线
|
『楼 主』:
网络启动:想得到服务器IP地址的问题
使用 LLM 解释/回答一下
请教,我 用mousedos驱动网卡后,想运行netset.exe,(源自xugaohui的网络部署内的工具,可改计算名,得到TFTP与DHCP的IP地址)但不成功,提示需要文件,请问:他具体还需要哪些文件
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?
|
|
2008-11-10 16:13 |
|
|
BWSkyer
中级用户
   我是DOS学者
积分 367
发帖 180
注册 2006-5-14 来自 重庆
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
这个问xugaohui比较清楚, 没有用过你说的netset.exe工具..
mousedos是网卡驱动? 奇怪..看名字是mouse驱动才对啊..
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..
|

My blog:左铅右椠 上善若水
My team: 519创意团队 |
|
2008-11-10 16:23 |
|
|
rose4cat
初级用户
 
积分 46
发帖 20
注册 2008-10-10
状态 离线
|
|
2008-11-10 16:31 |
|
|
rose4cat
初级用户
 
积分 46
发帖 20
注册 2008-10-10
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
纯DOS下 有没有好的方法得到DHCP或TFTP的IP地址,并SET 将其 赋入一变量
In pure DOS, is there a good way to obtain the DHCP or TFTP IP address and SET it into a variable
|
|
2008-11-10 16:32 |
|
|
rose4cat
初级用户
 
积分 46
发帖 20
注册 2008-10-10
状态 离线
|
|
2008-11-10 16:33 |
|
|
rose4cat
初级用户
 
积分 46
发帖 20
注册 2008-10-10
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
再顶,求DOS下得到DHCP与TFTP服务IP的方法并赋值给变量的方法
Bump again, seeking methods to obtain DHCP and TFTP service IPs under DOS and assign them to variables
|
|
2008-11-10 20:05 |
|
|
xugaohui
高级用户
   
积分 774
发帖 293
注册 2003-4-16 来自 湖北仙桃
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
缺少文件是netset.exe不能用于mousedos.这个要调用其它程序检测网卡型号的.
你单独使用当然不行了.
你试试重下载看行不行,为了减小tftpboot的大小,就改动了netset.exe,暂时只在虚拟机上测过了.如果还出错的话把网上型号报上来.
dos下是可以获取dhcp服务端传给客户端所有数据的.
我是通过在内存中搜索数据的方法来获取dhcp数据包的.就是query.exe这个软件.用qbasic编写的.执行时显示 dhcp服务端的大部分信息,目前只获取常用的信息.然后生成一个批处理程序,用于设置tftpip环境变量.这方法很土,但这是获取有效有办法.能完美获取dhcp服务端(可以是路由器的)传到客户端的所有数据.
最初采用qbasic编写一个网络程序.但qbasic只能编写基于packet驱动的程序.这种方法获取的dhcp数据不准确.对于路由器或老版本hanewin dhcp还可以.很容易出错.用ndis2驱动网卡时就不能用了.最后想到一个办法.在内存里面搜索.
既可以用于packet驱动也可以用于ndisk2驱动.每次都能准确的获取到数据.
你这样问题论坛上好多人提到过.网上的回答都是编写WATTCP程序,这就不能用于ndis2驱动了.而且我完全不会c语言.
Last edited by xugaohui on 2008-11-10 at 23:03 ]
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 提供空间 |
|
2008-11-10 22:33 |
|
|
rose4cat
初级用户
 
积分 46
发帖 20
注册 2008-10-10
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
自已写QB网络程序 pf
我试过 ipconfg上 但只有本地IP与网关IP,唯独没有server ID ip
query 运行后显示out of range ,是不是内存不够还是要何种参数
Last edited by rose4cat on 2008-11-11 at 12:49 ]
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
|
|
2008-11-11 12:39 |
|
|
xugaohui
高级用户
   
积分 774
发帖 293
注册 2003-4-16 来自 湖北仙桃
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
只能在启动网络后不执行其它程序的情况下才能显示ip.最好是配合批处理一起使用.建意你看看netd.bat这个批处理.
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 提供空间 |
|
2008-11-11 19:31 |
|
|
rose4cat
初级用户
 
积分 46
发帖 20
注册 2008-10-10
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
我看了下你的批处理,netset这个批处理已加密,好似运行这个程序内的某部分,query 就可以正常?
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?
|
|
2008-11-11 20:36 |
|
|
rose4cat
初级用户
 
积分 46
发帖 20
注册 2008-10-10
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
我在MOUSEDOS下的 quickgho.bat前执行仍然不行 显示out of range
I still can't do it before executing quickgho.bat under MOUSEDOS, and it shows "out of range".
|
|
2008-11-11 21:00 |
|
|
rose4cat
初级用户
 
积分 46
发帖 20
注册 2008-10-10
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
我用query 有时可以查询到 siaddr,可指定为路由器的地址,不为我TFTP与DHCP地址,
用xugaohui的TFTPBOOT的镜像,有时是路由器的地址,有时为正确的TFTP的IP地址,
为什么我的一直不行,超级郁闷
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
|
|
2008-11-12 16:38 |
|
|
xugaohui
高级用户
   
积分 774
发帖 293
注册 2003-4-16 来自 湖北仙桃
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
你直接用我那个软件包不就OK了.query获取的一定是对的.ms tcp和ibm tcp都有可能获取到dhcp服务和或路由器dhcp分配的ip,imb 通常是获取dhcp服务的信息.如果是你使用ms ipx netbeui 和packet驱动的.大多数据获取的是路由器分配的ip.query是在本机内存中去找ip.它跟网络无关.至少我的tftpboot还没有遇到out of range 错误提示.如果我遇到这个提示了就需要改程序了.
mousedos停止更新了,而且本身支持的网卡就少.tftpboot是最完美的.
没有必要重复发明轮子.
批处理没有加密,只不过是在dos下编辑.你在cmd窗口下用edit就可以编辑了.
为了程序能用于ndis2驱动和packet驱动两种情况,采用在内存中找dhcp数据的办法比较合理.
Last edited by xugaohui on 2008-11-12 at 17:02 ]
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 提供空间 |
|
2008-11-12 16:56 |
|
|
rose4cat
初级用户
 
积分 46
发帖 20
注册 2008-10-10
状态 离线
|
『第 14 楼』:
使用 LLM 解释/回答一下
你的TFTPBOOT确实方便,不过我不需要开机改计算机名这些功能,只需要部分我适用的功能,况且你的这个TFTPBOOT在我的网络环境中也多数获得是路由的IP地址
我的网络是用WDDRTt两个无线桥接的环境,主机用的windows2008 Ent版
在求问的同时也可以提高自己,可能是我表达的不清楚,我只需要在不同的网络环境下都能以很好的兼容PXE启动包
正所谓授人以鱼不如授人以渔,还请楼主赐教
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,楼主.
|
|
2008-11-12 18:21 |
|
|
xugaohui
高级用户
   
积分 774
发帖 293
注册 2003-4-16 来自 湖北仙桃
状态 离线
|
『第 15 楼』:
使用 LLM 解释/回答一下
都是在使用msclient,我们不能控制它是找dhcp或路由器的dhcp.我所测试的环境中98%是获取到dhcp服务器的ip,如果获取到路由器的dhcp那了没办法了.
现在获取方法是从内存中获取的.你可以把客户的ip信息与进入ghost网克的ip对比.绝对是一样的.
改计算名功能是在dos下运行的程序,与网络部分完全独立分开.
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 提供空间 |
|
2008-11-12 19:44 |
|