Last-modified: 2016-11-05 (土) 21:33:24
概要 †
IPv6を無効化したい。
方法 †
- CentOS 5.x系
- /etc/sysconfig/networkを編集
1
2
| -
!
| NETWORKING_IPV6=no
|
- /etc/modprobe.confを編集
1
2
3
| -
!
| alias ipv6 off
alias net-pf-10 off
|
- ネットワーク再起動
1
|
| /etc/init.d/network restart
|
- CentOS 6.x系
- /etc/sysctl.confを編集
1
2
|
| net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
|
- ネットワーク再起動
1
|
| /etc/init.d/network restart
|
- Debian Lenny
- /etc/modprobe.d/aliasesを編集
1
2
| -
!
| alias net-pf-10 off
|
- OS再起動
- Debian Squeeze
- /etc/sysctl.confを編集
1
|
| net.ipv6.conf.all.disable_ipv6 = 1
|
- OS再起動
- Debian jessie
1
2
3
4
5
6
7
8
9
| -
!
-
|
|
!
| net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
sudo sysctl -p
|
補足 †
- 確認方法(確実な判定方法かどうかは微妙)
1
2
3
4
5
| -
!
-
!
| ifconfig
netstat -g
|
検証時の環境 †
- Debian Lenny x86
- Debian Squeeze x64
- Debian jessie x64
- Raspbian jessie
- CentOS 5.4 x86
- CentOS 6.3 x64