Install DHCP in liunx

Source: Internet
Author: User
Configure dhcp server 1. create the disk mount location mkdir-p/media/cdrom2, mount/dev/cdrom/media/cdrom3, and enter cd/media/in SERVER mode/ cdrom/Server4, view the DHCP file lsdhcp * 5, cp file /...

Configure DHCP server
1. create the disk mount position mkdir-p/media/cdrom
2. mount the disk file mount/dev/cdrom/media/cdrom.
3. enter cd/media/cdrom/SERVER in Server mode
4. view the DHCP file ls dhcp *
5. cp file to/etc/dhcpd. conf cp/user/share/doc/dhcp-3.0.5/dhcpd. conf. sample/etc/dhcpd. conf
6. edit dhcpd. conf vi/etc/dhcpd. conf.
7. restart dhcp server dhcpd restart
Configure the DHCP client
1. set the network adapter eth0 to obtain the IP address through DHCP
Vi/etc/sysconfig/network-soripts/ifcfg-eth0
2. restart the Nic service ifdown eth0; idup eth0
3. use dhclient-d eth0 to obtain the address dhclient-d eth0
 
This article is from the "Dong 'er" blog

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.