Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
DHCP
(edit)
Revision as of 07:19, 3 June 2019
799 bytes added
,
07:19, 3 June 2019
m
no edit summary
Line 11:
Line 11:
===For all interfaces===
===For all interfaces===
prepend domain-name-servers 127.0.0.1;
prepend domain-name-servers 127.0.0.1;
+
+
== DHCP Server ==
+
<syntaxhighlight lang="bash">
+
sudo apt-get update
+
sudo apt search isc-dhcp
+
sudo apt install isc-dhcp-server
+
cp /etc/dhcp/dhcpd.conf{,.backup}
+
nano /etc/dhcp/dhcpd.conf
+
</syntaxhighlight><syntaxhighlight lang="text">
+
option domain-name "rra.lan";
+
option domain-name-servers 10.0.232.30, 8.8.8.8;
+
+
default-lease-time 60000000;
+
max-lease-time 720000000000;
+
+
ddns-update-style none;
+
+
authoritative;
+
+
log-facility local7;
+
+
+
subnet 192.168.0.0 netmask 255.255.255.0 {
+
range 192.168.0.1 192.168.0.200;
+
option subnet-mask 255.255.255.0;
+
option broadcast-address 192.168.0.255;
+
}
+
+
host dhcpi {
+
hardware ethernet B8:27:EB:4D:E4:37;
+
fixed-address 192.168.0.254;
+
}
+
+
host muyfalso {
+
hardware ethernet FF:FF:FF:FF:FF:FF;
+
fixed-address 192.168.0.1;
+
}
+
+
</syntaxhighlight>
Rafahsolis
Bureaucrats
,
Administrators
2,306
edits
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version