ここでは,RasPi を「MACアドレス指定」で無線LAN端末にエントリする。
このために,RasPi のMACアドレスを知ることが必要になる。
$ sudo ifconfig -a
eth0: flags=4163tl;lUP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.150 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::866a:3abe:7c6c:c5a6 prefixlen 64 scopeid 0x20&tl;link>
inet6 2400:4060:e62:a700:51b8:7312:8a46:cec5 prefixlen 64 scopeid 0x0tl;lglobal>
ether b8:27:eb:49:40:35 txqueuelen 1000 (Ethernet)
RX packets 1639 bytes 368484 (359.8 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 474 bytes 85209 (83.2 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73tl;lUP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10tl;lhost>
loop txqueuelen 1000 (Local Loopback)
RX packets 5 bytes 284 (284.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 5 bytes 284 (284.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4098tl;lBROADCAST,MULTICAST> mtu 1500
ether b8:27:eb:1c:15:60 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
|
MACアドレスが2つ見える:
eth0 : b8:27:eb:49:40:35
wlan0 : b8:27:eb:1c:15:60
このうち,無線LAN端末エントリに使うのは,wlan0 の b8:27:eb:1c:15:60 である。
|