Disable or enable the IPv6 protocol in Red Hat Enterprise Linux
Resolution
Red Hat Enterprise Linux 4, 5 and 6 enable Internet Protocol Version 6 (IPv6) by default. However, in certain situations, some users may find it desirable to disable IPv6 support or to re-enable it after it has been disabled.
For Red Hat Enterprise Linux 6, the tech brief Preparing for IPv6 Networking in Red Hat Enterprise Linux provides a broad introduction to IPv6 networking.
Disabling IPv6 support in Red Hat Enterprise Linux 6
Create a file
/etc/modprobe.d/ipv6.conf
with the following contents:options ipv6 disable=1
For completeness, it is a good idea to configure the
ip6tables
service not to start at boot by issuing the following command:# chkconfig ip6tables off
Edit
/etc/sysconfig/network
and add the lineNETWORKING_IPV6=no
Disable ipv6 support in the kernel through
/etc/sysctl.conf
:# ipv6 support in the kernel, set to 0 by default
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
Optionally to prevent
rpc.nfsd
setting up IPv6 sockets while NFS server is running, edit/etc/netconfig
for the lines starting with udp6 and tcp6; change the"v"
in the third column to"-"
(hyphen/dash)Reboot the system to disable IPv6 support.
Note: There is a special case where this might not work, please see The "ipv6 disable=1" option does not seem to work on Red Hat Enterprise Linux 6 system.
Disabling ipv6 in the sysctl.conf will ensure ipv6 isn't used even if the ipv6 module is loaded and can work as a short term solution (until a full reboot)
Re-enabling IPv6 support in Red Hat Enterprise Linux 6
Review the files under
/etc/modprobe.d/
and remove (or comment out) any of the following lines:options ipv6 disable=1
install ipv6 /bin/true
blacklist ipv6
Configure the
ip6tables
service to start at boot by issuing the following command:# chkconfig ip6tables on
Edit
/etc/sysconfig/network
and add the lineNETWORKING_IPV6=yes
Make sure the following options to your
/etc/sysctl.conf
are# ipv6 support in the kernel, set to 0 by default
net.ipv6.conf.all.disable_ipv6 = 0
net.ipv6.conf.default.disable_ipv6 = 0
Edit
/etc/netconfig
for the lines starting with udp6 and tcp6; change the"-"
(hyphen/dash) in the third column to"v"
Reboot the system to activate IPv6 support.
Disabling IPv6 support in Red Hat Enterprise Linux 5
Remove the following line (if present) from the
/etc/modprobe.conf
file:alias net-pf-10 ipv6
Add the following line to the
/etc/modprobe.conf
file:alias net-pf-10 off
In versions of Red Hat Enterprise Linux before 5.4, add the following line to the
/etc/modprobe.conf
file:alias ipv6 off
In Red Hat Enterprise Linux 5.4 and later, add the following line to the
/etc/modprobe.conf
file:options ipv6 disable=1
To prevent errors during the network initscript start routine, change the
NETWORKING_IPV6
parameter in the/etc/sysconfig/network
file to the following:NETWORKING_IPV6=no
For completeness, it is a good idea to configure the
ip6tables
service not to start at boot by issuing the following command:# chkconfig ip6tables off
Reboot the system to disable IPv6 support.
Re-enabling IPv6 support in Red Hat Enterprise Linux 5
Remove the following lines (if present) from the
/etc/modprobe.conf
file:alias net-pf-10 off
alias ipv6 off
options ipv6 disable=1
Add the following line to the
/etc/modprobe.conf
file (if not present already):alias net-pf-10 ipv6
Change the
NETWORKING_IPV6
parameter in the/etc/sysconfig/network
file to the following:NETWORKING_IPV6=yes
For completeness, it is a good idea to configure the
ip6tables
service to start at boot by issuing the following command:# chkconfig ip6tables on
Reboot the system to re-enable IPv6 support.
Disabling IPv6 support in Red Hat Enterprise Linux 4
Remove the following line (if present) from the
/etc/modprobe.conf
file:alias net-pf-10 ipv6
Add the following line to the
/etc/modprobe.conf
file:alias net-pf-10 off
Reboot the system to disable IPv6 support.
Re-enabling IPv6 support in Red Hat Enterprise Linux 4
Remove the following line from the
/etc/modprobe.conf
file:alias net-pf-10 off
Add the following line to the
/etc/modprobe.conf
file:alias net-pf-10 ipv6
Reboot the system to re-enable IPv6 support.
Disable or enable the IPv6 protocol in Red Hat Enterprise Linux的更多相关文章
- How to disable transparent hugepages (THP) on Red Hat Enterprise Linux 7
How to disable transparent hugepages (THP) on Red Hat Enterprise Linux 7 $ Solution 已验证 - 已更新2017年六月 ...
- How to use, monitor, and disable transparent hugepages in Red Hat Enterprise Linux 6
Resolution Note: Transparent Huge Pages are not available on the 32-bit version of RHEL 6. Transpare ...
- setting up a IPSEC/L2TP vpn on CentOS 6 or Red Hat Enterprise Linux 6 or Scientific Linux
This is a guide on setting up a IPSEC/L2TP vpn on CentOS 6 or Red Hat Enterprise Linux 6 or Scientif ...
- Deploy Oracle 10.2.0.5 DataGuard on Red Hat Enterprise Linux 6.4
系统:Red Hat Enterprise Linux 6.4 数据库:Oracle 10.2.0.5.0 Patch Set 4 主机:10dg1 192.168.1.91 10dg2192.168 ...
- Configure Red Hat Enterprise Linux shared disk cluster for SQL Server——RHEL上的“类”SQL Server Cluster功能
下面一步一步介绍一下如何在Red Hat Enterprise Linux系统上为SQL Server配置共享磁盘集群(Shared Disk Cluster)及其相关使用(仅供测试学习之用,基础篇) ...
- [转] KVM storage performance and cache settings on Red Hat Enterprise Linux 6.2
Almost one year ago, I checked how different cache settings affected KVM storage subsystem performan ...
- Common administrative commands in Red Hat Enterprise Linux 5, 6, and 7
https://access.redhat.com/articles/1189123 Common administrative commands in Red Hat Enterprise Linu ...
- Configure Red Hat Enterprise Linux shared disk cluster for SQL Server
下面一步一步介绍一下如何在Red Hat Enterprise Linux系统上为SQL Server配置共享磁盘集群(Shared Disk Cluster)及其相关使用(仅供测试学习之用,基础篇) ...
- Red Hat Enterprise Linux 7.x新特性
Red Hat Enterprise Linux 7.x新特性 RHEL7新特性简介 1. RHEL7目前支持架构 64-bit AMD.64-bit Intel.IBM POWER.IBM ...
随机推荐
- windows和linux上mysql的安装
mysql基于多平台,多版本的安装 mysql.tar.gz 链接:https://pan.baidu.com/s/1lG9BNL1mG4qbjM8xLHtrjQ 密码:s4tk MySQL 是一个 ...
- 千锋教育Vue组件--vue基础的方法
课程地址: https://ke.qq.com/course/251029#term_id=100295989 <!DOCTYPE html> <html> <head& ...
- 浅谈XX系统跨平台迁移(测试环境)
一 概述 XX系统目前运行在XX-A的云平台上,计划将其迁移至XX-B的云平台. XX系统是java开发,中间组件涉及nginx+keepalived实现各个业务系统之间的高可用,kafka,zook ...
- POJ:2100-Graveyard Design(尺取)
Graveyard Design Time Limit: 10000MS Memory Limit: 64000K Total Submissions: 8504 Accepted: 2126 Cas ...
- Vsftpd服务 和 TFTP协议
FTP 文件传输协议 (File Transfer Protocol) FTP是一种在互联网中进行文件传输的协议,基于客户端/服务器模式,默认使用20.21号端口,其中端口20(数据端口)用于进行数据 ...
- TouTiao开源项目 分析笔记7 加载数据的过程
1.以新闻页中的段子数据显示为例 1.1.首先执行InitApp==>SplashActivity. 因为在AndroidManifest.xml中定义了一个<intent-filter& ...
- MySQL权限管理创建帐户
权限管理 1.创建账号 # 本地账号 create user 'egon1'@'localhost' identified by '123'; # mysql -uegon1 -p123 # 远程帐号 ...
- Win10安装bash慢的解决方案
电脑的Win10系统经过最近一年大量软件的装装删删,感觉已经有问题了,而且也存在大量无法清理的垃圾,占用着宝贵的SSD空间... 重新做系统的想法已经有一段时间了,正好赶上Win10的大更新 Crea ...
- quick sort去除无用判断
#include <stdio.h> #include <stdlib.h> //int a[]={1000,10000,9,10,30,20,50,23,90,100,10} ...
- 剑指Offer - 九度1505 - 两个链表的第一个公共结点
剑指Offer - 九度1505 - 两个链表的第一个公共结点2013-11-24 20:09 题目描述: 输入两个链表,找出它们的第一个公共结点. 输入: 输入可能包含多个测试样例.对于每个测试案例 ...