0
0

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 1 year has passed since last update.

ゴミみたいなネットワークの課題をやる

Posted at

はじめに

$ コマンド
出力
解答

利用計算機

ホスト名

$ hostname
mio256.local
mi0256.local

IPアドレス

$ ifconfig
...
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	options=6463<RXCSUM,TXCSUM,TSO4,TSO6,CHANNEL_IO,PARTIAL_CSUM,ZEROINVERT_CSUM>
	ether b0:be:83:55:5d:3b
	inet6 fe80::1831:d222:51a1:c040%en0 prefixlen 64 secured scopeid 0xb
	inet 131.206.224.94 netmask 0xfffff000 broadcast 131.206.239.255
	nd6 options=201<PERFORMNUD,DAD>
	media: autoselect
	status: active
...

該当箇所はinetである。

131.206.224.94

詳細 
https://prograshi.com/general/command/what-is-ifconfig/


MACアドレス

$ ifconfig
...
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	options=6463<RXCSUM,TXCSUM,TSO4,TSO6,CHANNEL_IO,PARTIAL_CSUM,ZEROINVERT_CSUM>
	ether b0:be:83:55:5d:3b
	inet6 fe80::1831:d222:51a1:c040%en0 prefixlen 64 secured scopeid 0xb
	inet 131.206.224.94 netmask 0xfffff000 broadcast 131.206.239.255
	nd6 options=201<PERFORMNUD,DAD>
	media: autoselect
	status: active
...

該当箇所はetherである。

b0:be:83:55:5d:3b

詳細 
https://prograshi.com/general/command/what-is-ifconfig/


利用しているネームサーバ(DNS)

IPアドレス※先にIPアドレスを調べる

まずは、DNSのIPアドレスを調べる

$ cat /etc/resolv.conf
#
# macOS Notice
#
# This file is not consulted for DNS hostname resolution, address
# resolution, or the DNS query routing mechanism used by most
# processes on this system.
#
# To view the DNS configuration used by this system, use:
#   scutil --dns
#
# SEE ALSO
#   dns-sd(1), scutil(8)
#
# This file is automatically generated.
#
nameserver 131.206.79.11
nameserver 150.69.78.11
131.206.79.11
150.69.78.11

ホスト名

dig -x [DNSのIPアドレス]
//131.206.79.11

; <<>> DiG 9.10.6 <<>> -x 131.206.79.11
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 1099
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;11.79.206.131.in-addr.arpa.	IN	PTR

;; AUTHORITY SECTION:
79.206.131.in-addr.arpa. 263	IN	SOA	ns2-t.kiban.kyutech.ac.jp. op-members.kiban.kyutech.ac.jp. 24 3600 300 3600000 3600

;; Query time: 78 msec
;; SERVER: 131.206.79.11#53(131.206.79.11)
;; WHEN: Wed Jul 06 18:12:04 JST 2022
;; MSG SIZE  rcvd: 127

---
//150.69.78.11

; <<>> DiG 9.10.6 <<>> -x 150.69.78.11
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49975
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;11.78.69.150.in-addr.arpa.	IN	PTR

;; ANSWER SECTION:
11.78.69.150.in-addr.arpa. 600	IN	PTR	dns-t1.kiban.kyutech.ac.jp.

;; Query time: 73 msec
;; SERVER: 131.206.79.11#53(131.206.79.11)
;; WHEN: Wed Jul 06 18:13:35 JST 2022
;; MSG SIZE  rcvd: 94

131.206.79.11は逆引きに失敗している。

150.69.78.11の該当箇所は、
11.78.69.150.in-addr.arpa. 600 IN PTR dns-t1.kiban.kyutech.ac.jp.

131.206.79.11 は 不明
150.69.78.11  は dns-t1.kiban.kyutech.ac.jp.

※131.206.79.11を無視して、150.69.78.11だけを書いても良いと思われるが、2つとも書いて「調査した結果、不明」と記したほうが加点となると思われる。

dig 逆引き : https://tama200x.hatenablog.com/entry/2012/12/25/000000

MACアドレス

ローカルネットワーク内の機器ではないため、MACアドレスの特定は不可能と思われる。

デフォルトゲートウェイ

IPアドレス ※先にIPアドレスを調べる

スクリーンショット 2022-07-06 18.47.44.png

131.206.224.1

ホスト名

スクリーンショット 2022-07-06 18.50.21.png

131.206.224.1は逆引きに失敗している。

不明

MACアドレス

arp -a で 同一ネットワークのIP一覧を取得し、該当したIPアドレスの機器のMACアドレスがわかる。

スクリーンショット 2022-07-06 18.54.53.png

ec:94:d5:b5:c9:c0
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?