1. 程式人生 > >RHEL 7 CentOS 7禁用IPV6

RHEL 7 CentOS 7禁用IPV6

Step 1: add this rule in /etc/sysctl.conf : net.ipv6.conf.all.disable_ipv6=1Step 2: add this rule in /etc/sysconfig/network: NETWORKING_IPV6=noStep 3: add this setting for each nic X (X is the corresponding number for each nic) in /etc/sysconfig/network-scripts/ifcfg-ethX: IPV6INIT=noStep 4: disable the ip6tables service : chkconfig ip6tables off
Step 5: Reload the sysctl configuration:# sysctl -por# reboot