Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products

Dell EMC SmartFabric OS10 User Guide Release 10.5.0

PDF

手动绑定条目

地址绑定是客户端的 IP 地址与介质访问控制 (MAC) 地址之间的映射。DHCP 服务器会自动为客户端分配可用的 IP 地址,然后在绑定表中创建一个条目。您还可以手动为客户端创建一个条目。手动绑定有助于保证特定网络设备接收特定 IP 地址。

将手动绑定视为单个主机地址池。手动绑定数没有限制,但您只能为每个主机配置一个手动绑定。手动绑定条目不会显示在 show ip dhcp binding 输出中。

  1. 在 DHCP 模式下创建地址池。
    pool name
  2. 在 DHCP <POOL> 模式下输入客户端 IP 地址。
    host address
  3. 在 DHCP <POOL> 模式下输入客户端硬件地址。
    hardware-address hardware-address

配置手动绑定

OS10(config)# ip dhcp server
OS10(conf-dhcp)# pool static
OS10(conf-dhcp-static)# host 20.1.1.2
OS10(conf-dhcp-static)# hardware-address 00:01:e8:8c:4d:0a

查看 DHCP 绑定表

OS10# show ip dhcp binding
  IP Address        Hardware address     Lease expiration        Hostname
+--------------------------------------------------------------------------
11.1.1.254        00:00:12:12:12:12 Jan 27 2016 06:23:45

Total Number of Entries in the Table = 1

使用固定主机配置(也称为手动绑定),您必须配置具有匹配子网的网络池。静态主机到 MAC 地址映射池通过子网配置从网络池中继承网络掩码,包括主机的地址范围。

在下面的示例中,池 host1 是固定主机映射池,将从池 hostnetwork 中继承子网和其他属性,这是 DHCP 客户端 IP 地址池。host2 没有匹配的网络池。因此,具有 MAC 地址 00:0c:29:aa:22:f4 的 DHCP 客户端无法获得正确的参数。

OS10# show running-configuration interface ethernet 1/1/2 
! 
interface ethernet1/1/2 
no shutdown 
no switchport 
ip address 100.1.1.1/24 
flowcontrol receive off 

OS10# show running-configuration ip dhcp
!
ip dhcp server
no disable
!
pool host1
host 100.1.1.34
hardware-address 00:0c:29:ee:4c:f4
!
pool hostnetwork
lease infinite
network 100.1.1.0/24
!
pool host2
host 20.1.1.34
hardware-address 00:0c:29:aa:22:f4 

Rate this content

Accurate
Useful
Easy to understand
Was this article helpful?
0/3000 characters
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please select whether the article was helpful or not.
  Comments cannot contain these special characters: <>()\