Configure the dhcpv6 server under Fedora

Source: Internet
Author: User
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

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.