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
2024-02-27 15:41:28 +01:00
2025-07-14 20:24:26 +09:00
2025-07-14 20:24:26 +09:00
2025-07-14 20:24:26 +09:00
2025-12-31 14:58:58 +00:00
2025-07-14 20:24:26 +09:00
2024-08-02 09:33:46 +02:00
2025-07-14 20:24:26 +09:00
2026-05-06 10:30:17 +02:00
2026-05-05 15:09:47 +02:00
2026-05-17 21:02:20 +09:00
2024-02-27 15:41:28 +01:00
2026-02-18 10:40:12 +00:00
2025-07-14 20:24:26 +09:00
2025-10-30 15:28:36 +01:00
2026-04-29 12:25:47 +02:00
2026-05-15 19:07:00 +01:00
2026-03-04 08:28:29 +01:00
2024-03-14 13:07:19 +00:00
2025-07-14 20:24:26 +09:00
2025-11-17 21:31:51 +09:00
2025-09-26 20:20:49 +02:00
2025-07-14 20:24:25 +09:00
2024-11-22 10:38:19 +01:00
2024-02-27 15:41:28 +01:00
2024-02-27 15:41:28 +01:00
2024-12-20 18:04:01 +01:00
2026-03-24 14:49:22 +00:00
2024-07-17 18:05:40 +02:00
2026-04-22 20:05:38 +02:00
2025-07-14 20:24:26 +09:00
2025-07-14 20:24:26 +09:00
2025-07-14 20:24:26 +09:00
2026-02-07 12:51:17 +01:00
2026-05-05 15:09:47 +02:00
2026-05-06 10:30:17 +02:00
2024-04-26 18:45:13 +03: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-03-31 18:25:09 +02:00