zoukankan      html  css  js  c++  java
  • 7.DHCP的相关命令

    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
  • 相关阅读:
    2019重新起航:搭建个人博客
    Alibaba Nacos:搭建Nacos平台
    ELK:使用docker搭建elk平台
    SpringBoot:关于默认连接池Hikari的源码剖析
    git常用命名:自用,持续更新
    linux常用命名汇总:自用,持续更新
    升级项目版本:SpringBoot1.5.x到SpringBoot2.0.x
    Python学习第十五课——类的基本思想(实例化对象,类对象)
    Python学习第十三课——re(正则表达式)模块
    Python学习第十四课——面向对象基本思想part1
  • 原文地址:https://www.cnblogs.com/xinghen1216/p/13750413.html
Copyright © 2011-2022 走看看