Dhcp service configuration in rh-9 4

Source: Internet
Author: User
Rh-9 dhcp service configuration 4-Linux Enterprise Application-Linux server application information, the following is read details. 3. assign IP addresses of multiple CIDR blocks
If multiple ip subnets exist in a large physical network and dhcp services are required to provide services, one method that can be used is to set up a dhcp server in each network segment, which is obviously a waste of resources. Therefore, you should consider using the dhcp relay proxy function. The dhcp relay proxy function allows you to forward dhcp client requests from subnets without dhcp servers to one or more dhcp servers in other subnets.
4. Set super scope on the dhcp server
Modify dhcp. conf on the dhcp server (192.168.16.177)
Shared-network name {
Network id of subnet 1 netmask subnet mask {
...
}
Network id of subnet 2 netmask subnet mask {
...
}
}
For example, for the configuration in the attachment diagram, I have omitted
Ddns-update-stytle interim;
Ignore client-updates;
Shared-network mysuperdhcp {
Option ...;
Option ...;

Subnet 192.168.16.0 netmask 255.255.255.0 {
Range 192.168.16.11 192.168.16.100;
Option ...;
...
}

Subnet 192.168.20.netmask 255.255.255.0 {
Range 192.168.17.10 192.168.17.100;
Option router 192.168.17.1;
Option ...;
...
}

Subnet 192.168.18.0 netmask 255.255.255.0 {
Range 192.168.18.10 192.168.18.100;
Option router 192.168.18.1;
Option ...;
...
}
}
5. Set dhcp relay proxy
It is easy to install the dhcp proxy on the computer connected to the three NICs, as long as the dhcp service is installed, because the dhcp service will automatically install the dhcp proxy dhcprelay.
Modify the vi/etc/sysconfig/dhcprelay file as follows:
# Command line option here
INTERFACES = "eth1 eth2"
DHCPSERVERS = "192.168.16.177"
You can also run the dhcrelay-I eth1-I eth2 192.168.16.177 command.
6. Start and Stop The dhcp Service
/Etc/init. d/dhcpd start
/Etc/init. d/dhcpd stop
/Etc/init. d/dhcpd restart
7. Set dhcp to start automatically
Run the ntsysv command to start a service configuration window and add the asterisk before dhcpd.
8. dhcp Client Configuration
In linux, change vi/etc/sysconfig/network-scripts/ifcfg-eth0 to BOOTPROTO = dhcp,
Then restart the available Nic commands ifdown eth0; ifup eth0 or ifconfig eth0 down; ifconfig eth0 up
Test ifconfig eth0
In windows, set the TCP/IP attribute to automatically get the ip address and automatically get the dns server address.
Test ipconfig/release ipconfig/renew in the command line window

************

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.