zoukankan      html  css  js  c++  java
  • 修改centos7/osx的MAC地址

     change MAC Address in CentOS 7:

    nano /etc/sysconfig/network-scripts/ifcfg-ens160

    systemctl restart network.service

    或者: /etc/init.d/network restart

    You are done. Now, verify by issuing ifconfig command.

    If you have a windows machine in the same network. Issue arp -d to delete current ARP table. Then ping CentOS 7 IP Address from Windows PC. Next issue arp -a. You will find the changed MAC next to your CentOS 7 IP Address.

    注意: ifcfg-ens160本身的HWADDR不要改动: 
    Note: in the file is a value HWADDR - This is not the same thing. Use MACADDR for permanent changes.

    The HWADDR "directive is useful for machines with multiple NICs to ensure that the interfaces are assigned the correct device names regardless of the configured load order for each NIC's module. This directive should not be used in conjunction with MACADDR." ... The MACADDR "directive is used to assign a MAC address to an interface, overriding the one assigned to the physical NIC. This directive should not be used in conjunction with HWADDR."

     osx上修改mac地址,先删除文件:

      rm /Users/xxxx/Library/Preferences/com.teamviewer.TeamViewer.plist 

      rm /Users/xxxx/Library/Preferences/com.teamviewer.teamviewer.preferences.plist 

      sudo rm /Library/Preferences/com.teamviewer.teamviewer.preferences.plist 

  • 相关阅读:
    Java自动化测试-02.编写第一个Java程序
    Java自动化测试-01.环境准备(JDK/环境变量/Intellij IDEA安装)
    eNSP 40报错(Virtualbox 0x80070005)现象与解决
    DDD初步认知
    微服务后业务系统围绕CAP的业务方案设计思考
    关于热点key读的一点思考
    Java并发——一些提高性能的方式
    Java并发——Synchronized
    dubbo学习(六)服务发布&引用
    dubbo学习(五)路由
  • 原文地址:https://www.cnblogs.com/timssd/p/9178173.html
Copyright © 2011-2022 走看看