IP addresses allow devices to connect to each other and transfer data. In contrast, an IP address or Internet Protocol address is a unique number that identifies a computer in a network. What happens if you must know the IP address of another device If you know the associated URL like, you can use it. Scroll down to see your IPv4 and IPv6 addresses. In this case, the MAC address is 00:0c:29:d8:fa:9a. To find the IP address of your device, go to Command Prompt, and type ipconfig. If you want to put a little more effort in, and parse more data out, I recommend using the -online argument to the ip command, which will let you treat every line as a new device: $ ip -o linkġ: lo: mtu 16436 qdisc noqueue \ link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00Ģ: eth0: mtu 1500 qdisc pfifo_fast qlen 1000\ link/ether 00:0c:29:30:21:48 brd ff:ff:ff:ff:ff:ffģ: eth1: mtu 1500 qdisc pfifo_fast qlen 1000\ link/ether 00:0c:29:30:21:52 brd ff:ff:ff:ff:ff:ffĤ: tun0: mtu 1500 qdisc pfifo_fast qlen 100\ link/ĥ: sit0: mtu 1480 qdisc noop \ link/sit 0.0.0.0 brd 0.0.0. We can see the MAC address above next to the word ether. Tweak a little with your Raspi configuration to see if you can enable it. This seems to be deprecated and might not be enabled in the TCP/IP stack of your Raspberry. You can trivially get the mac address from this output with awk: $ ip link show eth0 | awk '/ether/ ' My first thought is for you to use the RARP protocol. I like using /sbin/ip for these kind of tasks, because it is far easier to parse: $ ip link show eth0Ģ: eth0: mtu 1500 qdisc pfifo_fast qlen 1000
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |