IPv6 details Linux IPv6 Configuration

Source: Internet
Author: User
Tags ldap openldap

Take redhat9.0 as an example. The default kernel version of the system is 2.4.20-8, and the IPv6 module has been provided. The configuration process is as follows:

Log on as a root user (the commands in the following example are case sensitive)

Linux IPv6 Configuration 1: loading the IPv6 Module

Run the command insmod IPv6 or modprobe IPv6, and then run the command lsmod to view the list of modules loaded by the system. If IPv6 is displayed, the module has been loaded successfully. Run rmmod
IPv6 can delete IPv6 modules. You can also enable the system to automatically load the IPv6 module when the network is started by editing the/etc/sysconfig/network file and adding a new line of networking_ipv6 = yes.

 

Linux IPv6 Configuration 2: Configuring IPv6 addresses

By default, once the IPv6 module is loaded, the system automatically configures the local link address (link local address) of IPv6 for the NIC. The address here starts with [fe80. If a router that supports IPv6 is configured with a Stateless Address in the network connected to the machine, the system automatically configures a global address (Global
Address ). The local link address is unique in the local link, and the global address is unique in the Global IPv6 network.

You can also manually configure the IP address for the network card. For example, if the network card is an Ethernet card, you can use the following command to configure a Global IP address for the network card as 2001: 250: 3000: 1: 1: 1, IPv6 address with a network prefix of 112:
Ifconfig eth0 add 2001: 250: 3000: 1: 1: 1/112

 

Linux IPv6 Configuration 3: test network connectivity

Before the network connectivity test, there is another IPv6 network node, which can be a common IPv6-supported PC or IPv6-supported router. They are either directly connected at the link layer or indirectly connected at the link layer through other IPv6-supported network nodes. If the global address of the network node of another machine is 2001: 250: 3000: 1: 1: 2, run the following command: ping6
2001: 250: 3000: 1: 1: 2/112

 

You can see the following results:

Ping2001: 250: 3000: 1: 1: 2 (2001: 250: 3000: 2: 1: 1) 56 data bytes

64 bytes from 2001: 250: 3000: 1: 1: 2: icmp_seq = 1 TTL = 64 time = 0.082 MS

64 bytes from 2001: 250: 3000: 1: 1: 2: icmp_seq = 2 TTL = 64 time = 0.058 MS

This indicates that the IPv6 network connectivity between the two nodes is normal.

 

Linux IPv6 Configuration 4: Configuring static route tables

Route-A inet6 (you can view the static route table of IPv6 );

Route-A inet6 add default gw2001: 250: 3000: 2: 2c0: 95ff: fee0: 473f (add a static route record to the system's static route table)

Linux IPv6 Configuration 5: supported services

Web Services

Server Apache 2.0.40

Start method:/etc/init. d/httpd start

Client Lynx 2.8.5

Running Method: Lynx http: // [IPv6-address]: Port/

 

LDAP Service

I use the server and client provided by OpenLDAP, an open-source project. The version number is 2.0.25 and its website is http://www.openldap.org/. this software can support IPv6.

Server startup method:/etc/init. d/ldap start

Client Access Method: ldapsearch-X-H [ipv6-addr]-d "cn = manager"

 

Add an IPv6 address to SuSE 10:

You need to modify the following two configuration files:
/Etc/sysconfig/network:

Networking_ipv6 = Yes
/Etc/sysconfig/network-scripts/ifcfg-ethx # X indicates the serial number of the NIC.
Ipv6init = Yes
Ipv6addr = <IPv6 address> # Replace <ipv6address> with your own IP address.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.