+ All Categories
Home > Technology > Configure DHCP Server and DHCP-Relay

Configure DHCP Server and DHCP-Relay

Date post: 10-Jul-2015
Category:
Upload: tola-leng
View: 700 times
Download: 8 times
Share this document with a friend
52
NETWORK ADMINISTRATION DHCP Server & DHCP Relay-Agent 2013-2015 PASSERELLES NUMERIQEUS CAMBODIA Street 371 Phum Tropeang Chhuk (Borey Sorla), Sangkat Tek Thia Khan Sek Sok P.O. Box 511 Phnom Penh, Cambodia
Transcript
Page 1: Configure DHCP Server and DHCP-Relay

NETWORK ADMINISTRATION DHCP Server & DHCP Relay-Agent

2013-2015

PASSERELLES NUMERIQEUS CAMBODIA

Street 371 Phum Tropeang Chhuk (Borey Sorla), Sangkat Tek Thia Khan Sek Sok P.O. Box 511 Phnom Penh, Cambodia

Page 2: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 1

CONTENTS

LAB Instruction ............................................................................................................................... 2

Windows .......................................................................................................................................... 2

Install DHCP service ...................................................................................................................... 5

Create DCHP Scope .................................................................................................................... 12

Exclude IP address amount 10 IP addresses.............................................................................. 17

Configure DHCP Option.............................................................................................................. 18

IP address Reservation ............................................................................................................... 26

Deny Client by filter Mac address .............................................................................................. 28

Create New scope for LAN-Client .............................................................................................. 31

Show DHCP audit log file ............................................................................................................ 39

Suse Linux ...................................................................................................................................... 40

Adding more NICs and Assign IP address .............................................................. 40

Install DHCP Relay Service ............................................................................................ 47

Configure DHCP Relay Service ..................................................................................... 48

Let client request IP address ........................................................................................ 48

Make sure between LAN client and Windows Server can: ........................... 50

Page 3: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 2

LAB INSTRUCTION

DHCP Server: Computer which functions as server(s) provide

network configurations automatically to client such as IP address,

subnet mask, default, gateway, domain name, DNS server, etc.

WINDOWS

LAN Server

Network Address: 192.168.1.0/24

192.168.1.1 Router/Default Gateway

192.168.1.10 DNS Server

192.168.1.2 – 192.168.1.254 Address pool/scope

192.168.1.10-192.168.1.20 Address Exclusive

LAN Client

Network address: 172.16.120.0/24

172.16.120.1 Router/Default Gateway

192.168.1.10 DNS Server

172.16.120.3 – 172.16.120.254 Address pool/scope

172.16.120.10 – 172.16.120.20 Address Exclusive

Page 4: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 3

Assigned IP address

To configure IPv4 for static addressing Click Start, click Control Panel, click Network and Internet, click Network and Sharing

Center and then click Change Adapter Settings (ncpa.cpl=windows key+r)

Right-click the connection to which you want to add a static IP address and then

click Properties.

Acknowledge the UAC dialog and then double-click Internet Protocol Version 4

(TCP/IP/IPv4).

Click Use the following IP address, and do one of the following:

For a local area connection, in IP address, Subnet mask, and Default gateway, type the IP

address, subnet mask, and default gateway addresses.

Page 5: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 4

Page 6: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 5

*Note: After assigned IP address, we could completed the DNS+AD on

this Server. And then we ought to install and configure DHCP as

picture below:

INSTALL DHCP SERVICE

- Click Start, click Administrative Tools, click Server Manager,

- click Add Roles, click Next, check DHCP server, and then click Next.

Page 7: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 6

Page 8: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 7

Page 9: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 8

Page 10: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 9

Page 11: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 10

Page 12: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 11

Page 13: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 12

CREATE DCHP SCOPE

* A scope is an administrative grouping of IP addresses for computers on a subnet that use

the Dynamic Host Configuration Protocol (DHCP) service.

-To create a new scope in the DHCP console (launched from Start -> All Programs ->

Administrative Tools -> DHCP)

-Right click on IP V4 and click new scope

Page 14: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 13

Page 15: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 14

Page 16: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 15

Page 17: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 16

Page 18: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 17

EXCLUDE IP ADDRESS AMOUNT 10 IP ADDRESSES

- Click Address Pool. Right-click Address Pool, and then click New Exclusion Range.

Page 19: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 18

- In Add Exclusion, in Start IP address, type the IP address that is the first IP address in the

exclusion range.

- in End IP address, type the IP address that is the last IP address in the exclusion range, and then

click Add. And then Click Close.

CONFIGURE DHCP OPTION

- Scope Options

* configure some scope option there are:

-Router/Gateway

Page 20: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 19

-Name Server

-DNS Server and WIN Server

-Right click on scope options and then click on configure options

-Configure Router or Gateway

Page 21: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 20

-Configure DNS Server and Name Server

Page 22: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 21

Page 23: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 22

Page 24: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 23

- Server Options

-Right click on Server option and then click on the configure options

configure some server option there are: -Router/Gateway -Name Server

-DNS Server and WIN Server

Page 25: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 24

Page 26: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 25

-

Page 27: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 26

IP ADDRESS RESERVATION

-DHCP reservations provide a mechanism by which IP addresses may be

permanently assigned to a specific client based on the MAC address of that client

- Right click on Reservations and choose New Reservation...

-Type the reservation name: ex: Lenovo Manager

Page 28: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 27

-Input the specific IP address that want client use : 192.168.1.9

-Input the MAC address of PC manager: ex: 00-0C-29-D1-62-23

Page 29: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 28

DENY CLIENT BY FILTER MAC ADDRESS

Filter for mac address

Page 30: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 29

Page 31: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 30

-Let’s client test by release

Page 32: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 31

CREATE NEW SCOPE FOR LAN-CLIENT

Right click on IPv4 and then click on new scope

Page 33: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 32

Page 34: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 33

Page 35: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 34

Page 36: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 35

Page 37: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 36

Page 38: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 37

Page 39: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 38

Page 40: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 39

SHOW DHCP AUDIT LOG FILE

Go to view the DHCP log file by using type eventvwr in RUN and Enter

Page 41: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 40

SUSE LINUX

DHCP Relay-Agent: The DHCP Relay-Agent (dhcprelay) allows for

the relay of DHCP and BOOTP reques from a subnet with no DHCP

Server on it to one or more DHCP servers on other subnets.

ADDING MORE NICS AND ASSIGN IP ADDRESS

Added a NICs(Network Interface Card and assign IP address for

DHCP relay):

Page 42: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 41

Page 43: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 42

Page 44: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 43

Page 45: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 44

Assigned IP address by using command yast lan

- A network VMnet 3 for DHCP LAN Client

- A network VMnet 4 for DHCP LAN Server

Page 46: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 45

Page 47: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 46

-Restart Network

=> Restart service by using rcnetwork restart

Page 48: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 47

INSTALL DHCP RELAY SERVICE

a. install DHCP server packet by using zipper install –y dhcrelay

Restart DHCP Relay

Page 49: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 48

CONFIGURE DHCP RELAY SERVICE

-Go to configure DHCP Relay-Agent file by vim /ect/sysconfig/dhcrelay

LET CLIENT REQUEST IP ADDRESS

Page 50: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 49

Page 51: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 50

MAKE SURE BETWEEN LAN CLIENT AND WINDOWS SERVER CAN:

- Nslookup

Page 52: Configure DHCP Server and DHCP-Relay

PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION

TOLA.LENG-PC 51

- Ping

I would like to ping from client to server

Below is the IP client

Below is the IP server

So I would like to ping from server to client

The End!


Recommended