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 line- NETWORKING_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.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 line- NETWORKING_IPV6=yes
- Make 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 ... 
随机推荐
- 统计寄存器AX中1 的个数
			;==================================== ; 统计寄存器AX中1 的个数 DATAS segment DATAS ends CODES segment START: ... 
- python3爬取咪咕音乐榜信息(附源代码)
			参照上一篇爬虫小猪短租的思路https://www.cnblogs.com/aby321/p/9946831.html,继续熟悉基础爬虫方法,本次爬取的是咪咕音乐的排名 咪咕音乐榜首页http://m ... 
- 笔记--tslib 编译
			tslib 是qt启动时的一个触屏校正检验程序. 它的配置以及编译比较简单. 第一步, 下载tslib源码包: http://download.csdn.net/detail/MKNDG/329156 ... 
- iOS-重构微博cell模型
			一.Frame模型: -------------------WeiboFrame.h-------------------------------------------------- ------- ... 
- 裸机——wdt
			1. 首先晓得看门狗的基本知识 看门狗是带复位功能的定时器,用于在系统跑飞时复位系统. 接下来按照上次的知识对看门狗进行推导 看门狗的关键词是 定时器 复位 定时器 关键是 时间段 中断 时间段 关键 ... 
- B1071 小赌怡情 (15分)
			B1071 小赌怡情 (15分) 常言道"小赌怡情".这是一个很简单的小游戏:首先由计算机给出第一个整数:然后玩家下注赌第二个整数将会比第一个数大还是小:玩家下注 t 个筹码后,计 ... 
- Leetcode 606. 根据二叉树创建字符串
			题目链接 https://leetcode.com/problems/construct-string-from-binary-tree/description/ 题目描述 你需要采用前序遍历的方式, ... 
- Android 6.0 动态申请 音频+拍照+相册 权限
			1.音频的权限(包括录音和播放) 1.1.首先要在清单中加上两个权限 <uses-permission android:name="android.permission.WRITE_E ... 
- SpringMVC---RequestMapping注解类的使用方法
			RequestMapping注解的使用 开发Controller控制器类,使用@Controller注解标注,并在配置文件中用<context:component-scan/>扫描相应的包 ... 
- WPFDataGrid可以编辑某列Bug,困惑已久
			这个问题困扰了好几天,最近在做DataGrid编辑列,有一个添加按钮,当我点击添加按钮的时候自动生成一行,并别生成序列号,然后按回车键完成添加,但是有一个问题就是:当我点击完添加按钮以后,然后继续添加 ... 
