테스트 서버 : RHEL 6.5 x86_64
1. 적용 전
[root@Mapoo-Blog ~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP ql en 1000
link/ether 90:fb:a6:3c:0f:43 brd ff:ff:ff:ff:ff:ff
inet 192.168.25.211/24 brd 192.168.25.255 scope global eth3
inet6 fe80::92fb:a6ff:fe3c:f43/64 scope link
valid_lft forever preferred_lft foreve
2. 적용하기
1) 커널 파라미터 조정
[root@Mapoo-Blog ~]# vi /etc/sysctl.conf
~~ snip ~~
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
2) 커널 파라미터 적용
[root@Mapoo-Blog ~]# sysctl -p
3) network 스크립트 파일 수정
[root@Mapoo-Blog ~]# vi /etcsysconfig/network
NETWORK_IPV6="no" 추가
4) ipv6 모듈 제거
[root@Mapoo-Blog ~]# touch /etc/modprobe.d/disable-ipv6.conf
[root@Mapoo-Blog ~]#"install ipv6 /bin/true" >> /touch /etc/modprobe.d/disable-ipv6.conf
5) ip6tables off
[root@Mapoo-Blog ~]# chkconfig ip6tables off
6) 적용을 위해 reboot
[root@Mapoo-Blog ~]# reboot
3. 적용 확인하기
1) ip address 확인
[root@Mapoo-Blog ~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
2: eth3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP ql en 1000
link/ether 90:fb:a6:3c:0f:43 brd ff:ff:ff:ff:ff:ff
inet 192.168.25.211/24 brd 192.168.25.255 scope global eth3
valid_lft forever preferred_lft foreve
-> inet6 라인이 삭제됨
2) ipv6 모듈 제거 확인
[root@Mapoo-Blog ~]# lsmod | grep ipv6
아무것도 출력이 안되면 ipv6 모듈 제거됨