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   

猜你喜欢

转载自blog.51cto.com/674893612/2355465
今日推荐