• 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:~ #
  • 相关阅读:
    Elasticsearch崩溃解决办法
    阿里云服务器ubuntu14.04安装Redis
    error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1
    本机访问阿里云服务器上的Elasticsearch
    阿里云服务器配置ElasticSearch
    ElasticSearch-RTF的安装
    【已解决】neo4j-import使用过程中遇到的问题(there's a field starting with a quote and whereas it ends that quote there seems to be characters in that field /Executor has been shut down in panic)
    OutOfMemoryError和StackOverflowError
    线程的终止
    scala基础
  • 原文地址:https://www.cnblogs.com/liweiming/p/10239540.html
Copyright © 2020-2023  润新知