11/13/2014
Email: vannaisat7@gmail.com www.khmer-free9.blogspot.com 1
Contents Windows ........................................................................................................................................ 3
I. 1.
Install DHCP service ................................................................................................................. 3
2.
Create DCHP Scope .................................................................................................................. 8
3.
Exclude IP address amount 10 IP addresses ..........................................................................14
4.
Configure DHCP Option ........................................................................................................15 -
Scope Options ......................................................................................................................15
-
Server Options .....................................................................................................................17
5.
IP address Reservation ............................................................................................................20
6.
Deny Client by filter Mac address .........................................................................................22
7.
Create New scope for LAN-Client .........................................................................................24
8.
Show DHCP audit log file ......................................................................................................31
1.
Adding more NICs and Assign IP address ............................................................................31
2.
Install DHCP Relay Service ...................................................................................................33
3.
Configure DHCP Relay Service .............................................................................................33
4.
Let client request IP address ...................................................................................................34
5.
Make sure between LAN client and Windows Server can: ..................................................35 -
Nslookup ..............................................................................................................................35
-
Ping .......................................................................................................................................35
11/13/2014
II. Suse Linux ...................................................................................................................................31
2
I.
Windows 1. Install DHCP service For install DHCP service we need to allow all step below: We just click on service
and then click on Add roles and feature for install DHCP
11/13/2014
We just click next for continue
3
We need to tick on Roles based or feature based installation for configure a single server by adding roles role services and features and then next
11/13/2014
We just tick on select a server from the server pool for select destination server and next
4
For this step we tick on DHCP service and then alert massage just click on Add Feature and next
11/13/2014
Just click on next for continue
5
We just tick on Next
11/13/2014
We just click on next
6
This step for confirm installation selection | if we want to restart the destination server automatically if required we can tick it | if no we are not tick it and then click on install for install DHCP service
11/13/2014
This result after we install it
7
2. Create DCHP Scope For create DHCP scope we allow all step below: Right click on IPv4 => New Scope => Next for continue to configure Scope IP address when client request and client have IP automatically to clients
11/13/2014
We just click on next
8
We need to assign the name for New Scope that we configure and is ITAdmin
11/13/2014
This step IP Address Range when we allow client request | Start IP mean that the first IP address for client request | End IP address mean that the last IP that client request => next
9
This step Add Exclusions and Delay for special client when we want to configure for them next
11/13/2014
This step Lease Duration | the lease duration specifies how long a client can use an IP address from this scope => next
10
Configuration DHCP Options | You have to configure the most common DHCP options before clients can use the scopes | we just tick on Yes, I want to configure these options now => Next
11/13/2014
This step is optional if we have gateway we put it here => next
11
This step about Domain Name and DNS Servers | The Domain Name System ( \sDNS) maps and translates domain name used by clients on your networks | You can specific the parent domain you want the client computer on your network to use DNS name resolutions => next
11/13/2014
This step about WINS servers | Computers running Windows can use WINS servers to convert NetBIOS Computer name to IP addresses =>next
12
This step for Activate Scope | Clients can obtain address leases only if a scope is activated. We just click on Yes, I want to activate this scope now => next
11/13/2014
After we create scope have one scope name ITAdmin | Range from 192.168.11.11 to 192.168.11.111| and we exclude if Range from 192.168.11.22 to 192.168.11.31
13
Test Clients We just use command ipconfig /release for release old IP address | ipconfig /renew for renew new IP address
11/13/2014
3 Exclude IP address amount 10 IP addresses This step we just Exclude IP 10 | Start from 192.168.11.22 to 192.168.11.31 ( amount 10 IP address)
14
4 Configure DHCP Option - Scope Options Scope Options it mean that configured for assignment to DHCP clients, such as Domain Name System (DNS) server, router IP address, and Windows Internet Name Service (WINS) server address. Reservations, optionally used to ensure that a DHCP client always receives the same IP address. We just right click on Scope Option => Configure Options
11/13/2014
This step we just tick on 003 Router and assign of router if we have router => Apply
15
This step to configure DNS server we just tick on it and put IP address of DNS server => Apply
11/13/2014
We just configure DNS Domain name => Apply
16
This result after we configure it
- Server Options Server options Assign values here (using the General tab) for options that should apply to or be inherited by all scopes and clients of the DHCP server as defaults. Options configured here can have their values overridden by different values if those values are set at either a scope, options class, or reserved client level.
11/13/2014
For this step to configure Server Options | We just Right click on Server Options => Configure Options
17
This step we just tick on 003 Router and assign of router if we have router => Apply
11/13/2014
This step to configure DNS server we just tick on it and put IP address of DNS server => Apply
18
We just configure DNS Domain name => Apply
11/13/2014
This result after we configure it
19
5 IP address Reservation Reservations is Assign values for options that should apply only to a specific reserved DHCP client. To use this level of assignment, you must first add a reservation for the applicable client to the applicable DHCP server and scope where the client is to obtain its IP address. These options are set for an individual DHCP client configured with an address reservation in a scope. Only properties manually configured at the client computer can override options assigned at this level. This mac-address of client that we want to reservation
11/13/2014
We just right click on Reservations => New Reservations
20
This step we assign the name of reservation name and mac-address of clients and Add
11/13/2014
This step for result after us configure reservations when client request clients have IP, Gateway, DNS server , DNS Domain name
21
Test client Request | we just use command ipconfig /release for release old IP | ipconfig /renew for new IP address |
6 Deny Client by filter Mac address Just to follow below all step The MAC (Media Access Controller) Address filter option is used to control network access based on the MAC Address of the network adapter. A MAC address is a unique ID assigned by the manufacturer of the network adapter. This feature can be configured to ALLOW or DENY network/Internet access.
11/13/2014
We just right click on Deny => New Filter……….
22
This step we got mac-address from client to put in box => Add
11/13/2014
This result after we deny one mac-address
23
This step client test ipconfig /release IP address for remove old IP and ipconfig /renew IP address for find new IP address | After that when client request can’t find new IP address because IP address is deny by DHCP server make filter for deny mac-address client
11/13/2014
7 Create New scope for LAN-Client We just right click on IPv4 => New Scope ……………….
24
Just click on next
11/13/2014
This step we just assign the name LAN-Clients => next
25
On the IP Address Range screen, enter a starting IP address followed by an Ending IP address. This create the scope’s range, which will be used to assign addresses to clients. Under Configurating settings that propagate to DHCP client section of the IP Address Range screen, either enter a subnet bit length (CIDR) in the Length field, or enter the dotted decimal notation of the subnet mask.
11/13/2014
On the Add Exclusions and Delay screen, we can set IP addresses from within the range we defined that should be excluded. For example, if our range includes the IP address of our network gateway, we probably do not want our clients to use it, so we would add its IP address to the exclusion list. Click Next when done.
26
Lease duration in a scope to reduce network traffic. Increase the lease duration only if that segment of your network has a large number of IP addresses available and a configuration that rarely changes. Increasing lease duration reduces the rate at which IP addresses are reclaimed when changes occur. On the Lease Duration screen, enter the length of time a client should be assigned an IP address. When done, click Next.
11/13/2014
On the Configure DHCP Options screen, select Yes, I want to configure these options now, and then Click Next.
27
On the Router (Default Gateway) screen, enter the IP address of the gateway clients should use. Click Next when done.
11/13/2014
On the Domain Name and DNS Servers screen, enter the IP addresses of all DNS servers the client should use. Click Next when done.
28
On the WINS Servers screen, if you have WINS servers add them here. Click Next when done. Most Windows environments no longer use WINS for name resolution. Although, some legacy applications and hardware may still require it, so check your environment before skipping this.
11/13/2014
On the Activate Scope page, select Yes, I want to activate this scope now. A scope must be activated before it is allowed to assign clients IP addresses. If you do not want to activate it at this time, select No, I will activate this scope later. Click Next when done.
29
Click on finish
11/13/2014
This result after we configure it
30
8 Show DHCP audit log file We just window + R (%windir%\System32\Dhcp) for to know audit log file
II Suse Linux 1. Adding more NICs and Assign IP address We need to follow all step: We go to assign IP address by using command line ( yast lan)
11/13/2014
Just assign IP 192.168.100.3 for one network cards
31
Just assign IP 172.16.100.1 for one network cards
This result after we configure it
11/13/2014
Show result we just use command ifconfig
32
2. Install DHCP Relay Service Just write command yast 窶的 for configure dhcprelay agent A relay agent is a small program that relays DHCP/BOOTP messages between clients and servers on different subnets. DHCP/BOOTP relay agents are part of the DHCP and BOOTP standards and function according to the Request for Comments (RFCs), standard documents that describe protocol design and related behavior.
We just write relay
Restart service of relay agent use command rcdhcprelay restart
11/13/2014
3. Configure DHCP Relay Service We use this command for assign Ethernet command is vi /etc/sysconfig/dhcprelay
33
We just write eth1 and eth2 | 192.168.100.3
This step we just routing give client can ping together | use cat /porc/sys/net/ipv4/ip_forward for status of relay | use echo 1 > /porc/sys/net/ipv4/ip_forward for routing IP address 192 and 172
11/13/2014
4. Let client request IP address
34
5. Make sure between LAN client and Windows Server can: - Nslookup
11/13/2014
- Ping
35