Professional Documents
Culture Documents
Exercícios Ubuntu Server - DHCP Server - Inglês
Exercícios Ubuntu Server - DHCP Server - Inglês
Exercícios Ubuntu Server - DHCP Server - Inglês
Here's an example: in your case, 10.0.0.1/24 you have 24 bits preserved from
the total 32-bit address field. If you think of an IP address as 4 parts 8 bits,
255.255.255.255respectively 2^8.2^8.2^8.2^8, which means that this part, 3
parts 8 bits, is protected (will not be changed) 10.0. 0e only the final eighth of
the IP will be used as part of the range, .1giving range in this format: 10.0.0.1 -
10.0.0.255
I assume 10.0.0.0IP is preserved for your router, NIC or other device, so it's not
included.
default-lease-time 600;
R: The “default-lease-time” option controls the IP address renewal time.
The “600” indicates that the server checks every ten minutes if the
stations are still active.
max-lease-time 7200;
R: The "max-lease-time" determines the maximum time that a station can
use a given IP address, in this case “7200” seconds. The DHCP server is
configured to offer up to 99 IP addresses for the 192.168.1.0/24 network.
R: ifconfig command
$ cd /etc/init.d/
4. Which files are used for SRV DHCP configuration? Where are they located?
R: In order for the server to act as a DHCP Server on the network and
automatically assign IP addresses to clients, it is necessary to install the
"dhcp3-server" package using apt-get, as shown below:
Then edit the file using the nano editor, "/etc/dhcp/dhcpd.conf", remove all
content from the file, leaving it with the following content:
#sudonano/etc/dhcp/dhcpd.conf
ddns-update-style none;
default-lease-time 600;
max-lease-time 7200;
authoritative;
Save the file (option CTRL+O) and close the nano editor (option CTRL+X)
a) DNS.
b) DHCP.
c) NETBIOS.
d) SQUID.
e) WINS.