• CentOS网卡显示为__tmpxxxxxxxx


    一台服务器做了2组端口绑定(bonding),其中一组bond总是不成功,发现少了eth0/eth5 两个网卡,后来通过ifconfig -a 发现多了两个__tmpxxx的网卡

    ifconfig -a 

    __tmp1207132519 Link encap:Ethernet  HWaddr E4:1F:13:F7:73:62 
              BROADCAST MULTICAST  MTU:1500  Metric:1
              RX packets:57 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:3702 (3.6 KiB)  TX bytes:0 (0.0 b)
              Interrupt:217 Memory:94000000-94012800

    __tmp1661989960 Link encap:Ethernet  HWaddr 00:1B:21:B4:60:F2 
              BROADCAST MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
              Memory:d0080000-d0100000

    经查询,这是一个bug,原因是MAC地址没有在配置文件中

    DEVICE=eth0
    BOOTPROTO=none
    E4:1F:13:F7:73:62
    ONBOOT=yes
    MASTER=bond0
    SLAVE=yes

    添加如下:

    HWADDR=00:1B:21:B4:60:F2

  • 相关阅读:
    Compile Groovy/Spock with GMavenPlus
    Jenkins Slave Nodes – using the Swarm Plugin
    [NodeJS]Jenkins-cli
    [CoffeeScript]使用Yield功能
    [JavaScript]String.format
    [CoffeeScript]在WebStorm里运行CoffeeScript
    自动化运维的三阶段理论
    [Ruby]Unzipping a file using rubyzip
    测试文章引用
    敏捷软件测试读书笔记
  • 原文地址:https://www.cnblogs.com/onlybobby/p/9158085.html
Copyright © 2020-2023  润新知