Professional Documents
Culture Documents
03-135182-012 M.saad SNA Mid Paper
03-135182-012 M.saad SNA Mid Paper
Lahore Campus
Midterm- Lab (Fall-2020 Semester)
Department of Computer Sciences
Lab Midterm Date: 11th November, 2020
Instructions:
Read out the Instructions carefully.
IV. Timely submission is required, if in case of even 01 min late the exam will not be accepted at all.
VI. If there is any query regarding Midterm it should be asked via personal message on WhatsApp, but not
in course groups. If anyone tried to do so, negative marking will be done.
VII. For Output you need to take full screen Screenshot and paste it in the given space.
VIII. Submission method is as follows, it should be strictly followed otherwise marks will be deducted
Make a Folder to add this word solution file in the folder naming “Name_Enroll_Midterm_Section”
along with the .cpp files of each programming question. The .cpp file name should be saved according
to the question no i.e “Q1.cpp” (no cpp file required for output question). Make .zip/.rar of the folder
and upload it on the given link on LMS.
___________________________________________________________________________________________
Page 1 of 23
Question No 01: [15 marks]
Cybernet, a part of Lakson Group of Companies, is a leading Internet and Data Communication Network Service
Provider in Pakistan. Our company focuses on providing specialized solutions for different enterprises with end-
to-end solutions, be it Single-Site or Multi-Site Data and Internet Connectivity Solutions, Wholesale or Multi-
homed Internet Solutions, Local or International VPN Solutions, Backhauling Solutions, Enterprise Voice
Solutions, Cloud Powered Hosting, Disaster Recovery and Data Center Co-location Services or Enterprise/SMB
Web and E-mail Solutions. We’re currently present in 20 cities within Pakistan, offering various technology
services to more than 1500 corporate customers in 52 cities and towns. Cybernet Started a child company name
Storm Fiber for share the Internet Services amount home users. They have need to design a network server for
Storm Fiber network to manage external or internal Clients.
ANS:
1. Firstly we install Active Directory so we need first to set host machine network to NAT in Win 7 and
Also Server 2008.
Win 7:
Page 2 of 23
Server 2008:
1.2. After setting the NAT Network option then go to Server also set IP Address:
Page 3 of 23
First, go to Network icon on the bottom on right side and right click on it.
Click on Network and sharing center.
1.3. After open Network and Sharing Center then go to left side.
Click on Manage Network Connection.
Page 4 of 23
1.4. Now rename the Adapter name to Storm Fiber User
Then right click on Adapter and click on status a new window pop up.
Page 5 of 23
1.5. Then go to properties.
Page 6 of 23
1.6. Now click on Version 4 (TCP/IPV4) and double click on it.
Now set the IP address.
Make sure win 7 network and server 2008 network IP address are same.
Win 7 IP Address:
Page 7 of 23
1.7. Now close all the windows that are showing on desktop
Now go to Server Manager and go to configuration and click on Local User and Groups and
double click on it.
Now double click on user.
Now Right click on Administrator and a new window pop up.
Now go to set password and set the Administrator password.
Page 8 of 23
Page 9 of 23
1.8. Now close all the windows and go to windows menu button and click on RUN.
And write the command DCPROMO
This command is used for making Active directory
Page 10 of 23
1.10. Now make the Active directory
After making directory
Restart your Server
Page 11 of 23
1.11. Now go to Win 7 and right Click on My computer
Now right click on my computer and click on properties
Now go to change setting and click on it
And now Set the machine name and Domain Name
Page 12 of 23
1.12. Now restart the machine and check the Connection by using CMD:
Page 13 of 23
1.13. Domain is created and work perfectly.
Page 14 of 23
3. Now make the External and Internal Group
Page 15 of 23
3.1. now create user
External:
Page 16 of 23
Internal:
Page 17 of 23
4. Now ping from users:
External ping user:
Page 18 of 23
Question No 02: [10 marks]
Dynamic Host Configuration Protocol (DHCP) is a network management protocol used to automate the process
of configuring devices on IP networks.
1. DHCP provides a static and dynamic address allocation that can be either automatic or manual. Static
addresses are produced manually while dynamic addresses are generated automatically.
2. So when the DHCP client requests to its associated domain, the servers first locate their static database,
and when the entry matches, the client's IP address is returned. But if the entry is not matched, it uses the
Dynamic Address
3. Allocation principle, where DHCP has a pool of available IP addresses, assigns the address from the pool
to the DHCP client, and adds the entry to the dynamic database.
Page 19 of 23
4. The addresses allocated from the pool are temporary addresses and, at the end of the lease term, the client
must either stop using that IP address or renew that IP address as per the server instructions.
5. This is the application layer protocol used by hosts to obtain network setup information. A DHCP server
that dynamically distributes network configuration parameters such as IP addresses, subnet masks, and
gateway address manages DHCP.
ANS:
Page 20 of 23
go to menu.
Now go to administrator tool
Not go to dhcp
And set the ip pool
And set the pool setting
There are three types of networking available to virtual machines. Each type has its own uses, behaviors and
features, describes according steps following.
Page 21 of 23
Network Address Translation (NAT) can set up a virtual router on your host. This will encourage you to set up a
subnet on the VM / s with all traffic to / from the subnet being routed to the host. Both IP addresses in the subnet
would be different from the host. This choice makes more sense if you want a few VMs that can communicate
together and access the Internet.
Bridged means that the VM would have an IP address in the same domain as the host. It's going to act as like it
was just another computer on the same network as the host. This choice is primarily used when you don't need to
be on a different network and need Internet access.
Host means that the NIC can only interact with the host and other VMs on the host. It will not be able to access
the physical NIC of the host, because there will be no access to the Internet or any other infrastructure on the
physical LAN beyond the host.
Hyper-V in Windows and Windows Server replaces older hardware virtualization products such as Microsoft
Virtual PC, Microsoft Virtual Server and Windows Virtual PC. Hyper-V provides networking, performance,
storage and security features that are not included in these older products.
Hyper-V and most third-party virtualization applications that need the same processor features are not compatible.
This is because the processor functions, known as hardware virtualization extensions, are designed not to be
shared.
Page 22 of 23
By clicking the option we change the adaptors.
c. What are the roles of these adaptors when we connect to Host Network, screen shots must be attach of
their networks.
ANS:
Page 23 of 23