Many of our friends downloaded the Linux operating system. With the network upgrading, we also need to configure IPv6 in our own system. Now, we will share with you the Linux IPv6 Configuration experience and hope that you can learn this configuration method.
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:
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 to delete the ipv6 module. 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 ipv6 local link address for the NIC). The address here starts with [fe80. If the machine is connected to a vroipv6 that supports ipv6 and is configured with a stateless address, then the system automatically configures a Global Address for the NIC ). 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 the Network Prefix 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:
PING 2001: 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 can view the static route table of ipv6 );
Route-A inet6 add default gw 2001: 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"