Linux
ipv6 enable 방법 및 위치
도경다경
2024. 12. 4. 15:57
반응형
ipv6 enable 및 disable 방법 및 위치 몇가지 적어보고자 한다.
3가지 정도 적을건데 사실 넣으려면 더 많은 곳에도 설정은 가능한데 자주 사용하는 3곳만 표시한다.
1. network script (ip 설정 파일)
- /etc/sysconfig/network-scripts/ifcfg-ens???
IPV6INIT=no or yes
- 수정 후 ifdown, ifup 해주면 되는데 깔끔하게 reboot 하자
2. grub
- /etc/default/grub
GRUB_CMDLINE_LINUX= 부분에 ipv6.disable=1 or 0
1이 사용안함
- grub2-mkconfig -o /boot/grub2/grub.cfg
실행하고 reboot하자
3. 시스템 파라미터
- /etc/sysctl.conf
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
1이 사용안함, 0이 사용함
- 깔끔하게 reboot하자
반응형