1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

LAN内で利用されているIPアドレスを調べる

Last updated at Posted at 2019-04-02

IPアドレスを調べる

  • sudo arp-scan -I eth0 -l
  • sudo nmap -sP 192.168.1.*
arp-scan ,nmap で、MACからのベンダ情報は異なる
  • PowerShell: Get-NetNeighbor もしくは、arp -a |Select-string '192'

IPから MAC アドレスを調べる

  • arping 192.168.1.1 -f

Windows の PC名を調べる

nmblookup -A 192.168.1.83

Windows の PC名からIPアドレスを調べる

nmblookup PC名

MAC アドレスからベンダー名割り出し

参考

#!/bin/sh

while [ $# -gt 0 ]; do
        echo -n "$1="
        curl "http://api.macvendors.com/$1"
        echo ""
        shift
done

DHCP のリリース

- Windows
ipconfig /release
ipconfig /renew

- Linux 
dhclient -r device
dhclient  device

特別のアドレス

  • 239.255.255.250 UPnPが使うアドレス
  • x.x.x.255 ブロードキャストアドレス(ネットマスク 255.255.255.0 の場合)
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?