Yu Watanabe
6cbf8222ca
networkctl: add dhcp-lease verb to dump DHCP lease
This shows the DHCP message of an acquired DHCP lease.
Example:
```
$ networkctl dhcp-lease eth0
Header:
KEY VALUE
Hardware Type: ETHER
Hardware Address: 41:42:43:31:32:33
Client Address: 192.0.2.123
Server Address: 192.0.2.1
Options:
CODE NAME DATA
1 subnet mask 255.255.255.0
3 router 192.0.2.1
6 domain name server 192.0.2.1
12 hostname test-node
15 domain name lan
28 broadcast address 192.0.2.255
42 NTP server 192.0.2.11
192.0.2.12
51 lease time 1d
53 message type 5
54 server identifier 192.0.2.1
58 renewal time 11h 5min 38s
59 rebinding time 20h 5min 38s
119 domain search hoge.example.com
foo.example.com
```
2026-05-17 21:02:20 +09:00
..
2026-05-01 07:10:31 +02:00
2025-07-14 20:24:26 +09:00
2025-07-14 20:24:26 +09:00
2024-04-15 10:58:48 +02:00
2025-09-17 14:27:00 +02:00
2025-07-14 20:24:26 +09:00
2025-07-14 20:24:25 +09:00
2025-07-14 20:24:26 +09:00
2026-05-06 10:30:17 +02:00
2026-05-17 21:02:20 +09:00
2024-04-15 10:58:48 +02:00
2026-05-05 17:22:26 +02:00
2026-03-03 12:35:28 +00:00
2025-11-24 12:45:06 +01:00
2020-11-09 13:23:58 +09:00
2025-07-14 20:24:26 +09:00
2022-09-23 10:07:03 +02:00
2020-11-09 13:23:58 +09:00
2026-04-29 12:25:47 +02:00
2026-05-15 19:07:00 +01:00
2025-11-17 21:31:51 +09:00
2025-11-10 20:10:06 +01:00
2024-04-15 10:58:48 +02:00
2026-03-24 14:49:22 +00:00
2026-03-06 00:17:02 +00:00
2024-09-13 12:32:42 +02:00
2026-04-22 20:05:38 +02:00
2025-07-14 20:24:25 +09:00
2025-07-14 20:24:25 +09:00
2026-05-05 15:09:47 +02:00
2025-05-16 14:04:09 +09:00
2024-04-15 10:58:48 +02:00
2025-07-14 20:24:25 +09:00
2026-03-06 00:17:02 +00:00
2026-03-31 18:25:09 +02:00
2026-05-05 15:09:47 +02:00