我想找到我加入的多播组的 IP。但是,从 netstat -ng 获得的所有 IP 都是这些:
root@me:~# netstat -ng
IPv6/IPv4 Group Memberships
Interface RefCnt Group
--------------- ------ ---------------------
lo 1 224.0.0.1
enp2s0 1 224.0.0.1
wlp1s0 1 224.0.0.251
wlp1s0 1 224.0.0.1
lo 1 ff02::1
lo 1 ff01::1
enp2s0 1 ff02::1
enp2s0 1 ff01::1
wlp1s0 1 ff02::1:ff00:1002
wlp1s0 1 ff02::1:ffec:fbef
wlp1s0 1 ff02::1:ff46:409f
wlp1s0 1 ff02::1:ff2f:ca73
wlp1s0 1 ff02::1
所有这些 IP 都是通用的(所有节点和类似节点),我想知道我到底在哪个网络中。我在 nmap 中找到了一些东西:
root@me:~# nmap --script broadcast-igmp-discovery lo
Starting Nmap 7.60 ( https://nmap.org ) at 2019-07-25 22:12 -03
Pre-scan script results:
| broadcast-igmp-discovery:
| 192.168.0.80
| Interface: wlp1s0
| Version: 2
| Group: 224.0.0.251
| Description: mDNS (rfc6762)
| 192.168.0.80
| Interface: wlp1s0
| Version: 2
| Group: 224.0.0.252
| Description: Link-local Multicast Name Resolution (rfc4795)
| 192.168.0.80
| Interface: wlp1s0
| Version: 2
| Group: 239.255.255.250
| Description: Organization-Local Scope (rfc2365)
|_ Use the newtargets script-arg to add the results as targets
Failed to resolve "lo".
WARNING: No targets were specified, so 0 hosts scanned.
Nmap done: 0 IP addresses (0 hosts up) scanned in 8.13 seconds
你们有什么感想?