无头 Linux -> 向 Windows 工作站广播 IP?
我想向 SOHO 用户出售无头 Linux 服务器。 通常,他们将拥有一个支持 DHCP 的 ADSL 调制解调器兼交换机,用于连接工作站和服务器。
为了只显示服务器,我需要找到一种方法,将服务器插入交换机以从调制解调器获取 IP 地址,然后让服务器广播其地址,以便我可以使用 Putty 连接到它从工作站。
我考虑过使用 Samba 使用 Messenger 服务广播消息,但除非我弄错了,否则只有当两个热点配置为使用相同的工作组/域时,这才有效。
您知道如何从工作站获取服务器的IP地址吗?
谢谢您的任何提示。
I'd like to sell headless Linux servers to SOHO users. Typically, they'll have a DHCP-capable ADSL modem cum switch to which they'll connect their workstation and the server.
In order to just show up with the server, I need to find a way to just plug the server into the switch to get an IP address from the modem, and then have the server broadcast its adresse so I can then connect to it with Putty from the workstation.
I thought about using Samba to broadcast a message using the Messenger Service, but unless I'm mistaken, this only works if the two hots are configured to use the same workgroup/domain.
Do you know of way to get the server's IP address from the workstation?
Thank you for any tip.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我不知道有什么好的解决办法。
某些 DHCP 服务器会注册您在请求中发送的名称 - 然后在您的设置说明中给出该名称。 但我怀疑家庭用户 DSL 路由器不属于这一类。
也许您可以在 CD 上提供一个工具,用于执行 arp 请求以获取 IP 地址? (鉴于包装盒上印有 MAC 地址)
I don't know of any good solutions.
Some DHCP servers will register the name you send in the request - then give that name in your setup instructions. But I suspect home user DSL routers aren't in that category.
Maybe you could ship a tool on CD that does arp requests to get the IP address? (Given the MAC address printed on the box)
在任意选择的 UDP 端口上定期广播数据包,并构建一些客户端软件来侦听这些数据包。
Broadcast packets periodically on some arbitrarily chosen UDP port, and build some client software to listen for those packets.
看看 UPnP 和 Zeroconf 服务,例如 Apple 的 Bonjour。
Take a look at UPnP and zeroconf services like Apple's Bonjour.
我可能建议对交换机和调制解调器使用常规方法,因为您将设备视为设备,即设置默认 IP 192.168.0.1,然后连接到该 IP,然后将设备配置到本地基础设施中。
I'd probably suggest using the normal approach for switches and modems as you are treating your device as an appliance, i.e. set a default IP 192.168.0.1, and connect to that to then configure the device into the local infrastructure.