show dhcp client binding
语法
show dhcp client binding [<address> |interface <interface-name>] routing-instance <routing-instance name> [brief | detail | summary ] logical-system tenant
描述
显示动态主机配置协议 (DHCP) 客户端表中的地址绑定。
选项
address | (可选)显示由以下条目之一标识的特定客户端的 DHCP 绑定信息:
|
routing-instance <routing-instance name> | (可选)显示指定路由实例上 DHCP 客户端的 DHCP 绑定信息。 |
interface <interface-name> | (可选)在指定的接口上执行此操作。 |
brief | (可选)显示有关活动客户端绑定的简要信息。 |
detail | (可选)显示详细的客户端绑定信息。 |
summary | (可选)显示 DHCP 客户端信息的摘要。 |
logical-system | (可选)显示指定逻辑系统上 DHCP 客户端的 DHCP 绑定信息。 |
tenant | (可选)显示指定租户系统上 DHCP 客户端的 DHCP 绑定信息。 |
所需权限级别
视图
输出字段
表 1 列出了命令 show dhcp client binding
的输出字段。输出字段按其出现的大致顺序列出。
字段名称 |
字段说明 |
---|---|
IP 地址 |
DHCP 客户端的 IP 地址。 |
硬件地址 |
DHCP 客户端的硬件地址。 |
服务器 |
DHCP 服务器的 IP 地址。 |
到期 |
租约到期的秒数。 |
状态 |
DHCP 本地服务器上地址绑定表的状态。 |
接口 |
接收请求的接口。 |
租约到期 |
客户端的 IP 地址租约到期的日期和时间。 |
租约到期时间 |
租约到期的秒数。 |
租赁开始 |
客户端 IP 地址租约开始的日期和时间。 |
供应商标识符 |
供应商标识符。 |
服务器标识符 |
DHCP 服务器的 IP 地址。 |
客户端 IP 地址 |
DHCP 客户端的 IP 地址。 |
示例输出
显示 DHCP 客户端绑定
user@host> show dhcp client binding 2 clients, (2 bound, 0 init, 0 discover, 0 renew, 0 rebind) IP address Hardware address Server Expires State Interface 10.1.1.89 00:0a:12:00:12:12 10.1.1.1 348 BOUND fe-0/0/1.0 20.1.1.90 00:0a:12:00:12:34 20.1.1.1 568 BOUND fe-0/0/2.0
命令名称
user@host> show dhcp client binding interface fe-0/0/1.0 detail Client Interface: fe-0/0/1.0 Hardware address: 00:0a:12:00:12:12 State: BOUND Lease Expires: 2010-09-16 14:45:41 UTC Lease Expires in: 528 seconds Lease Start: 2010-09-16 14:35:41 UTC Vendor Identifier: ether Server Identifier: 10.1.1.1 Client IP Address: 10.1.1.89 update server enabled DHCP Options : Name: name-server, Value: [ 10.209.194.131, 198.51.110.2, 192.0.2.3 ] Name: server-identifier, Value: 10.1.1.1 Name: router, Value: [ 10.1.1.80 ] Name: domain-name, Value: example-50
命令名称
user@host> show dhcp client binding 10.1.1.89 IP address Hardware address Server Expires State Interface 10.1.1.89 00:0a:12:00:12:12 10.1.1.1 348 BOUND fe-0/0/1.0
命令名称
user@host> show dhcp client binding tenant TSYS1 routing-instance R1 IP address Hardware address Expires State Interface 33.33.33.3 00:50:56:b0:b8:21 1628 BOUND ge-0/0/3.0
命令名称
user@host> show dhcp client binding detail tenant TSYS1 routing-instance R1 Client Interface/Id: ge-0/0/3.0 Hardware Address: 00:50:56:b0:b8:21 State: BOUND(LOCAL_CLIENT_STATE_BOUND) Lease Expires: 2018-04-26 16:24:34 UTC Lease Expires in: 1626 seconds Lease Start: 2018-04-26 15:51:14 UTC Server Identifier: 11.11.11.1 Client IP Address: 33.33.33.3 Update Server No DHCP options: Name: dhcp-lease-time, Value: 33 minutes, 20 seconds Name: server-identifier, Value: 11.11.11.1 Name: router, Value: [ 33.33.33.1 ] Name: subnet-mask, Value: 255.255.255.0
发布信息
在 Junos OS 12.1X44-D10 版中引入的语句。
logical-system
和tenant
选项在 Junos OS 18.4R1 版中引入。