当前位置:   article > 正文

DHCP 管理命令

pool-name : vlanif40 pool-no : 4 lease : 1 days 0 hours 0 minutes position :

在华为S9306交换机上查看vlan 30 dhcp地址池分配情况。

<s9306-01>dis ip pool interface vlanif30
Pool-name : vlanif30
Pool-No : 1
Lease : 1 Days 0 Hours 0 Minutes
Domain-name : -
DNS-server0 : 61.177.7.1
DNS-server1 : 221.228.255.1
NBNS-server0 : -
Netbios-type : -
Position : Interface Status : Unlocked
Gateway-0 : 10.77.33.129
Mask : 255.255.255.192
××× instance : --

     Start           End     Total  Used  Idle(Expired)  Conflict  Disable

10.77.33.129    10.77.33.190    61    55     0       0         6        0

保留固定地址不让dhcp服务器分配,防止PC通过DHCP分配时冲突
[s9306-01]int Vlanif 30
[s9306-01-Vlanif30]dhcp server excluded-ip-address X.X.X.X X.X.X.X

查看DHCP地址池具体分配情况

[s9306-01]display ip pool interface vlanif30 all
Pool-name : vlanif30
Pool-No : 1
Lease : 1 Days 0 Hours 0 Minutes
Domain-name : -
DNS-server0 : 61.177.7.1
DNS-server1 : 221.228.255.1
NBNS-server0 : -
Netbios-type : -
Position : Interface Status : Unlocked
Gateway-0 : 10.77.33.129
Mask : 255.255.255.192
××× instance : --

     Start           End     Total  Used  Idle(Expired)  Conflict  Disable

10.77.33.129    10.77.33.190    61    50     1       0         4        6

Network section :

Index IP MAC Lease Status

......

查看具体冲突的IP地址
[s9306-01]display ip pool interface vlanif30 conflict
Pool-name : vlanif30
Pool-No : 1
Lease : 1 Days 0 Hours 0 Minutes
Domain-name : -
DNS-server0 : 61.177.7.1
DNS-server1 : 221.228.255.1
NBNS-server0 : -
Netbios-type : -
Position : Interface Status : Unlocked
Gateway-0 : 10.77.33.129
Mask : 255.255.255.192
××× instance : --

     Start           End     Total  Used  Idle(Expired)  Conflict  Disable

10.77.33.129    10.77.33.190    61    50     1       0         4        6

Network section :

Index IP MAC Lease Status

  1. 4 10.77.33.133 - - Conflict
  2. 45 10.77.33.174 - - Conflict
  3. 51 10.77.33.180 - - Conflict
  4. 61 10.77.33.190 - - Conflict

转载于:https://blog.51cto.com/674893612/2355465

本文内容由网友自发贡献,转载请注明出处:https://www.wpsshop.cn/w/我家自动化/article/detail/293366
推荐阅读
  

闽ICP备14008679号