0
2

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.

Raspberry Pi で IPV6 を使う

Posted at

Raspberry Pi で IPV6 を使ってみました。

Raspberry Pi で ip addr を実行

$ ip addr
(省略)
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 00:22:cf:fb:7b:33 brd ff:ff:ff:ff:ff:ff
    inet6 2001:240:28d5:4900:222:cfff:fefb:7b33/64 scope global dynamic mngtmpaddr 
       valid_lft 14182sec preferred_lft 14182sec
    inet6 fe80::222:cfff:fefb:7b33/64 scope link 
       valid_lft forever preferred_lft forever

そこで、他の端末から ping をかけました。

$ ping -c 3 2001:240:28d5:4900:222:cfff:fefb:7b33
PING 2001:240:28d5:4900:222:cfff:fefb:7b33(2001:240:28d5:4900:222:cfff:fefb:7b33) 56 データ長(byte)
64 バイト応答 送信元 2001:240:28d5:4900:222:cfff:fefb:7b33: icmp_seq=1 ttl=64 時間=17.1ミリ秒
64 バイト応答 送信元 2001:240:28d5:4900:222:cfff:fefb:7b33: icmp_seq=2 ttl=64 時間=5.63ミリ秒
64 バイト応答 送信元 2001:240:28d5:4900:222:cfff:fefb:7b33: icmp_seq=3 ttl=64 時間=4.23ミリ秒

ssh でログイン

$ ssh 2001:240:28d5:4900:222:cfff:fefb:7b33
Linux tulip 4.19.97-v7+ #1294 SMP Thu Jan 30 13:15:58 GMT 2020 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

nmap を使ってみました。

$ nmap -6 2001:240:28d5:4900:222:cfff:fefb:7b33
Starting Nmap 7.80 ( https://nmap.org ) at 2020-06-08 15:23 JST
Nmap scan report for 2001:240:28d5:4900:222:cfff:fefb:7b33
Host is up (0.014s latency).
Not shown: 999 closed ports
PORT   STATE SERVICE
22/tcp open  ssh

Nmap done: 1 IP address (1 host up) scanned in 2.45 seconds
0
2
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
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?