(iv) Play with Me Linux Network Service: DHCP service configuration relay Agent

Source: Internet
Author: User

Following the third part of the DHCP server setup successfully, let's do a relay proxy server configuration.

Our Virtual machine architecture

Specific reference:

(a) Play with Me Linux network services: DNS service--bind (/etc/named.conf,/var/named) settings implementation and interpretation

According to the third part, we deployed the DHCP server above the VM1, we configured the relay service on the vm2 above, the concrete content is as follows:

1. Configure more than one subnet on a file that also configures DHCP under VM1

1ddns-update-style interim;2Ignore client-updates;3 4Subnet10.10.10.0Netmask255.255.255.0 {5Option routers10.10.10.10;6Option Subnet-mask255.255.255.0;7Option Domain-name"ns.gr.org";8Option Domain-name-servers10.10.10.10;9Option Time-offset28800;TenRange DYNAMIC-BOOTP10.10.10.100 10.10.10.200; One         default-lease-time21600; AMax-lease-time43200; - } -Subnet192.168.128.0Netmask255.255.255.0 { theOption routers192.168.128.8; -Option Subnet-mask255.255.255.0; -Option Domain-name"ns.gr.org"; -Option Domain-name-servers10.10.10.10; +Option Time-offset28800; -Range DYNAMIC-BOOTP192.168.128.100 192.168.128.200; +         default-lease-time21600; AMax-lease-time43200; at}

Compare (iii) play with Me Linux Network service: The configuration of the DHCP service configuration of the master server, we delete all the useless, to retain the necessary parts.

2. Install on the VM2

Specific operation reference (iii) play with Me Linux Network service: master server configuration for DHCP service configuration

3. Open the gate virtual machine and set up the relevant content, detailed reference

(a) Play with Me Linux network services: DNS service--bind (/etc/named.conf,/var/named) settings implementation and interpretation

4. When the preparation is done, we start setting the IP address of the VM2 DHCP server, which is the interface that sends the request

# Vi/etc/sysconfig/dhcrelay
1 # Command Line Options here 2 3 interfaces="eth0"45 dhcpservers="  10.10.10.10"

5. Start the DHCP Relay Agent Dhcrelay

# service Dhcrelay Start
Start dhcrelay: [OK] Note: Here simple setup can be run, that is, VM1 and vm2 to add to the other side of the route vm1: # route add-net 192.168.128. 0/24 GW 10.10.10.8vm2 on: # route add-net 10.10.10.0/24 GW 192.168.128.8 start gate forwarding function: [[email protected]root]# vi/etc/sysctl.conf ...Net.ipv4.ip_forward = 1... 6. Whether the test was successfulReference (iii) play with me Linux network services: procedures for the configuration of the master server for DHCP service configuration following steps 5 and 6

(iv) Play with Me Linux Network Service: DHCP service configuration relay Agent

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.