DHCP 管理命令

在華爲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

  4    10.77.33.133                 -          -   Conflict   
 45    10.77.33.174                 -          -   Conflict   
 51    10.77.33.180                 -          -   Conflict   
 61    10.77.33.190                 -          -   Conflict   

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章