当前位置:   article > 正文

华为交换机S5700解除ip/Mac绑定_华为交换机取消mac地址绑定

华为交换机取消mac地址绑定

华为中有三种模式
用户视图<2F-A>:基本操作,查看基本信息
系统视图[2F-A]:进阶操作,能看信息也可以配置
接口模式[2F-A-GigabitEthernet0/0/1]:

  1. 交换机解除绑定的IP地址提示地址在使用
[2F-A-Vlanif70]undo dhcp server static-bind ip-address 70.70.70.72                           
Error: The IP address is being used by a static-MAC user.
  • 1
  • 2
  1. 查询配置信息知道70.70.70.0/24网段的DHCP是基于接口地址池

关于华为配置DHCP请查看:https://support.huawei.com/enterprise/zh/doc/EDOC1100212349/6946084b

[2F-A]dis ip pool interface Vlanif70 ?
  X.X.X.X   Start IP address
  all       Detail information
  conflict  Information of conflict IP address
  expired   Information of expired IP address
  used      Information of used IP address
  |         Matching output
  <cr>      

[2F-A]dis ip pool interface Vlanif70 all 
  Pool-name        : Vlanif70
  Pool-No          : 2
  Lease            : 1 Days 0 Hours 0 Minutes
  Domain-name      : -
  DNS-server0      : 223.5.5.5       
  DNS-server1      : 223.6.6.6       
  NBNS-server0     : -               
  Netbios-type     : -               
  Position         : Interface       Status             : Unlocked
  Gateway-0        : -               
  Network          : 70.70.70.0
  Mask             : 255.255.255.0
  VPN instance     : --
  Logging          : Disable
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
     71     70.70.70.72        7c8a-e17f-b685    DHCP          -   Static-bind used
     72     70.70.70.73                     -       -          -   Conflict   
     73     70.70.70.74        72e4-3652-11b1    DHCP      70889   Used       
     74     70.70.70.75                     -       -          -   Conflict   
     75     70.70.70.76        6619-4db5-9491    DHCP      81796   Used       
     76     70.70.70.77                     -       -          -   Conflict   
     77     70.70.70.78                     -       -          -   Conflict   
     78     70.70.70.79                     -       -          -   Conflict   
     79     70.70.70.80        c20f-a605-8bd8    DHCP      78011   Used       
     80     70.70.70.81        7af0-3ccc-8030    DHCP      70574   Used       
     81     70.70.70.82        569f-b6e0-1b65    DHCP      80945   Used       
     82     70.70.70.83                     -       -          -   Conflict   
     83     70.70.70.84        3aeb-b4ea-83f2    DHCP      62812   Used       
     84     70.70.70.85        f44e-e3a7-b8f4    DHCP      80607   Used       
     85     70.70.70.86        8aff-618e-d654    DHCP      66800   Used       
     86     70.70.70.87                     -       -          -   Conflict   
     87     70.70.70.88        7c8a-e185-1a18    DHCP          -   Static-bind
     88     70.70.70.89        ec63-d777-f975    DHCP      81356   Used       
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  1. 70.70.70.72提示已经正在使用,70.70.70.88未使用,接下来取消IP使用状态
    注意此时是在“用户视图”
<2F-A>reset ip pool interface vlanif70 ?
  X.X.X.X   Start IP address
  all       All IP address
  conflict  Conflict IP address
  expired   Expired IP address
  used      Used IP address

<2F-A>reset ip pool interface vlanif70 70.70.70.88
Warning: If the IP addresses that are being used are reclaimed, may influence normal user in the network. Are you sure to continue?[Y/N]:y
<2F-A>reset ip pool interface vlanif70 70.70.70.72
Warning: If the IP addresses that are being used are reclaimed, may influence normal user in the network. Are you sure to continue?[Y/N]:y
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  1. 取消IP静态绑定后保存配置文件
<2F-A>sys
Enter system view, return user view with Ctrl+Z.
[2F-A]int vlanif 70
[2F-A-Vlanif70]undo  dhcp server static-bind ip-address 70.70.70.72
[2F-A-Vlanif70]undo  dhcp server static-bind ip-address 70.70.70.88
[2F-A-Vlanif70]dis this
interface Vlanif70
 ip address 70.70.70.1 255.255.255.0
 dhcp select interface
 dhcp server dns-list 223.5.5.5 223.6.6.6
[2F-A-vlanif70]q 
[2F-A]q  
<2F-A>save
The current configuration (excluding the configurations of unregistered boards or cards) will be written to flash:/vrpcfg.zip.
Are you sure to continue?[Y/N]y
Now saving the current configuration to the slot 0........
Save the configuration successfully.
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Cpp五条/article/detail/293282
推荐阅读
相关标签
  

闽ICP备14008679号