Pages

Showing posts with label dhcp. Show all posts
Showing posts with label dhcp. Show all posts

Tuesday, May 30, 2017

DHCP on Packet tracer through Server

DHCP on Packet tracer through Server


We are going to apply DHCP on server and PCs will be assigned IP addresses through DHCP.
serv1
Open the server and go to the Desktop tab, click IP Configuration and enter the IP address.
2
Now, go to the Config tab.
3
And go to the DHCP
4
i. Enter IP for default Gateway.
ii. Start IP address
iii.. Maximum number of Users.
iv. Click Save.
6
Now, click on any PC that is attached to the server, go to IP configuration and select DHCP. You will see that DHCP will successfully assign IP address to the PC
7
Now, if we go back to server and assign DNS Server address and then go to any PC and select DHCP.
9 
It will also assign DNS to the PC as well.   
 10  
We can also open the website of the server through any PC by going to the Web Browser option and entering the IP address of the server.
11
And we can ping the server by going to the PC�s command prompt and entering server�s IP address.
12

Technorati Tags: packet tracer,packet tracer tutorial,dhcp on pt,dhcp on packet Tracer,dhcp through server,dynamic host configuration protocol on packet Tracer,dns dhcp on packet tracer,networking tutorial,pt and networking
Read more »

Sunday, April 16, 2017

DHCP on packet tracer

DHCP on packet tracer


This tutorial is about how to configure dhcp on cisco router in packet tracer. The Dynamic Host Configuration Protocol (DHCP) is a network protocol that is used to configure network devices. DHCP allows a computer to join an IP-based network without having a pre-configured IP address. DHCP is a protocol that assigns unique IP addresses to devices, then releases and renews these addresses as devices leave and re-join the network. 
Internet Service Providers (ISPs) usually use DHCP to allow customers to join the Internet with minimum effort. The DHCP server maintains a database of available IP addresses and configuration information. When it receives a request from a client, the DHCP server determines the network to which the DHCP client is connected, and then allocates an IP address. DHCP servers typically grant IP addresses to clients only for a limited interval.

Lets apply DHCP on packet tracer.
First, let us make a topology with one router on which we will apply DHCP and several client PCs. More like this one,

Untitled

Now, we will apply DHCP on the router.
The commands in sequence are as follows.


cli actual

In the following command �ip dhcp pool cisco�, we are creating a  pool for DHCP called cisco. cisco is the name here and we can name it whatever we want.
Similarly, in the command �default-router � we are telling the DHCP about the default route to follow.
Notice, after we exit from DHCP mode, we are excluding some IP addresses by applying this command �ip dhcp excluded-addresses x-x�, where x is the starting and ending IP address respectively. We are basically reserving some IPs for our use. It can be used to attach printers, or assign it to some specific users for security purposes. You can also give dns address in dhcp by using the following command.
dns-server 192.168.1.15.

Now, open the PC.

image

Click on IP Configuration

image

Select from Static to DHCP

image

And after DHCP request is completed you will see the following screen.

image

Now, after applying some IPs in sequence, DHCP will skip the IPs that we have excluded from our DHCP pool.

image

That is all, we have applied DHCP on packet tracer.

Technorati Tags: dhcp protocol on Packet Tracer,Packet tracer tutorial,Packet tracer networking,networking on Packet tracer,networking topology on Packet tracer,Packet tracer activity,dhcp on Packet Tracer,Dynamic host configuration protocol on Packet Tracer,education,networks,networking,Dynamic host configuration protocol on PT,dhcp on pt,dhcp,Dynamic host configuration protocol


Read more »

Saturday, April 15, 2017

DHCP Server

DHCP Server


How to install a DHCP Server on Ubuntu 12.04

The setup is a Ubuntu PC with 4 Ethernet ports.

eth2, eth3, eth4, eth5

Each port is in a separate subnet.

Install the DHCP-Server

apt-get install isc-dhcp-server

Configuration of the DHCP Server

At first define the interfaced to be used in the file /etc/default/isc-dhcp3-server


INTERFACES="eth2 eth3 eth4 eth5"

In a second step the subnets need to be defined. For this, the interface and the address range needs to be defined for each net. The lease times can be defined global for all nets. To prevent any other DHCP Server to interract with your subnet, the Server is set in authoritative mode.  All this settings are to be done in the file /etc/dhcp/dhcpd.conf.


authoritative;

default-lease-time 600;
max-lease-time 7200;


subnet 192.168.150.0 netmask 255.255.255.0 {
range 192.168.150.10 192.168.150.250;
interface eth2;
option broadcast-address 192.168.150.255;
}


subnet 192.168.151.0 netmask 255.255.255.0 {
range 192.168.151.10 192.168.151.250;
interface eth3;
option broadcast-address 192.168.151.200;
}

subnet 192.168.152.0 netmask 255.255.255.0 {
range 192.168.152.10 192.168.152.250;
interface eth4;
option broadcast-address 192.168.152.255;
}

subnet 192.168.153.0 netmask 255.255.255.0 {
range 192.168.153.10 192.168.153.250;
interface eth5;
option broadcast-address 192.168.153.255;
}

At last the interfaces need to be added to the subnets itself. Therefore just define the interfaces in the file /etc/network/interfaces by adding this lines.


auto eth2
iface eth2 inet static
address 192.168.150.1
netmask 255.255.255.0

auto eth3
iface eth3 inet static
address 192.168.151.1
netmask 255.255.255.0

auto eth4
iface eth4 inet static
address 192.168.152.1
netmask 255.255.255.0

auto eth5
iface eth5 inet static
address 192.168.153.1
netmask 255.255.255.0

The following commands help to control the DHCP Server when trying out the changes


sudo service isc-dhcp-server restart
sudo service isc-dhcp-server start
sudo service isc-dhcp-server stop

Source:

http://askubuntu.com/questions/201746/dhcp-server-with-multiple-interfaces-on-ubuntu-destroys-default-gateway
Read more »