DOCKER:Windows 10上的Linux容器,如何使用nmap扫描设备的mac地址 [英] DOCKER: Linux Container on Windows 10, how to use nmap to scan device's mac address

查看:335
本文介绍了DOCKER:Windows 10上的Linux容器,如何使用nmap扫描设备的mac地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试设置docker,使其可以使用nmap成功扫描子网设备的mac地址。我花了三天的时间弄清楚该怎么做,但还是失败了。

I am trying to setup the docker which can successfully scan the subnet device's mac address by using nmap. And I've spent 3 days to figure out how to do it but still failed.

例如:


  • 主机IP:10.19.201.123

  • 设备IP:10.19.201.101

我已经设置了docker容器,可以成功ping 10.19.201.123和10.19.201.101。但是当我使用nmap从docker容器扫描mac地址时,我得到以下信息:

I've setup docker container which can ping 10.19.201.123 and 10.19.201.101 both successfully. But when I use nmap to scan mac address from docker container, I got below:

~$sudo nmap -sP 10.19.201.101
 Starting Nmap 7.01 ( https://nmap.org ) at 2018-05-29 08:57 UTC
 Nmap scan report for 10.19.201.101
 Host is up (0.00088s latency).
 Nmap done: 1 IP address (1 host up) scanned in 0.39 seconds

但是,如果我使用nmap从VM(10.19.201.100)扫描mac地址,则会得到:

However, if I use nmap to scan mac address from VM (10.19.201.100), I got:

~$sudo nmap -sP 10.19.201.101
 Starting Nmap 7.01 ( https://nmap.org ) at 2018-05-29 17:16 CST
 Nmap scan report for 10.19.201.101
 Host is up (0.00020s latency).
 MAC Address: 0F:01:H5:W3:0G:J5(ICP Electronics)
 Nmap done: 1 IP address (1 host up) scanned in 0.32 seconds

请问谁可以帮助或提示如何做?

PLEASE, who can help or give prompts of how to do it?

推荐答案

对于谁仍在努力解决此问题,我已经弄清楚了如何在Windows 10上执行此操作。

For who is still struggling with this issue, I've figured out how to do it on Windows 10.


  • Windows 10 HOME用户,您可以参考此页面进行虚拟框设置

  • Windows 10 HOME user, you can refer to this page for virtual box setting

Windows 10 PROFESSIONAL / ENTERPRISE用户,您可以参考此页面用于hyperV设置:
https://hub.docker.com/r / qtimmylin / evt_platform /

Windows 10 PROFESSIONAL/ENTERPRISE user, you can refer to this page for hyperV setting: https://hub.docker.com/r/qtimmylin/evt_platform/

对不起,由于机密内容,我无法发布该图像,但是我相信即使对于Docker的新手来说,说明也足够清晰。

I am sorry I cannot release the image due to confidential content, but I believe the instructions are clear enough for anyone even you are new to Docker.

希望这对您有所帮助,所以您无需为此花整整一个星期是的。

Hope this is helpful enough so you don't need to waste a whole week on this as I did.

这篇关于DOCKER:Windows 10上的Linux容器,如何使用nmap扫描设备的mac地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆