Help us understand the problem. What is going on with this article?

MacでInternetを共有したときのクライアントアドレスを調べる方法

More than 3 years have passed since last update.

MacでWifiに接続して、Ethernetポートに他の機器を繋いだ時、その他の機器のIPアドレスを調べる方法。

ifconfigコマンドを実行するとネットワーク・インタフェースの一覧が表示される。
その中にbridge*** というのがあるので、それを探す。

$> ifconfig
    ...
bridge100: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    options=23<RXCSUM,TXCSUM,TSO4>
    ether 02:23:32:eb:4b:64 
    inet 192.168.2.1 netmask 0xffffff00 broadcast 192.168.2.255
    ....

その後は、arpコマンドでクライアントを探す

$> arp -i bridge100 -a
? (192.168.2.1) at 2:23:32:eb:4b:64 on bridge100 ifscope permanent [bridge]
? (192.168.2.2) at 7a:71:a0:52:51:39 on bridge100 ifscope [bridge]

上記の場合、192.168.2.1 がMacで、192.168.2.2が他の機器。


DHCPの範囲を変えたいときは、ここに書いてある通りにすればいいらしい。

http://k0aun9.blogspot.com/2013/03/changing-dhcp-ip-range-for-os-x.html

Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away