Operating System: Fedora14DHCP server: DHCPv6 the current network environment DHCPv6server address is: 2001: db8: 0: f101: 2 Route IP Address: 2001: db8: 0: f101 :: 1DNSserver address: 2001: db8: 0: f101: 3 automatically assigned CIDR Block: 2001: db8: 0: f101: 1000 ~ 2001: db8: 0: f101: ffff/64 first, install
Operating System: Fedora 14
DHCP server: DHCPv6
In the current network environment, the DHCPv6 server address is: 2001: db8: 0: f101: 2.
Route IP Address: 2001: db8: 0: f101: 1
The DNS server address is 2001: db8: 0: f101: 3.
Automatically assigned CIDR blocks: 2001: db8: 0: f101: 1000 ~ 2001: db8: 0: f101: ffff/64
First, install the ipv6 Module
Installation command:
# Insmod ipv6
Or # modprobe ipv6
Configure the NIC to enable the ipv6 function.
# Vi/etc/sysconfig/network
Add:
NETWORKING_IPV6 = yes
20176_defaultgw = 2001: db8: 0: f101: 1
6_defaultdev = eth0
# Vi/etc/sysconfig/network-scripts/ifcfg-eth0
Add:
IPV6INIT = yes
IPV6_AUTOCONF = no
20176addr = 2001: db8: 0: f101: 2/64
Restart the network
# Service network restart
Finally, install the dhcpv6 server
# Yum search dhcpv6 // If dhcpv6 is not available, update the source code or download the source code package to install it. I will not describe the installation here.
(The general steps are as follows:
#./Configure // if you are lucky, you can pull it once. Otherwise, you need to install other libraries.
# Make
# Make install)
# Yum install dhcpv6
Configure dhcpv6 server
# Vi/etc/dhcpv6s. conf // create if no
Content:
Interface eth0 {
Server-preference 255;
Renew-time 60;
Rebind-time 90;
Prefer-life-time 130;
Valid-life-time 200;
Allow rapid-commit;
Option dns_servers 2001: db8: 0: f101: 1 limit 6.server. domain;
Link AAA {
Range 2001: db8: 0: f101: 1000 to 2001: db8: 0: f101: ffff/64;
Prefix 2001: db8: 0: f101:/64;
};
};
Configure dhcpv6 clinet
# Vi/etc/dhcp6c. conf // This is on the client. When dhcpv6 is not installed on the client, configure it according to the actual situation. If yes, follow this configuration. If no file exists, create
Interface eth0 {
Send rapid-commit;
Request domain-name-servers;
};
Enable service commands
# Service dhcp6s start // If dhcpv6 is compiled and installed, it may not be recognized by the service. Use the following command:
# Dhcp6s-f-c/etc/dhcp6s. conf eth0 &
// If the instance cannot be started properly, add the-v parameter for debugging and remove the &, that is (
Dhcp6s-vf-c/etc/dhcp6s. conf eth0)
My problem is solved in the following ways:
# Cd/var/run/
# Mkdir dhcpv6
# Cd/var/lib/
# Mkdir dhcpv6
# Mkdir lib
# Cd lib
# Mkdir dhcpv6
# Dhcp6c-f eth0 // used by the client