How to assign IPv6 on your CentOS server
首页 > 学习    作者:情空明月   2019年6月8日 21:24 星期六   热度:250°   已自动提交收录  
时间:2019-6-8 21:24   热度:250° 

How to assign IPv6 on your CentOS server

Introduction

IPv6 was developed to counter the long-anticipated problem of IPv4 exhaustion. IPv6 is not only intended to replace IPv4 but also boasts of certain characteristics which are superior to IPv4 address like more efficient routing, directed data flows, simplified network configuration, security and much more.

IPv6 address on Virtual compute nodes from E2E Networks are disabled by default.

By following this brief article to the end, you will be able to assign IPv6 address on your server. Please follow these simple steps to assign IPv6 address on your server.

Step 1: Edit sysctl.conf file

Login into the server as root user and edit the sysctl.conf file. Enter the file in editing mode, we will be using vim editor for this article. You can use any file editor that you want.

# vim /etc/sysctl.conf

Add the following lines at the end of the file.

net.ipv6.conf.default.disable_ipv6 = 0
net.ipv6.conf.all.disable_ipv6 = 0

Then save and exit the file.

Step 2: Edit network file

Next, we need to edit the network file which is under the path /etc/sysconfig/

# vim /etc/sysconfig/network

Add the following line at the end of the file.

NETWORKING_IPV6=yes

Then save and exit the file.

Step 3: Edit ifcfg-eth0 file

The last file we need to edit is the ifcfg-eth0 file under the path /etc/sysconfig/network-scripts/

# vim sysconfig/network-scripts/ifcfg-eth0

Append the following lines to the file,

IPV6INIT=yes
IPV6ADDR=IPv6-IP-Address IPV6_DEFAULTGW=IPv6-IP-Gateway-Address

Then save and exit the file. Make sure that you replace IPv6-IP-Address and IPv6-IP-Gateway-Address with the IPv6 details provided to you.

Step 4: Restart network service

The last step in enabling the IPv6 address on your server is to restart the network service in order for the changes to come into effect.

# /etc/init.d/network/restart
# it may be worked wit next line code 
# service network restart

 The Passage Was from e2enetworks.com

二维码加载中...
本文作者:情空明月      文章标题: How to assign IPv6 on your CentOS server
本文地址:https://mooncn.win/study/365.html
版权声明:若无注明,本文皆为“明月的温馨小窝”原创,转载请保留文章出处。

返回顶部    首页    手机版本    后花园   会员注册   
版权所有:明月的温馨小窝    站长: 情空明月    主题寒光唯美式V2.4.1  程序:emlog   鲁ICP(备)945855号      sitemap