zoukankan      html  css  js  c++  java
  • suse 11 sp4 bond 网卡 mode0模式

    开启网卡:

    ifocnfig eth1 up

    点亮网卡
    ethtool eth1





    db2:~ # cat /etc/sysconfig/network/ifcfg-bond0 DEVICE='bond0' IPADDR='192.168.31.21' NETMASK='255.255.255.0' NETWORK='192.168.31.1' BROADCAST='192.168.31.255' STARTMODE='onboot' BOOTPROTO='static' BONDING_MASTER='yes' BONDING_MODULE_OPTS='mode=0 miimon=100' BONDING_SLAVE0='eth0' BONDING_SLAVE1='eth1' db2:~ # cat /etc/sysconfig/network/ifcfg-eth0 DEVICE='eth0' BOOTPROTO='static' STARTMODE='onboot' db2:~ # cat /etc/sysconfig/network/ifcfg-eth1 DEVICE='eth1' BOOTPROTO='static' BOOTPROTO='onboot'


    db2:
    ~ # cat /proc/net/bonding/bond0 Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011) Bonding Mode: load balancing (round-robin) MII Status: up MII Polling Interval (ms): 100 Up Delay (ms): 0 Down Delay (ms): 0 Slave Interface: eth0 MII Status: up Speed: 10000 Mbps Duplex: full Link Failure Count: 1 Permanent HW addr: 00:0c:29:56:58:f4 Slave queue ID: 0 Slave Interface: eth1 MII Status: up Speed: 10000 Mbps Duplex: full Link Failure Count: 0 Permanent HW addr: 00:0c:29:56:58:fe Slave queue ID: 0 db2:~ # ifconfig bond0 Link encap:Ethernet HWaddr 00:0C:29:56:58:F4 inet addr:192.168.31.21 Bcast:192.168.31.255 Mask:255.255.255.0 inet6 addr: fe80::20c:29ff:fe56:58f4/64 Scope:Link UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1 RX packets:1614 errors:0 dropped:29 overruns:0 frame:0 TX packets:953 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:144962 (141.5 Kb) TX bytes:105814 (103.3 Kb) eth0 Link encap:Ethernet HWaddr 00:0C:29:56:58:F4 UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1 RX packets:456 errors:0 dropped:0 overruns:0 frame:0 TX packets:256 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:40276 (39.3 Kb) TX bytes:25712 (25.1 Kb) eth1 Link encap:Ethernet HWaddr 00:0C:29:56:58:F4 UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1 RX packets:1158 errors:0 dropped:0 overruns:0 frame:0 TX packets:697 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:104686 (102.2 Kb) TX bytes:80102 (78.2 Kb) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:150 errors:0 dropped:0 overruns:0 frame:0 TX packets:150 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:11304 (11.0 Kb) TX bytes:11304 (11.0 Kb) db2:~ # ethtool eth1 Settings for eth1: Supported ports: [ TP ] Supported link modes: 1000baseT/Full 10000baseT/Full Supports auto-negotiation: No Advertised link modes: Not reported Advertised pause frame use: No Advertised auto-negotiation: No Speed: 10000Mb/s Duplex: Full Port: Twisted Pair PHYAD: 0 Transceiver: internal Auto-negotiation: off MDI-X: Unknown Supports Wake-on: uag Wake-on: d Link detected: yes db2:~ #
  • 相关阅读:
    WinPE U盘安装原版Win10系统详细教程
    Foxmail for windows 客户端设置和 IMAP、POP3/SMTP 的设置
    微信打开X5调试,使微信页面可以在谷歌浏览器调试
    古今时辰对照表--选择吉日吉时,养生时辰必看
    2020爱你爱你,新的一年,新的开始,2020我想对你说
    人民日报推荐好文《善待你所在的单位》
    致大学生,我把私藏多年的的实用工具/学习网站都贡献出来了~~
    使用poco 的NetSSL_OpenSSL 搭建https 服务端,使用C++客户端,java 客户端访问,python访问(python还没找到带证书访问的代码.)
    C++ activemq CMS 学习笔记.
    关于 Poco::TCPServer框架 (windows 下使用的是 select模型) 学习笔记.
  • 原文地址:https://www.cnblogs.com/liweiming/p/10239540.html
Copyright © 2011-2022 走看看