Old stories/Unix&Linux
CentOS - IPv6 비활성화
드카니
2010. 12. 14. 10:16
IPv6 기능 비활성화는 OS별이나 버전별로 차이가 있으니 추가 검색이 필요.
CentOS의 경우 다음 URL을 참조하시면 됩니다.
공통적으로 네트워크 설정에서 IPv6를 비활성화.
# /etc/sysconfig/network 파일에 "NETWORK_IPV6=no" 설정 및 추가
상기 설정 후, /etc/modprobe.d/ 가 존재할 경우 일반적으로 권장되는 설정은 다음과 같다.
# touch /etc/modprobe.d/disable-ipv6.conf
# echo "install ipv6 /bin/true" >> /etc/modprobe.d/disable-ipv6.conf
또한,
ip6tables 서비스를 비 활성화.
# chkconfig --level 2345 ip6tables off
마지막으로 서버를 rebooting..
서버 rebooting 후에 다음의 명령어로 IPv6 모듈이 로딩되지 않은 것을 확인.
# lsmod | grep ipv6
반응형