[root@zetawiki ~]# sysctl net.ipv6.conf.all.disable_ipv6
net.ipv6.conf.all.disable_ipv6 = 0
Jmnote bot (토론 | 기여) 잔글 (로봇: 자동으로 텍스트 교체 (-<source lang='dos'> +<source lang='cli'>)) |
Jmnote bot (토론 | 기여) 잔글 (로봇: 자동으로 텍스트 교체 (-[root@jmnote +[root@zetawiki)) |
||
9번째 줄: | 9번째 줄: | ||
==실습== | ==실습== | ||
<source lang='cli'> | <source lang='cli'> | ||
[root@ | [root@zetawiki ~]# sysctl net.ipv6.conf.all.disable_ipv6 | ||
net.ipv6.conf.all.disable_ipv6 = 0 | net.ipv6.conf.all.disable_ipv6 = 0 | ||
</source> | </source> | ||
:→ disable_ipv6 이 0이므로 활성화 상태임 | :→ disable_ipv6 이 0이므로 활성화 상태임 | ||
<source lang='cli'> | <source lang='cli'> | ||
[root@ | [root@zetawiki ~]# ifconfig eth0 | grep inet | ||
inet addr:192.168.0.139 Bcast:192.168.0.255 Mask:255.255.255.0 | inet addr:192.168.0.139 Bcast:192.168.0.255 Mask:255.255.255.0 | ||
inet6 addr: fe80::20c:29ff:fea2:8ea8/64 Scope:Link | inet6 addr: fe80::20c:29ff:fea2:8ea8/64 Scope:Link | ||
20번째 줄: | 20번째 줄: | ||
:→ eth0에 IPv6 주소가 있음 | :→ eth0에 IPv6 주소가 있음 | ||
<source lang='cli'> | <source lang='cli'> | ||
[root@ | [root@zetawiki ~]# sysctl -w net.ipv6.conf.all.disable_ipv6=1 | ||
net.ipv6.conf.all.disable_ipv6 = 1 | net.ipv6.conf.all.disable_ipv6 = 1 | ||
</source> | </source> | ||
:→ disable_ipv6 이 1이므로 비활성화됨 | :→ disable_ipv6 이 1이므로 비활성화됨 | ||
<source lang='cli'> | <source lang='cli'> | ||
[root@ | [root@zetawiki ~]# ifconfig eth1 | grep inet | ||
inet addr:192.168.0.39 Bcast:192.168.0.255 Mask:255.255.255.0 | inet addr:192.168.0.39 Bcast:192.168.0.255 Mask:255.255.255.0 | ||
</source> | </source> |
2015년 2월 12일 (목) 01:37 판
1 개요
- 리눅스 IPv6 비활성화하기
- 리눅스는 보통 IPv6가 활성화되어 있음(기본값)
- 이것을 비활성화해보자.
Bash
Copy
sysctl -p net.ipv6.conf.all.disable_ipv6=1
2 실습
Copy
- → disable_ipv6 이 0이므로 활성화 상태임
Copy
[root@zetawiki ~]# ifconfig eth0 | grep inet
inet addr:192.168.0.139 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fea2:8ea8/64 Scope:Link
- → eth0에 IPv6 주소가 있음
Copy
[root@zetawiki ~]# sysctl -w net.ipv6.conf.all.disable_ipv6=1
net.ipv6.conf.all.disable_ipv6 = 1
- → disable_ipv6 이 1이므로 비활성화됨
Copy
[root@zetawiki ~]# ifconfig eth1 | grep inet
inet addr:192.168.0.39 Bcast:192.168.0.255 Mask:255.255.255.0
- → eth0에 IPv6 주소가 없어짐
3 같이 보기
편집자 Jmnote Jmnote bot WikiPo 1.214.210.82
로그인하시면 댓글을 쓸 수 있습니다.
- 분류 댓글:
- 리눅스 네트워크 (5)
리눅스 hosts 파일 ― 올해대박리눅스 hosts 파일 ― Jmnote리눅스 nc 포트 열기 ― …우분투 절전모드 해제시 와이파이 안되는 문제 ― D4RT우분투 절전모드 해제시 와이파이 안되는 문제 ― Beyondthelimit