AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 126279
Accepted
jinanwow
jinanwow
Asked: 2010-03-26 07:42:12 +0800 CST2010-03-26 07:42:12 +0800 CST 2010-03-26 07:42:12 +0800 CST

Linux NIC 绑定问题 (CentOS 4 / RHEL 3)

  • 772

我在 CentOS 4 上绑定 NIC 时遇到问题。看来绑定驱动程序确实可以工作,但它卡在循环模式下,我正在尝试进行主动备份。

当前的配置是:

ifcfg-债券0

DEVICE=bond0
IPADDR=192.168.204.18
NETMASK=255.255.255.0
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
TYPE=Bonding
BONDING_OPTS="mode=1 miimon=100"

ifcfg-eth1

DEVICE=eth1
BOOTPROTO=none
ONBOOT=yes
TYPE=Ethernet
MASTER=bond0
SLAVE=yes

ifcfg-eth3

DEVICE=eth3
ONBOOT=yes
BOOTPROTO=none
TYPE=Ethernet
MASTER=bond0
SLAVE=yes

cat /proc/net/bonding/bond0

Ethernet Channel Bonding Driver: v2.6.3-rh (June 8, 2005)

Bonding Mode: load balancing (round-robin)
MII Status: up
MII Polling Interval (ms): 0
Up Delay (ms): 0
Down Delay (ms): 0

Slave Interface: eth1
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:17:a4:8f:94:b1

Slave Interface: eth3
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:1b:21:56:b8:69

猫 /etc/modprobe.conf

alias eth0 tg3
alias eth1 tg3
alias eth3 e1000
alias eth2 e1000
alias bond0 bonding
options bond0 mode=1 miimon=100

我尝试将绑定信息从 ifcfg-bond0 移到 modprobe 配置文件中。它似乎卡在 RR 中,我正试图让它进入 Active-backup(模式 1)状态。

有什么想法会导致这个问题吗?

linux centos bonding ethernet
  • 3 3 个回答
  • 3143 Views

3 个回答

  • Voted
  1. Kyle Brandt
    2010-03-26T07:46:10+08:002010-03-26T07:46:10+08:00

    一些可以尝试的事情:

    1. 检查 dmesg 的输出
    2. 你以后还有这种情况/etc/init.d/network restart吗?
    3. modprobe -r绑定模块,然后再次加载。
    4. 尝试使用 arp 目标而不是 miimon 进行 arp ping。
    • 1
  2. Best Answer
    Rajat
    2010-03-26T10:55:39+08:002010-03-26T10:55:39+08:00

    http://kbase.redhat.com/faq/docs/DOC-7431

    http://kbase.redhat.com/faq/docs/DOC-7944

    http://kbase.redhat.com/faq/docs/DOC-2511

    RHEL 3 和 4 似乎有问题

    • 1
  3. Keith Stokes
    2010-03-26T16:47:08+08:002010-03-26T16:47:08+08:00

    从我配置的几台机器之一:

    [keiths@vm-dmz-host1 ~]$ cat /etc/redhat-release

    CentOS 4.8 版(最终版)

    [keiths@vm-dmz-host1 ~]$

    [keiths@myserver ~]$ uname -a

    Linux myserver 2.6.9-34.ELsmp #1 SMP Wed Mar 8 00:27:03 CST 2006 i686 i686 i386 GNU/Linux

    [keiths@myserver ~]$ sudo cat /proc/net/bonding/bond0

    密码:

    以太网通道绑定驱动程序:v2.6.1(2004 年 10 月 29 日)

    绑定模式:容错(active-backup)

    主从:无

    当前活动从站:eth0

    MII状态:向上

    MII 轮询间隔(毫秒):50

    上行延迟(毫秒):0

    下行延迟(毫秒):0

    从接口:eth0

    MII状态:向上

    链接失败计数:0

    永久硬件地址:00:0d:60:9c:35:2e

    从接口:eth1

    MII状态:向上

    链接失败计数:0

    永久硬件地址:00:0d:60:9c:35:2f

    [keiths@myserver ~]$

    [keiths@myserver ~]$ sudo cat /etc/modprobe.conf

    别名 scsi_hostadapter megaide

    别名 eth0 tg3

    别名 eth1 tg3

    别名 bond0 键合

    选项bond0模式=1 miimon=50

    别名 usb-controller ohci-hcd

    [keiths@myserver ~]$

    [keiths@myserver ~]$ sudo cat /etc/sysconfig/network-scripts/ifcfg-bond0

    设备=bond0

    IPADDR=192.168.46.170

    网络掩码=255.255.255.224

    网络=192.168.46.160

    广播=192.168.46.191

    网关=192.168.46.161

    开机=是

    引导程序=无

    IPV6INIT=否

    USERCTL=否

    [keiths@myserver ~]$

    [keiths@myserver ~]$ sudo cat /etc/sysconfig/network-scripts/ifcfg-eth0

    设备=eth0

    引导程序=无

    开机=是

    类型=以太网

    USERCTL=否

    MASTER=bond0

    奴隶=是

    HWADDR=00:0D:60:9C:35:2E

    [keiths@myserver ~]$

    [keiths@myserver ~]$ sudo cat /etc/sysconfig/network-scripts/ifcfg-eth1

    设备=eth1

    引导程序=无

    开机=是

    类型=以太网

    USERCTL=否

    MASTER=bond0

    奴隶=是

    HWADDR=00:0D:60:9C:35:2F

    [keiths@myserver ~]$

    • 0

相关问题

  • 多操作系统环境的首选电子邮件客户端

  • 你最喜欢的 Linux 发行版是什么?[关闭]

  • 更改 PHP 的默认配置设置?

  • 保护新的 Ubuntu 服务器 [关闭]

  • (软)Ubuntu 7.10 上的 RAID 6,我应该迁移到 8.10 吗?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    从 IP 地址解析主机名

    • 8 个回答
  • Marko Smith

    如何按大小对 du -h 输出进行排序

    • 30 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    MikeN 在 Nginx 中,如何在维护子域的同时将所有 http 请求重写为 https? 2009-09-22 06:04:43 +0800 CST
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    0x89 bash中的双方括号和单方括号有什么区别? 2009-08-10 13:11:51 +0800 CST
  • Martin Hope
    Kyle Brandt IPv4 子网如何工作? 2009-08-05 06:05:31 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve