Você está na página 1de 8

ARAB AMERICAN UNIVERSITY FACULTY OF ENGINEERING & INFORMATION TECHNOLOGY COMPUTER

SYSTEM ENGINEERING - NETWORKS LAB


EXPERIMENTE #2
DHCP Server and Clients/ Windows and Linux

Pre Laboratory:
1.
2.
3.
4.
5.
6.

What is a DHCP server?


What are the advantages and disadvantages of using DHCP server instead of static ips?
What are the steps need for any client to have configuration form DHCP server?
What is an APIPA?
What is the relationship between DHCP server and APIPA?
What is the DHCP scopes?

Lab Objectives:
1. Install a DHCP server.
2.
3.
4.
5.
6.

Authorize a DHCP server.


Create and configure a DHCP scope, including address ranges.
Configure exclusions DHCP scope.
Configure reservations DHCP scope.
Analyzing DHCP Traffic using Network Monitor.
7. To be familiar with Fedora shell commands.
8. To deal with Fedora as a server.

Procedure:
On Vmware Virtual machine start the windows server 2008, Client windows xp and client
windows 7.

Part 1: DHCP IN WINDOWS SERVER 2008


Section 1: Set the name and the IP of the server-clients.
1. Set the IP of your server to:192.168.10.1
2. Set the name of the server: Myserver.
3. Repeat the last steps to clients to have ip=192.168.10.20 and name is Mycomputer.
Section 2: Verifying the connectivity between Myserver and Mycomputer.

[1]

Dr.Mohammad Hamarshi

Mr.Allam AbuMwais

Mr.Iuas Suqi

ARAB AMERICAN UNIVERSITY FACULTY OF ENGINEERING & INFORMATION TECHNOLOGY COMPUTER


SYSTEM ENGINEERING - NETWORKS LAB
EXPERIMENTE #2
DHCP Server and Clients/ Windows and Linux

1. Use PING command prompt from MyComputer to MyServer.


2. Use PING command prompt from MyServer to MyComputer.
3. Check the firewall status.

Section 3: Adding a DHCP Server Role.


Task 1: Install DHCP and configure the DHCP scope.
After the server restarts and the operating system loads from the hard drive.

1. From MyServer, log on to net-aauj.edu domain as Administrator.


2. Press Ctrl-Alt-Del and log on to the server as administrator. Enter the administrator
password: ----3. When the Windows 2008 Server Manager page appears, if the Windows 2008 Server
Manager page doesnt appear click: start menu Server Manager.
4. On Server Manager Page select Roles add Roles Click next and select DHCP Click
next and follow the instruction.
5. On the Welcome page, click Next. The static ip address of server page appears click
Next.
6. Specify IPv4 DNS server siting.
a. Parent Domain: net-aauj.edu
b. Preferred DNS :192.168.10.1
c. Alternate DNS: 172.10.10.10 click Next.
** Explain the relation between DHCP, Domain LAN and DNS.
7. Specify IPv4 WINS Server Settings select, WINS is not required Next
** What is the WINS Server?
8. Add or Edit DHCP Scopes. Click Add Add Scope Window will appears Fill it with
point 9-12
9. In the Scope Name text box, type S-aauj.
10. In the Start IP Address text box, type 192.168.10.1.
11. In the End IP Address text box, type 192.168.10.100.
12. Verify that the subnet mask value reads 255.255.255.0, Subnet Type : Wired and click
next. Click on activate DHCP.
[2]

Dr.Mohammad Hamarshi

Mr.Allam AbuMwais

Mr.Iuas Suqi

ARAB AMERICAN UNIVERSITY FACULTY OF ENGINEERING & INFORMATION TECHNOLOGY COMPUTER


SYSTEM ENGINEERING - NETWORKS LAB
EXPERIMENTE #2
DHCP Server and Clients/ Windows and Linux

13. The DHCPv6 and IPv6 DNS Setting used for IPv6 configurations, set the default and
click Next.
14. DHCP Server Authorization appear. Use the current credentials Click Next.
15. Confirmation the click Install.

16. After Installation, Start Administrative tool DHCPIPv4 Scope will appear Saauj Expand the name.
17. In address pool the start and end address must appears.
18. Scope Option / Server Option all configurations as DNS will appears.
19. In address Leases field all leases to the clients will appears.
20. In the Address pool right click and select New Exclusion Rang. In the ADD exclusion.
Select address from the Address Range.
21. Start address 192.168.10.5.
22. End address 192.168.10.10. Click Add.
Task 2: Authorize DHCP server.
To authorize DHCP server. Active Directory users and groups.
1. Open the DHCP console by clicking Start, point to Programs, then point to
Administrative Tools, and click DHCP. The DHCP console opens.
2. In the DHCP console tree, expand the MyServer.final.com node. The Scope folder and
Server Options folder appear under the server node. Next to the server node, a red arrow
points downward, indicating that the DHCP server has not yet been authorized.
3. Right-click the server icon and select Authorize. If prompt, type 192.168.10.1, the IP
address of MyServer, and then click Authorize, then click OK.
Task 3: Configuring a DHCP scope.
To Activate DHCP scope.
1) On the Net Scope there is a red arrow points downward, indicating that the DHCP scope
has not yet been activated.
2) Right-click the Net Scope icon and select Activate.

Reserve IP addresses in the scope range.


[3]

Dr.Mohammad Hamarshi

Mr.Allam AbuMwais

Mr.Iuas Suqi

ARAB AMERICAN UNIVERSITY FACULTY OF ENGINEERING & INFORMATION TECHNOLOGY COMPUTER


SYSTEM ENGINEERING - NETWORKS LAB
EXPERIMENTE #2
DHCP Server and Clients/ Windows and Linux

** To reserve IP addresses in the range scope. You use a reservation to create a permanent
address lease assignment by the DHCP server. Reservations assure that a specified hardware
device on the subnet can always use the same IP address. For example, if you have defined the
range 192.168.10.11 through 192.168.10.254 as your DHCP scope, you can then reserve the
IP address 192.168.10.100 within that scope for the network adapter whose hardware address
is 00-b0-d0-01-18-86. Every time the computer hosting this adapter boots, the server
recognizes the adapters Media Access Control (MAC) hardware address and leases the same
address 192.168.10.100.**
1) Open the DHCP console by clicking Start, point to Programs, then point to
Administrative Tools, and click DHCP. The DHCP console opens.
2) Expand the net-aauj.edu node, and then expand the scope S-aauj.
3) Right-click Reservations.
4) Select New Reservation. The New Reservation dialog box is opened.
5) In the Reservation name text box type: MyComputer.
6) In the IP address text box type: 192.168.10.70.
7) In the MAC address text box type: MAC address of myComputer. Note: To see the
MAC address of a windows XP PC.
a) On MyComputer PC, right click My Network Places.
b) Click on Properties.
c) Right click Local Area Connection.
d) Click on Status, choose Support tab.
e) Click on Details Button.
f) Now the Physical Address is the MAC Address.
**Or Using Command Line

8. Add then close

Section 4: Configure client to take IP address from DHCP server.


Now you will work in MyComputer PC
Task 1: Notice the procedure used to take the IP address.
1.
2.
3.
4.
5.

Right click My Network Places.


Click on Properties.
Right click Local Area Connection.
Click on Status.
Choose Support tab.
[4]

Dr.Mohammad Hamarshi

Mr.Allam AbuMwais

Mr.Iuas Suqi

ARAB AMERICAN UNIVERSITY FACULTY OF ENGINEERING & INFORMATION TECHNOLOGY COMPUTER


SYSTEM ENGINEERING - NETWORKS LAB
EXPERIMENTE #2
DHCP Server and Clients/ Windows and Linux

Notice that the Address Type is Manually Configured.


Task 2: Determine the procedure to take IP address.
1. Right click My Network Places.
2.
3.
4.
5.
6.
7.
8.

Click on Properties.
Right click Local Area Connection.
Click on Properties.
In the General tab, in the list choose Internet Protocol (TCP/IP).
Click on Properties.
Choose Obtain an IP address automatically.
Click OK twice.

Task 3: Notice the procedure used to take the IP address.


1. Right click My Network Places.
2. Click on Properties.
3. Right click Local Area Connection.
4. Click on Status.
Choose Support tab.
Notice that the IP address is 192.168.10.70
And the Address Type is assigned by DHCP.
** Return to address leases in the Scope of DHCP what happened.

Task 4: Testing and changing the configuration.


1. IPCONFIG/ALL: Is a command prompt for showing the PC configuration.
2. IPCONFIG/RELEASE: Is a command prompt for releasing the IP address of the PC.
(IP address from the DHCP).
3. IPCONFIG/RENEW: Is a command prompt to take an IP address from the DHCP.

Homework: Using Network Monitor tool.


**Network Monitor is a software-based traffic analysis tool that allows a user to perform
many tasks; you might use Network Monitor to diagnose hardware and software problems
when the server computer cannot communicate with other computers. Frames captured by
Network Monitor can be saved to a file and reviewed for later analysis. **

[5]

Dr.Mohammad Hamarshi

Mr.Allam AbuMwais

Mr.Iuas Suqi

ARAB AMERICAN UNIVERSITY FACULTY OF ENGINEERING & INFORMATION TECHNOLOGY COMPUTER


SYSTEM ENGINEERING - NETWORKS LAB
EXPERIMENTE #2
DHCP Server and Clients/ Windows and Linux

Part 2: DHCP IN REDHAT LINUX


Section 1: Set the static IP of the fedora server.
1. Go to configuration file of the Ethernet 0.
#Vi /etc/sysconfig/network-scripts/ifcfg-eth0
2. In the vi editor write the following configuration understands each line
DEVICE="eth0"
NM_CONTROLLED="yes"
ONBOOT="no"
TYPE=Ethernet
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"
UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03
HWADDR=00:0C:29:9F:A0:F3
IPADDR=192.168.146.133
PREFIX=24
GATEWAY=192.168.146.1
DNS1=192.168.146.1

3.
4.
5.
6.
7.
8.

Service network restart


Service NetworkManager restart
Show the ip address using # ifconfig
Use ping ip address to test whether host is reachable.
Use CTRL+C to stop the command.
Notice that the server must have static ip address.

Section 2: DHCP Server Overviews.


1.
2.
3.
4.
5.

Package Name: dhcp..rpm to test if the package installed # rpm q dhcp.


To install package using yum commands # yum y install dhcp.
Service Name:dhcpd # service dhcpd {start, stop, restart and status}.
Configuration file: /etc/dhcp/dhcpd.conf
Logs file: /var/log/messages

Section 3: DHCP Server Configuration.


Go to configuration file of DHCP server and write the below configration.
1. # vi /etc/dhcp/dhcpd.conf
[6]

Dr.Mohammad Hamarshi

Mr.Allam AbuMwais

Mr.Iuas Suqi

ARAB AMERICAN UNIVERSITY FACULTY OF ENGINEERING & INFORMATION TECHNOLOGY COMPUTER


SYSTEM ENGINEERING - NETWORKS LAB
EXPERIMENTE #2
DHCP Server and Clients/ Windows and Linux
subnet 193.168.64.0 netmask 255.255.255.0{
option domain-name-servers 192.168.64.10, 192.168.65.10;
option domain-name "skitce-allam.ps";
option routers 192.168.64.1;
range 192.168.64.10 192.168.64.100;
default-lease-time 21600;
max-lease-time 43200;
}

2. # service dhcpd restart


3. # cat /var/log/messages checking any errors

Section 3: DHCP Server Reservation.


As we explain about reservation in windows server, it reserved specific IPs with host MAC
address.
To do this in fedora-Linux server.
1. # vi /etc/dhcp/dhcpd.conf
subnet 193.168.64.0 netmask 255.255.255.0{
option domain-name-servers 192.168.64.10, 192.168.65.10;
option domain-name "skitce-allam.ps";
option routers 192.168.64.1;
range 192.168.64.10 192.168.64.100;
default-lease-time 21600;
max-lease-time 43200;

host allam-pc {
hardware Ethernet 0A:77:64:78:C5:6C MAC address with any server
FIXED-ADDRESS 192.168.69.55;
}

2. #service dhcpd restart


3. Check the ip address of the clients. It must have 192.168.69.55.

[7]

Dr.Mohammad Hamarshi

Mr.Allam AbuMwais

Mr.Iuas Suqi

ARAB AMERICAN UNIVERSITY FACULTY OF ENGINEERING & INFORMATION TECHNOLOGY COMPUTER


SYSTEM ENGINEERING - NETWORKS LAB
EXPERIMENTE #2
DHCP Server and Clients/ Windows and Linux

Post Laboratory
1. What is the DOS command prompt to start the DHCP server?
2.
3.
4.
5.
6.
7.

What is the DOS command prompt to stop the DHCP server?


What is the DOS command prompt to pause the DHCP server?
What is the DOS command to return the mac address of any clients from server?
What is the DOS command prompt to continue the DHCP server?
What is 80/20 Rule for Servers and Scopes?
There are two versions of Network Monitor are available, what are there? What the
differences between them?
8. What is the WINs in windows server?
9. What is the difference between Ctr+C and Ctr+Z in linux commands?
10. In which partition of file system the configuration files store?
11. What is the difference between network and NetworkManager services?

[8]

Dr.Mohammad Hamarshi

Mr.Allam AbuMwais

Mr.Iuas Suqi

Você também pode gostar