mirror of
https://github.com/vyos/vyos-documentation.git
synced 2025-10-26 08:41:46 +01:00
DHCP: bullet list format fixup in command explanation
This commit is contained in:
parent
a39773e63c
commit
add69f2123
@ -80,31 +80,38 @@ Static mappings MAC/IP
|
|||||||
Explanation
|
Explanation
|
||||||
^^^^^^^^^^^
|
^^^^^^^^^^^
|
||||||
|
|
||||||
:code:`set service dhcp-server shared-network-name dhcpexample authoritative`
|
* :code:`set service dhcp-server shared-network-name dhcpexample authoritative`
|
||||||
This says that this device is the only DHCP server for this network. If other
|
|
||||||
devices are trying to offer DHCP leases, this machine will send 'DHCPNAK' to
|
|
||||||
any device trying to request an IP address that is not valid for this network.
|
|
||||||
|
|
||||||
:code:`set service dhcp-server shared-network-name dhcpexample subnet
|
This says that this device is the only DHCP server for this network. If other
|
||||||
172.16.17.0/24 default-router 172.16.17.1` This is a configuration parameter
|
devices are trying to offer DHCP leases, this machine will send 'DHCPNAK' to
|
||||||
for the subnet, saying that as part of the response, tell the client that I am
|
any device trying to request an IP address that is not valid for this network.
|
||||||
the default router for this network
|
|
||||||
|
|
||||||
:code:`set service dhcp-server shared-network-name dhcpexample subnet
|
* :code:`set service dhcp-server shared-network-name dhcpexample subnet
|
||||||
172.16.17.0/24 dns-server 172.16.17.1` This is a configuration parameter for
|
172.16.17.0/24 default-router 172.16.17.1`
|
||||||
the subnet, saying that as part of the response, tell the client that I am the
|
|
||||||
DNS server for this network. If you do not want to run a DNS server, you could
|
|
||||||
also provide one of the public DNS servers, such as google's. You can add
|
|
||||||
multiple entries by repeating the line.
|
|
||||||
|
|
||||||
:code:`set service dhcp-server shared-network-name dhcpexample subnet
|
This is a configuration parameter for the subnet, saying that as part of the
|
||||||
172.16.17.0/24 lease 86400` Assign the IP address to this machine for 24
|
response, tell the client that I am the default router for this network
|
||||||
hours. It is unlikely you'd need to shorten this period, unless you are running
|
|
||||||
a network with lots of devices appearing and disappearing.
|
|
||||||
|
|
||||||
:code:`set service dhcp-server shared-network-name dhcpexample subnet
|
* :code:`set service dhcp-server shared-network-name dhcpexample subnet
|
||||||
172.16.17.0/24 start 172.16.17.100 stop 172.16.17.199` Make the IP Addresses
|
172.16.17.0/24 dns-server 172.16.17.1`
|
||||||
between .100 and .199 available for clients.
|
|
||||||
|
This is a configuration parameter for the subnet, saying that as part of the
|
||||||
|
response, tell the client that I am the DNS server for this network. If you
|
||||||
|
do not want to run a DNS server, you could also provide one of the public
|
||||||
|
DNS servers, such as google's. You can add multiple entries by repeating the
|
||||||
|
line.
|
||||||
|
|
||||||
|
* :code:`set service dhcp-server shared-network-name dhcpexample subnet
|
||||||
|
172.16.17.0/24 lease 86400`
|
||||||
|
|
||||||
|
Assign the IP address to this machine for 24 hours. It is unlikely you'd need
|
||||||
|
to shorten this period, unless you are running a network with lots of devices
|
||||||
|
appearing and disappearing.
|
||||||
|
|
||||||
|
* :code:`set service dhcp-server shared-network-name dhcpexample subnet
|
||||||
|
172.16.17.0/24 start 172.16.17.100 stop 172.16.17.199`
|
||||||
|
|
||||||
|
Make the IP Addresses between .100 and .199 available for clients.
|
||||||
|
|
||||||
DHCPv6 server
|
DHCPv6 server
|
||||||
-------------
|
-------------
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user