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.confwith the following contents:options ipv6 disable=1
For completeness, it is a good idea to configure the
ip6tablesservice not to start at boot by issuing the following command:# chkconfig ip6tables off
Edit
/etc/sysconfig/networkand add the lineNETWORKING_IPV6=noDisable 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.nfsdsetting up IPv6 sockets while NFS server is running, edit/etc/netconfigfor 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
ip6tablesservice to start at boot by issuing the following command:# chkconfig ip6tables on
Edit
/etc/sysconfig/networkand add the lineNETWORKING_IPV6=yesMake sure the following options to your
/etc/sysctl.confare# 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/netconfigfor 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.conffile:alias net-pf-10 ipv6
Add the following line to the
/etc/modprobe.conffile:alias net-pf-10 off
In versions of Red Hat Enterprise Linux before 5.4, add the following line to the
/etc/modprobe.conffile:alias ipv6 off
In Red Hat Enterprise Linux 5.4 and later, add the following line to the
/etc/modprobe.conffile:options ipv6 disable=1
To prevent errors during the network initscript start routine, change the
NETWORKING_IPV6parameter in the/etc/sysconfig/networkfile to the following:NETWORKING_IPV6=no
For completeness, it is a good idea to configure the
ip6tablesservice 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.conffile:alias net-pf-10 off
alias ipv6 off
options ipv6 disable=1
Add the following line to the
/etc/modprobe.conffile (if not present already):alias net-pf-10 ipv6
Change the
NETWORKING_IPV6parameter in the/etc/sysconfig/networkfile to the following:NETWORKING_IPV6=yes
For completeness, it is a good idea to configure the
ip6tablesservice 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.conffile:alias net-pf-10 ipv6
Add the following line to the
/etc/modprobe.conffile: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.conffile:alias net-pf-10 off
Add the following line to the
/etc/modprobe.conffile: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 ...
随机推荐
- 【PGP公钥】
Fingerprint: 37AF 3814 3ABC 5DFA 97F5 300E 581D A2E3 F4D2 F585 Key ID:0x581DA2E3F4D2F585 -----BEGIN ...
- 搭建Maven私有仓库
Nexus官网下载:Nexus Repository Manager OSS :https://www.sonatype.com/download-oss-sonatype 1.解压 $ tar -z ...
- FullCalendar日历插件(中文API)
FullCalendar提供了丰富的属性设置和方法调用,开发者可以根据FullCalendar提供的API快速完成一个日历日程的开发,本文将FullCalendar的常用属性和方法.回调函数等整理成中 ...
- 38.VUE学习之-全局组件和局部组件
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http ...
- 1014-31-首页12-显示weibo未读数--后台运行---定时器
/** * 当app进入后台时调用 */- (void)applicationDidEnterBackground:(UIApplication *)application{ /** ...
- Cache、Buffer的区别
什么是Cache?什么是Buffer?二者的区别是什么? Buffer和Cache的区别 buffer与cache操作的对象就不一样. 1.buffer(缓冲)是为了提高内存和硬盘(或其他I/O设备) ...
- 笔记-爬虫-selenium常用方法
笔记-爬虫-selenium常用方法 1. 查找元素 常用的查找方法 find_element_by_name find_element_by_xpath find_element_by_l ...
- javascript的js调用
本来从一开始接触编程开始,自己就一直写后端,但是对于前端真的不会,但是没办法呀,公司要做,所以,好吧,开始了写一写简单的javascript的内容其中,在xxx.jsp页面中出现了这个 <a c ...
- PHP.34-TP框架商城应用实例-后台10-商品分类-需求分析、创建无限级商品分类,递归
商品管理需求分析 1.实现商品无限级分类管理[类似京东三级分类] 2.添加商品时要指定商品属于一个主分类和多个扩展分类[扩展分类可以是其他主分类] 3.商品列表中可以根据分类搜索商品 a) 搜索一个分 ...
- 使用CSS3制作各种形状
CSS3的一个非常酷的特性是允许我们创建各种规则和不规则形状的图形,从而可以减少图片的使用.以前只能在Photoshop等图像编辑软件中制作的复杂图形现在使用CSS3就可以完成了.通过使用新的CSS属 ...