Parameter Value Description  default - lease - time Integer Sets the d dịch - Parameter Value Description  default - lease - time Integer Sets the d Việt làm thế nào để nói

Parameter Value Description defaul

Parameter Value Description
default - lease - time Integer Sets the default lease time in seconds. Clients may request a specific lease time that can override this value. Typical lease times are between a couple of hours and several days — tens or hundreds of thousands of seconds. Shorter lease times are in order if you ’ re planning major network changes in the near future or if the network sees a lot of changes — for example, if laptop computers are being connected for an hour or two and then disconnected.
max - lease - time Integer Sets the maximum lease time, in seconds, the server will grant. If a client asks for a lease time longer than this value, the server grants a lease of this value. This value is ignored if the server is responding to a BOOTP request.
min - lease - time Integer Sets the minimum lease time, in seconds, the server will grant. If a client asks for a lease time shorter than this value, the server grants a lease of this value.
get - lease - hostnames Boolean If true , the server looks up the hostname associated with an IP address and returns that hostname to the client, which may use this value in setting its own hostname. By default or if this parameter is false , the server doesn ’ t do this lookup.
use - host - decl - names Boolean If true , the server returns the hostname provided by the client as the client ’ s assigned hostname.
ping - check Boolean If true , the server pings an address before assigning a lease on that address to a client. If the server receives a response, the server doesn ’ t assign that address. This may be used to ensure that the server doesn ’ t assign addresses that are already in use (say, by systems misconfigured with static IP addresses they should not be using). If the pinged system is also configured to ignore pings, this check won ’ t work as intended.
Configuring a DHCP Server 303
c07.indd 303 c07.indd 303 3/28/11 1:03:57 PM 3/28/11 1:03:57 PM
304 Chapter 7 ■ Advanced Network Configuration
Table 7.1 is far from complete, but it describes the most common options. For information on more options, consult the dhcp - options and dhcp - eval man pages. Some of the options, such as the NetBIOS options in Table 7.1, set values that many DHCP clients ignore.
Notably absent from Table 7.1 is any method of setting the IP address that clients are to receive. This option does appear in Listing 7.1, though, as part of the subnet declaration. The next two sections cover options for assigning IP addresses in more detail.
Parameter Value Description
option subnet - mask Subnet mask (dotted quad format)
Sets the subnet mask to be assigned to clients.
option routers IP addresses The IP address or addresses for the subnet ’ s router or routers.
option domain - name - servers
IP addresses The IP address or addresses of DNS servers the clients may use.
option domain - name Domain name The name of the domain in which the clients reside.
option netbios - name - servers
IP addresses The IP address or addresses of NetBIOS Name Service (NBNS) servers, aka Windows Internet Name Service (WINS) servers. These servers can be an important part of Server Message Block/Common Internet File System (SMB/CIFS) file sharing on Windows - dominated networks.
option netbios - node - type
Binary code A code for how NetBIOS clients should attempt name resolution. Values are 1 to use broadcasts, 2 to use a WINS server, 4 to try broadcasts first followed by a WINS server, and 8 to try a WINS server first followed by a broadcast. The best option is 8 if you provide a WINS server with the option netbios - name servers parameter and, of course, configure the specified system as a WINS server.
TABLE 7.1 Common global DHCP server parameters (continued)
c07.indd 304 c07.indd 304 3/28/11 1:03:57 PM 3/28/11 1:03:57 PM
Configuring Delivery of Dynamic Addresses Listing 7.1 is adequate for assigning dynamic IP addresses to no more than 205 computers. The lines that accomplish this task are the fi nal three lines of the listing:
subnet 172.27.15.0 netmask 255.255.255.0 { range 172.27.15.50 172.27.15.254; }
These lines make up a declaration. In this case, the declaration applies to the 172.27.15.0/24 network, as defi ned on the fi rst line of the declaration. The parameters that appear between the curly braces apply only to machines in that block of addresses. You can create multiple subnet declarations if you like, and in some cases you might need to do this. For instance, the server might have multiple network interfaces and need to assign different IP addresses to machines on different physical subnets. For a network with a single physical subnet, a declaration similar to the one in Listing 7.1 should work just fi ne. This declaration ’ s second line, consisting of a range parameter, defi nes the IP address range that the server delivers: 172.27.15.50 to 172.27.15.254. When you boot a DHCP client computer, it might receive any address in this range, depending on which addresses the server has already assigned. If you have more computers than this range permits, then you should expand it (if possible) or create another subnet declaration that provides additional addresses. If you need signifi cantly more than 205 addresses, expanding the declaration will probably require changing the netmask. For instance, using a netmask of 255.255.240.0 enables you to assign addresses ranging from 172.27.0.1 through 172.27.15.254 . (You ’ d specify a subnet of 172.27.0.0 rather than 172.27.15.0 in this case.) Of course, you must have the right to use whatever addresses you pick.
If possible, define a range that ’ s substantially larger than the number of computers on your network. Doing so will give your network room to grow, and it will provide a buffer against addresses being claimed and not released, thereby consuming a lease unnecessarily.
Given the 172.27.15.0/24 network block, Listing 7.1 ’ s reservation of only 205 IP addresses means that the fi rst 49 addresses are available for static assignment. Typically, at least one of these addresses will be assigned to the network ’ s router (172.27.15.1 in Listing 7.1), and one will go to the DHCP server itself. Others might go to a name server, mail server, or other servers that are best run with static IP addresses. Alternatively, you can run some of these servers using DHCP and assign them fi xed addresses, as described in the next section.
An address with a machine portion, in binary, of all 0s or all 1s has special meaning in TCP/IP addressing. All - 0 addresses refer to the network itself, and all - 1 addresses are used for broadcasts. You should never attempt to assign such an address using DHCP, nor should you attempt to assign it statically for that matter.
Configuring a DHCP Server 305
c07.indd 305 c07.indd 305 3/28/11 1:03:58 PM 3/28/11 1:03:58 PM
306 Chapter 7 ■ Advanced Network Configuration
Configuring Delivery of Fixed Addresses If you want to run servers but confi gure them to acquire their IP addresses and other information via DHCP, you can do so. This practice normally requires that you do one of two things, though: Link your network ’ s DHCP and DNS servers so that the DNS server delivers the correct IP address for a given hostname. This practice may be reasonably reliable on a local network, but it may not be reliable if your systems should be accessible from the outside world, because your DNS server ’ s entries will be cached by clients ’ DNS servers. Clients may, therefore, end up using an out - of - date DNS entry. Even if you confi gure the DNS server with a short lifetime for these entries, some DNS servers may ignore this information, possibly resulting in mismatched hostnames and IP addresses. This confi guration also requires making intricate changes to both the DHCP and DNS servers ’ confi gurations. For these reasons, I don ’ t describe this approach in this book. Confi gure your DHCP server to assign an unchanging IP address to the server computers. This goal can be achieved in several ways. The method I describe in this section involves using the Media Access Control (MAC) address , aka the hardware address , of the DHCP client computer to identify that system and enable the DHCP server to assign a fi xed IP address to that system each time it boots. This is also sometimes called a reserved address.
Locating the MAC Address The fi rst step in providing a fi xed address, at least when using the MAC address approach described here, is to locate the DHCP client ’ s MAC address. For Ethernet devices, this address is a 6 - byte number that ’ s usually expressed in hexadecimal (base 16), typically with colons, dashes, or some other punctuation separating bytes. You can locate the MAC address in several ways: Hardware Stickers Some network interface cards (NICs) have stickers affi xed to them with MAC addresses. Similar stickers may exist on the external case of computers that ship with built - in Ethernet interfaces. Locating the MAC address in this way is straightforward if you haven ’ t yet installed the NIC, but it may not be convenient if it ’ s already buried inside a computer. Many NICs also lack this sticker. Linux DHCP Clients On a Linux client, you can type ifconfig eth0 (changing eth0 to another interface name, if appropriate). This command produces information on the network interface, including the hardware address (labeled HWaddr ) on the fi rst line of the output. This command requires that the interface be activated, although it need not be assigned an IP address. Windows DHCP Clients Windows provides a tool similar to Linux ’ s ifconfig for displayin
0/5000
Từ: -
Sang: -
Kết quả (Việt) 1: [Sao chép]
Sao chép!
Parameter Value Description default - lease - time Integer Sets the default lease time in seconds. Clients may request a specific lease time that can override this value. Typical lease times are between a couple of hours and several days — tens or hundreds of thousands of seconds. Shorter lease times are in order if you ’ re planning major network changes in the near future or if the network sees a lot of changes — for example, if laptop computers are being connected for an hour or two and then disconnected. max - lease - time Integer Sets the maximum lease time, in seconds, the server will grant. If a client asks for a lease time longer than this value, the server grants a lease of this value. This value is ignored if the server is responding to a BOOTP request. min - lease - time Integer Sets the minimum lease time, in seconds, the server will grant. If a client asks for a lease time shorter than this value, the server grants a lease of this value. get - lease - hostnames Boolean If true , the server looks up the hostname associated with an IP address and returns that hostname to the client, which may use this value in setting its own hostname. By default or if this parameter is false , the server doesn ’ t do this lookup. use - host - decl - names Boolean If true , the server returns the hostname provided by the client as the client ’ s assigned hostname. ping - check Boolean If true , the server pings an address before assigning a lease on that address to a client. If the server receives a response, the server doesn ’ t assign that address. This may be used to ensure that the server doesn ’ t assign addresses that are already in use (say, by systems misconfigured with static IP addresses they should not be using). If the pinged system is also configured to ignore pings, this check won ’ t work as intended. Configuring a DHCP Server 303c07.indd 303 c07.indd 303 3/28/11 1:03:57 PM 3/28/11 1:03:57 PM304 Chapter 7 ■ Advanced Network Configuration Table 7.1 is far from complete, but it describes the most common options. For information on more options, consult the dhcp - options and dhcp - eval man pages. Some of the options, such as the NetBIOS options in Table 7.1, set values that many DHCP clients ignore. Notably absent from Table 7.1 is any method of setting the IP address that clients are to receive. This option does appear in Listing 7.1, though, as part of the subnet declaration. The next two sections cover options for assigning IP addresses in more detail. Parameter Value Description option subnet - mask Subnet mask (dotted quad format) Sets the subnet mask to be assigned to clients. option routers IP addresses The IP address or addresses for the subnet ’ s router or routers. option domain - name - servers IP addresses The IP address or addresses of DNS servers the clients may use. option domain - name Domain name The name of the domain in which the clients reside. option netbios - name - servers IP addresses The IP address or addresses of NetBIOS Name Service (NBNS) servers, aka Windows Internet Name Service (WINS) servers. These servers can be an important part of Server Message Block/Common Internet File System (SMB/CIFS) file sharing on Windows - dominated networks. option netbios - node - type Binary code A code for how NetBIOS clients should attempt name resolution. Values are 1 to use broadcasts, 2 to use a WINS server, 4 to try broadcasts first followed by a WINS server, and 8 to try a WINS server first followed by a broadcast. The best option is 8 if you provide a WINS server with the option netbios - name servers parameter and, of course, configure the specified system as a WINS server. TABLE 7.1 Common global DHCP server parameters (continued)c07.indd 304 c07.indd 304 3/28/11 1:03:57 PM 3/28/11 1:03:57 PM Configuring Delivery of Dynamic Addresses Listing 7.1 is adequate for assigning dynamic IP addresses to no more than 205 computers. The lines that accomplish this task are the fi nal three lines of the listing: subnet 172.27.15.0 netmask 255.255.255.0 { range 172.27.15.50 172.27.15.254; } These lines make up a declaration. In this case, the declaration applies to the 172.27.15.0/24 network, as defi ned on the fi rst line of the declaration. The parameters that appear between the curly braces apply only to machines in that block of addresses. You can create multiple subnet declarations if you like, and in some cases you might need to do this. For instance, the server might have multiple network interfaces and need to assign different IP addresses to machines on different physical subnets. For a network with a single physical subnet, a declaration similar to the one in Listing 7.1 should work just fi ne. This declaration ’ s second line, consisting of a range parameter, defi nes the IP address range that the server delivers: 172.27.15.50 to 172.27.15.254. When you boot a DHCP client computer, it might receive any address in this range, depending on which addresses the server has already assigned. If you have more computers than this range permits, then you should expand it (if possible) or create another subnet declaration that provides additional addresses. If you need signifi cantly more than 205 addresses, expanding the declaration will probably require changing the netmask. For instance, using a netmask of 255.255.240.0 enables you to assign addresses ranging from 172.27.0.1 through 172.27.15.254 . (You ’ d specify a subnet of 172.27.0.0 rather than 172.27.15.0 in this case.) Of course, you must have the right to use whatever addresses you pick. If possible, define a range that ’ s substantially larger than the number of computers on your network. Doing so will give your network room to grow, and it will provide a buffer against addresses being claimed and not released, thereby consuming a lease unnecessarily. Given the 172.27.15.0/24 network block, Listing 7.1 ’ s reservation of only 205 IP addresses means that the fi rst 49 addresses are available for static assignment. Typically, at least one of these addresses will be assigned to the network ’ s router (172.27.15.1 in Listing 7.1), and one will go to the DHCP server itself. Others might go to a name server, mail server, or other servers that are best run with static IP addresses. Alternatively, you can run some of these servers using DHCP and assign them fi xed addresses, as described in the next section. An address with a machine portion, in binary, of all 0s or all 1s has special meaning in TCP/IP addressing. All - 0 addresses refer to the network itself, and all - 1 addresses are used for broadcasts. You should never attempt to assign such an address using DHCP, nor should you attempt to assign it statically for that matter. Configuring a DHCP Server 305c07.indd 305 c07.indd 305 3/28/11 1:03:58 PM 3/28/11 1:03:58 PM306 Chapter 7 ■ Advanced Network Configuration Configuring Delivery of Fixed Addresses If you want to run servers but confi gure them to acquire their IP addresses and other information via DHCP, you can do so. This practice normally requires that you do one of two things, though: Link your network ’ s DHCP and DNS servers so that the DNS server delivers the correct IP address for a given hostname. This practice may be reasonably reliable on a local network, but it may not be reliable if your systems should be accessible from the outside world, because your DNS server ’ s entries will be cached by clients ’ DNS servers. Clients may, therefore, end up using an out - of - date DNS entry. Even if you confi gure the DNS server with a short lifetime for these entries, some DNS servers may ignore this information, possibly resulting in mismatched hostnames and IP addresses. This confi guration also requires making intricate changes to both the DHCP and DNS servers ’ confi gurations. For these reasons, I don ’ t describe this approach in this book. Confi gure your DHCP server to assign an unchanging IP address to the server computers. This goal can be achieved in several ways. The method I describe in this section involves using the Media Access Control (MAC) address , aka the hardware address , of the DHCP client computer to identify that system and enable the DHCP server to assign a fi xed IP address to that system each time it boots. This is also sometimes called a reserved address. Locating the MAC Address The fi rst step in providing a fi xed address, at least when using the MAC address approach described here, is to locate the DHCP client ’ s MAC address. For Ethernet devices, this address is a 6 - byte number that ’ s usually expressed in hexadecimal (base 16), typically with colons, dashes, or some other punctuation separating bytes. You can locate the MAC address in several ways: Hardware Stickers Some network interface cards (NICs) have stickers affi xed to them with MAC addresses. Similar stickers may exist on the external case of computers that ship with built - in Ethernet interfaces. Locating the MAC address in this way is straightforward if you haven ’ t yet installed the NIC, but it may not be convenient if it ’ s already buried inside a computer. Many NICs also lack this sticker. Linux DHCP Clients On a Linux client, you can type ifconfig eth0 (changing eth0 to another interface name, if appropriate). This command produces information on the network interface, including the hardware address (labeled HWaddr ) on the fi rst line of the output. This command requires that the interface be activated, although it need not be assigned an IP address. Windows DHCP Clients Windows provides a tool similar to Linux ’ s ifconfig for displayin
đang được dịch, vui lòng đợi..
Kết quả (Việt) 2:[Sao chép]
Sao chép!
Thông số Giá trị Mô tả
mặc định - cho thuê - Hiện Integer Thiết lập thời gian thuê mặc định trong vài giây. Khách hàng có thể yêu cầu một thời gian thuê cụ thể mà có thể ghi đè lên giá trị này. Lần thuê điển hình là giữa một vài giờ và vài ngày - hàng chục hoặc hàng trăm ngàn giây. Lần thuê ngắn hơn là theo thứ tự nếu bạn đang lập kế hoạch thay đổi mạng lớn trong tương lai gần hoặc nếu mạng thấy rất nhiều thay đổi - ví dụ, nếu máy tính xách tay đang được kết nối với một hoặc hai và sau đó ngắt kết nối giờ.
Max - cho thuê - Hiện Integer Thiết lập thời gian thuê tối đa, trong vài giây, máy chủ sẽ cấp. Nếu khách hàng yêu cầu một thời gian thuê còn hơn giá trị này, các máy chủ cấp một hợp đồng thuê các giá trị này. Giá trị này được bỏ qua nếu các máy chủ đang đáp ứng một yêu cầu BOOTP.
Min - cho thuê - Hiện Integer Thiết lập thời gian thuê tối thiểu, trong vài giây, máy chủ sẽ cấp. Nếu khách hàng yêu cầu một thời gian thuê ngắn hơn so với giá trị này, các máy chủ cấp một hợp đồng thuê các giá trị này.
Được - cho thuê - tên máy Boolean Nếu đúng, các máy chủ nhìn lên tên máy gắn với một địa chỉ IP và trả về tên máy cho khách hàng, trong đó có thể sử dụng giá trị này trong việc thiết lập tên máy riêng của mình. Theo mặc định, hoặc nếu tham số này là sai, máy chủ doesn 't làm tra cứu này.
Sử dụng - host - decl - tên Boolean Nếu đúng, các máy chủ trả về tên máy được cung cấp bởi khách hàng là khách hàng' gán s hostname.
Ping - kiểm tra Boolean Nếu đúng, các máy chủ ping một địa chỉ trước khi giao hợp đồng thuê địa chỉ đó cho khách hàng. Nếu máy chủ nhận được một phản ứng, máy chủ doesn 't gán địa chỉ đó. Điều này có thể được sử dụng để đảm bảo rằng các máy chủ doesn 't gán địa chỉ đó đã được sử dụng (nói, bởi hệ thống sai với địa chỉ IP tĩnh họ không nên được sử dụng). Nếu hệ thống ping cũng được cấu hình để bỏ qua các lệnh ping, kiểm tra này đã giành 't làm việc như dự định.
Cấu hình DHCP Server 303
c07.indd 303 c07.indd 303 3/28/11 01:03:57 3/28/11 1 : 03: 57 PM
304 Chương 7 ■ nâng cao Cấu hình mạng
Bảng 7.1 là xa hoàn thành, nhưng nó mô tả các tùy chọn phổ biến nhất. Để biết thông tin về các lựa chọn hơn, tham khảo ý kiến các dhcp - lựa chọn và dhcp - người đàn ông trang eval. Một số tùy chọn, chẳng hạn như các tùy chọn NetBIOS trong Bảng 7.1, thiết lập các giá trị mà nhiều khách hàng DHCP bỏ qua.
Đáng chú ý là vắng mặt từ Bảng 7.1 là bất kỳ phương pháp thiết lập địa chỉ IP mà khách hàng sẽ nhận. Tùy chọn này không xuất hiện trong Liệt kê 7.1, mặc dù, như là một phần của việc kê khai subnet. Hai phần tiếp theo bao gồm các tùy chọn để gán địa chỉ IP một cách chi tiết hơn.
Thông số Giá trị Mô tả
tùy chọn subnet - mask Subnet mask (định dạng quad
chấm). Thiết lập mặt nạ mạng con sẽ được giao cho khách hàng
các bộ định tuyến lựa chọn địa chỉ IP Địa chỉ IP hoặc địa chỉ mạng con 's router hoặc router.
tuỳ chọn tên miền - tên - máy chủ
địa chỉ IP Địa chỉ IP hay địa chỉ của các máy chủ DNS của khách hàng có thể sử dụng.
tuỳ chọn tên miền - tên tên miền Tên miền trong đó các khách hàng cư trú.
tùy chọn netbios - name - máy chủ
địa chỉ IP Địa chỉ IP hoặc địa chỉ của NetBIOS Name Service (NBNS) các máy chủ, hay còn gọi là Windows Internet Name Service (WINS) các máy chủ. Những máy chủ này có thể là một phần quan trọng của Server Message Block / Common Internet File System (SMB / CIFS) chia sẻ file trên Windows -. Mạng thống trị
netbios tùy chọn - nút - loại
Mã nhị phân A mã cho khách hàng như thế nào NetBIOS nên cố gắng phân giải tên. Giá trị là 1 để sử dụng chương trình phát sóng, 2 để sử dụng một máy chủ WINS, 4 để thử chương trình phát sóng đầu tiên theo sau bởi một máy chủ WINS, và 8 để thử một máy chủ WINS đầu tiên theo sau bởi một chương trình phát sóng. Các lựa chọn tốt nhất là 8 nếu bạn cung cấp một máy chủ WINS với netbios tùy chọn -. Tên tham số máy chủ và, tất nhiên, cấu hình hệ thống đặc biệt như một máy chủ WINS
BẢNG 7.1 thông số DHCP server toàn cầu chung (tiếp theo)
c07.indd 304 c07.indd 304 3/28/11 01:03:57 3/28/11 01:03:57
Cấu hình Cung cấp địa chỉ động Listing 7.1 là đủ để gán địa chỉ IP động cho không nhiều hơn 205 máy tính. Các đường thực hiện nhiệm vụ này là nal fi ba dòng của danh sách:
subnet 172.27.15.0 netmask 255.255.255.0 {tầm 172.27.15.50 172.27.15.254; }
Những dòng này tạo nên một bản tuyên bố. Trong trường hợp này, việc kê khai áp dụng cho mạng 172.27.15.0/24, như de fi ned trên dòng fi đầu tiên của việc kê khai. Các thông số mà xuất hiện giữa các dấu ngoặc nhọn chỉ áp dụng cho máy móc trong đó khối địa chỉ. Bạn có thể tạo nhiều tờ khai mạng con nếu bạn thích, và trong một số trường hợp, bạn có thể cần phải làm điều này. Ví dụ, máy chủ có thể có nhiều giao diện mạng và cần phải gán địa chỉ IP khác nhau cho các máy trên mạng con vật lý khác nhau. Đối với một mạng với một subnet vật lý duy nhất, một tuyên bố tương tự như trong Liệt kê 7.1 nên chỉ làm việc fi ne. Tuyên bố này của dòng thứ hai, bao gồm một tham số phạm vi, de fi NES dải địa chỉ IP mà các máy chủ cung cấp: 172.27.15.50 để 172.27.15.254. Khi bạn khởi động máy tính DHCP client, nó có thể nhận được bất kỳ địa chỉ trong phạm vi này, tùy thuộc vào địa chỉ máy chủ đã được giao. Nếu bạn có nhiều máy tính hơn so với phạm vi này có giấy phép, sau đó bạn nên mở rộng nó (nếu có thể) hoặc tạo một subnet khai cung cấp địa chỉ bổ sung. Nếu bạn cần trong yếu fi đáng hơn 205 địa chỉ, mở rộng việc khai báo có thể sẽ yêu cầu thay đổi của mặt nạ. Ví dụ, sử dụng một mặt nạ mạng của 255.255.240.0 cho phép bạn gán các địa chỉ khác nhau, từ 172.27.0.1 qua 172.27.15.254. (Bạn d chỉ định một subnet của 172.27.0.0 hơn là 172.27.15.0 trong trường hợp này.) Tất nhiên, bạn phải có quyền sử dụng bất cứ địa chỉ bạn đã chọn.
Nếu có thể, xác định một phạm vi đó là lớn hơn đáng kể so với số lượng các máy tính trên mạng của bạn. Làm như vậy sẽ cung cấp cho mạng lưới phòng của bạn phát triển, và nó sẽ cung cấp một bộ đệm chống lại các địa chỉ được tuyên bố và không được phát hành, do đó tốn một hợp đồng thuê không cần thiết.
Với khối 172.27.15.0/24 mạng, Liệt kê 7.1 's đặt phòng của chỉ 205 địa chỉ IP có nghĩa là đầu tiên fi 49 địa chỉ có sẵn để chuyển nhượng tĩnh. Thông thường, ít nhất là một trong những địa chỉ này sẽ được gán cho router của mạng lưới (172.27.15.1 trong Ví dụ 7.1), và người ta sẽ đi đến máy chủ DHCP tự. Những người khác có thể đi đến một máy chủ tên, máy chủ mail, hoặc máy chủ khác đang chạy tốt nhất với các địa chỉ IP tĩnh. Ngoài ra, bạn có thể chạy một số các máy chủ sử dụng DHCP và giao cho các địa chỉ cố định fi, như được mô tả trong phần tiếp theo.
Một địa chỉ với một phần máy, trong hệ nhị phân, của tất cả các số 0 hoặc tất cả các 1s có ý nghĩa đặc biệt trong giao thức TCP / IP giải quyết. Tất cả - 0 địa chỉ tham khảo các mạng riêng của mình, và tất cả - 1 địa chỉ được sử dụng cho các chương trình phát sóng. Bạn không bao giờ nên cố gắng gán như một địa chỉ sử dụng DHCP, bạn cũng không nên cố gắng gán nó tĩnh cho rằng vấn đề.
Cấu hình DHCP Server 305
c07.indd 305 c07.indd 305 3/28/11 01:03:58 3 / 28/11 01:03:58
306 Chương 7 ■ nâng cao Cấu hình mạng
Cấu hình Cung cấp địa chỉ cố định Nếu bạn muốn chạy các máy chủ nhưng con fi Hình vẽ cho họ để có được địa chỉ IP của họ và các thông tin khác thông qua DHCP, bạn có thể làm như vậy. Điều này thực tế thường yêu cầu bạn làm một trong hai điều, mặc dù: Liên kết các chủ DHCP và DNS mạng của bạn để các máy chủ DNS cung cấp địa chỉ IP chính xác cho một tên máy được. Điều này thực tế có thể được tin cậy hợp lý trên một mạng cục bộ, nhưng nó có thể không đáng tin cậy nếu hệ thống của bạn sẽ được truy cập từ thế giới bên ngoài, bởi vì máy chủ DNS của bạn 's mục sẽ được lưu trữ bởi khách hàng các máy chủ DNS. Khách hàng có thể, do đó, kết thúc bằng một phương - của - entry DNS ngày. Thậm chí nếu bạn có con fi Hình vẽ các máy chủ DNS với một cuộc đời ngắn cho các mục, một số máy chủ DNS có thể bỏ qua thông tin này, có thể dẫn tên máy không phù hợp và các địa chỉ IP. Con fi guration này cũng đòi hỏi sự thay đổi phức tạp để con chíp PSoC fi cả các DHCP và DNS của máy chủ. Đối với những lý do này, tôi don 't mô tả phương pháp này trong cuốn sách này. Con fi Hình vẽ máy chủ DHCP để gán một địa chỉ IP bất biến cho các máy tính máy chủ. Mục tiêu này có thể đạt được bằng nhiều cách. Các phương pháp tôi mô tả trong phần này liên quan đến việc sử dụng Media Access Control (MAC), hay còn gọi là địa chỉ phần cứng, máy tính DHCP client để xác định hệ thống và cho phép các máy chủ DHCP để gán một địa chỉ IP fi cố định vào hệ thống mà mỗi lần nó giày ống. Điều này đôi khi cũng được gọi là địa chỉ dành riêng.
Định vị địa chỉ MAC Các bước đầu tiên fi trong việc cung cấp một địa chỉ cổ định, ít nhất là khi sử dụng phương pháp địa chỉ MAC mô tả ở đây, là để xác định vị trí địa chỉ DHCP client của MAC. Đối với các thiết bị Ethernet, địa chỉ này là một 6 - số byte mà thường thích thể hiện trong hệ thập lục phân (cơ sở 16), thường với dấu hai chấm, dấu gạch ngang, hoặc một số dấu chấm câu khác tách byte. Bạn có thể xác định địa chỉ MAC bằng nhiều cách: Phần cứng Stickers Một số thẻ giao diện mạng (NIC) có dán fi af cố định cho họ với địa chỉ MAC. Dán tương tự có thể tồn tại trên những trường hợp bên ngoài của máy tính mà tàu - xây dựng trong giao diện Ethernet. Định vị các địa chỉ MAC bằng cách này là đơn giản nếu bạn haven 't chưa cài đặt các NIC, nhưng nó có thể không được thuận tiện nếu nó đã được chôn cất bên trong một máy tính. Nhiều NIC cũng thiếu sticker này. Linux DHCP Clients Trên một khách hàng Linux, bạn có thể gõ ifconfig eth0 (thay đổi eth0 đến một tên giao diện, nếu thích hợp). Lệnh này tạo thông tin về các giao diện mạng, bao gồm địa chỉ phần cứng (có nhãn HWaddr) trên dòng fi đầu tiên của đầu ra. Lệnh này yêu cầu rằng giao diện được kích hoạt, mặc dù nó không cần phải được gán một địa chỉ IP. Khách hàng Windows DHCP Windows cung cấp một công cụ tương tự như ifconfig Linux 's cho displayin
đang được dịch, vui lòng đợi..
 
Các ngôn ngữ khác
Hỗ trợ công cụ dịch thuật: Albania, Amharic, Anh, Armenia, Azerbaijan, Ba Lan, Ba Tư, Bantu, Basque, Belarus, Bengal, Bosnia, Bulgaria, Bồ Đào Nha, Catalan, Cebuano, Chichewa, Corsi, Creole (Haiti), Croatia, Do Thái, Estonia, Filipino, Frisia, Gael Scotland, Galicia, George, Gujarat, Hausa, Hawaii, Hindi, Hmong, Hungary, Hy Lạp, Hà Lan, Hà Lan (Nam Phi), Hàn, Iceland, Igbo, Ireland, Java, Kannada, Kazakh, Khmer, Kinyarwanda, Klingon, Kurd, Kyrgyz, Latinh, Latvia, Litva, Luxembourg, Lào, Macedonia, Malagasy, Malayalam, Malta, Maori, Marathi, Myanmar, Mã Lai, Mông Cổ, Na Uy, Nepal, Nga, Nhật, Odia (Oriya), Pashto, Pháp, Phát hiện ngôn ngữ, Phần Lan, Punjab, Quốc tế ngữ, Rumani, Samoa, Serbia, Sesotho, Shona, Sindhi, Sinhala, Slovak, Slovenia, Somali, Sunda, Swahili, Séc, Tajik, Tamil, Tatar, Telugu, Thái, Thổ Nhĩ Kỳ, Thụy Điển, Tiếng Indonesia, Tiếng Ý, Trung, Trung (Phồn thể), Turkmen, Tây Ban Nha, Ukraina, Urdu, Uyghur, Uzbek, Việt, Xứ Wales, Yiddish, Yoruba, Zulu, Đan Mạch, Đức, Ả Rập, dịch ngôn ngữ.

Copyright ©2025 I Love Translation. All reserved.

E-mail: