linux bonding网卡问题

火箭超人 2013-04-08 05:38:26
加精
小弟要配置bonding网卡,现在要配置两个bonding,分别是bond0,bond1
可以如下步骤实现:
1.在shell中执行modprobe bonding max_bonds=2命令

2.编辑/etc/modprobe.conf.local文件,加入如下内容:

alias bond0 bonding
options bonding mod=blance-rr miimon=100 max_bonds=2
alias bond1 bonding
options bonding mod=active-backup miimon=100 primary=eth2 max_bonds=2

现在的问题是我不想用配置文件的形式,比如上面这个modprobe.conf.local文件,直接在shell用命令配置bond0,bond1网卡的参数。
modprobe bonding (后面的参数该怎么写)
...全文
1115 21 打赏 收藏 转发到动态 举报
写回复
用AI写文章
21 条回复
切换为时间正序
请发表友善的回复…
发表回复
u010402625 2013-04-22
  • 打赏
  • 举报
回复
赶图,罪过罪过!
u010339896 2013-04-19
  • 打赏
  • 举报
回复
路过,写作业要求回复帖子的
o北斗o 2013-04-19
  • 打赏
  • 举报
回复
都结贴了,路过踩一脚吧
bangguox 2013-04-19
  • 打赏
  • 举报
回复
路过 不会 支持
mbugaifc 2013-04-18
  • 打赏
  • 举报
回复
绝望依然 2013-04-18
  • 打赏
  • 举报
回复
配置文件里面不是给了需要加的option。 alias bond0 bonding options bonding mod=blance-rr miimon=100 max_bonds=2 alias bond1 bonding options bonding mod=active-backup miimon=100 primary=eth2 max_bonds=2
u010347070 2013-04-18
  • 打赏
  • 举报
回复
higushiooo
junior1108 2013-04-18
  • 打赏
  • 举报
回复
配置文件里面不是给了需要加的option。 alias bond0 bonding options bonding mod=blance-rr miimon=100 max_bonds=2 alias bond1 bonding options bonding mod=active-backup miimon=100 primary=eth2 max_bonds=2
zhc553 2013-04-18
  • 打赏
  • 举报
回复
路过 不会 支持
hushiweiee 2013-04-18
  • 打赏
  • 举报
回复
评论资源能赚到积分吗。
u010349662 2013-04-18
  • 打赏
  • 举报
回复
顶一下,非得好好
火箭超人 2013-04-18
  • 打赏
  • 举报
回复
谢谢各位,我就是不想用配置文件,不过我已经通过其他方法解决,谢谢,结贴。
linwaterbin 2013-04-18
  • 打赏
  • 举报
回复
modprobe bonding mode=blance-rr miimon=100 ... ... 单条命令不能实现...吧? 为什么不用配置文件?
火箭超人 2013-04-09
  • 打赏
  • 举报
回复
顶一下,没人吗

742

社区成员

发帖
与我相关
我的任务
社区描述
该论坛主要探讨Linux系统在IBM Power平台的安装、部署、应用开发等话题,并为网友们提供自由交流的平台。
社区管理员
  • Power Linux社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧