Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

Блок кода
switch#config
switch(config)#ip dhcp pool TEST
switch(dhcp-test-config)#network-address 192.168.1.0 255.255.255.0
switch(dhcp-test-config)#lease 0 0 10
switch(dhcp-test-config)#default-router 192.168.1.2541
switch(dhcp-test-config)#dns-server 8.8.8.8 1.1.1.1

...

Остальные настройки для данного узла будут браться из из основного пула.

Настройка дополнительных опций:

Блок кода
switch(dhcp-test-config)#option 43 hex 0104C0A80101

Диагностика

Блок кода
switch#show ip dhcp binding
Total dhcp binding items: 17, the matched: 17
IP address 		Hardware address 	Lease expiration 			Type
192.168.254.101 E4-F1-4C-39-1A-32 	Thu Dec 07 14:57:00 2022 	Dynamic

 


Блок кода
switch#show ip dhcp server statistics
Address pools 1
Database agents 0
Automatic bindings 1
Manual bindings 0
Conflict bindings 0
Expiried bindings 0
Malformed message 0
Message Received
BOOTREQUEST 29
DHCPDISCOVER 26
DHCPREQUEST 2
DHCPDECLINE 0
DHCPRELEASE 0
DHCPINFORM 1
Message Send
BOOTREPLY 3
DHCPOFFER 1
DHCPACK 1
DHCPNAK 1
DHCPRELAY 0
DHCPFORWARD 0

 

Блок кода
switch(config)#show ip dhcp conflict
IP Address Detection method Detection Time