1.Get-DhcpServerv4Scope :查看所有作用域状态
PS C:Usersxinghen> Get-DhcpServerv4Scope ScopeId SubnetMask Name State StartRange EndRange LeaseDuration ------- ---------- ---- ----- ---------- -------- ------------- 10.10.7.0 255.255.255.0 Vlan7-voice Active 10.10.7.11 10.10.7.250 3.00:00:00 10.10.8.0 255.255.255.0 Vlan8-AP Active 10.10.8.11 10.10.8.250 3.00:00:00 10.10.29.0 255.255.255.0 Vlan29-pre Active 10.10.29.11 10.10.29.250 3.00:00:00 10.10.30.0 255.255.255.0 Vlan30-guest Active 10.10.30.11 10.10.30.250 3.00:00:00 10.10.31.0 255.255.255.0 Vlan31-TV Active 10.10.31.11 10.10.31.250 3.00:00:00 10.10.32.0 255.255.240.0 Vlan32-office1 Active 10.10.32.11 10.10.47.200 3.00:00:00 10.10.48.0 255.255.240.0 Vlan48-office2 Active 10.10.48.11 10.10.63.200 3.00:00:00 10.10.64.0 255.255.248.0 Vlan64-net Active 10.10.64.11 10.10.71.200 3.00:00:00
2.Get-DhcpServerv4ScopeStatistics 查看IP使用状态
PS C:Usersxinghen> Get-DhcpServerv4ScopeStatistics ScopeId Free InUse PercentageInUse Reserved Pending SuperscopeName ------- ---- ----- --------------- -------- ------- -------------- 10.10.7.0 212 28 11.66667 0 0 10.10.8.0 185 55 22.91667 0 0 10.10.29.0 240 0 0 0 0 10.10.30.0 218 22 9.166667 0 0 10.10.31.0 217 23 9.583333 0 0 10.10.32.0 3464 566 14.04467 3 0 10.10.48.0 3489 541 13.42432 1 0 10.10.64.0 1868 114 5.751766 26 0
3.Get-DhcpServerv4Failover查看故障转移信息
主备模式:
PS C:Usersxuyutao.ad> Get-DhcpServerv4Failover Name : ohwpopsdhcp01.uxin.youxinpai.com-ohwpopsdhcp02 PartnerServer : ohwpopsdhcp01.uxin.youxinpai.com Mode : HotStandby LoadBalancePercent : ServerRole : Active ReservePercent : 5 MaxClientLeadTime : 01:00:00 StateSwitchInterval : State : Normal ScopeId : {10.10.64.0, 10.10.48.0, 10.10.32.0, 10.10.31.0...} AutoStateTransition : False EnableAuth : True
主主模式:
PS C:Usersxuyutao.ad> Get-DhcpServerv4Failover Name : lowvdhcptest01.uxin.youxinpai.com-10.10.77.12 PartnerServer : 10.10.77.12 Mode : HotStandby LoadBalancePercent : ServerRole : Active ReservePercent : 5 MaxClientLeadTime : 01:00:00 StateSwitchInterval : State : Normal ScopeId : AutoStateTransition : False EnableAuth : False Name : lowvdhcptest01.uxin.youxinpai.com-10.10.77.12-1 PartnerServer : 10.10.77.12 Mode : LoadBalance LoadBalancePercent : 50 ServerRole : ReservePercent : MaxClientLeadTime : 01:00:00 StateSwitchInterval : State : Normal ScopeId : AutoStateTransition : False EnableAuth : True Name : lowvdhcptest01.uxin.youxinpai.com-10.10.77.12-2 PartnerServer : 10.10.77.12 Mode : LoadBalance LoadBalancePercent : 50 ServerRole : ReservePercent : MaxClientLeadTime : 01:00:00 StateSwitchInterval : State : Normal ScopeId : 10.10.77.0 AutoStateTransition : False EnableAuth : True