灌溉梦想,记录脚步
« »
2011年5月31日技术合集

RedHat 6双网卡绑定

(更新!!!:以下方法经测试会出现交换机mac地址失效问题,解决方法是延续redhat 5的通常配置,并关闭NetworkManager服务。)
服务器型号为HP DL380 G7 有四个网络接口,其中第一口和第三口连接到不同的交换机,需要绑定一个IP,做成主备模式。
对于redhat 5及以前版本,网上有很多教程,很简单,但对于redhat 6并不可用。在尝试多次之后,总结配置如下:

以服务器10.199.74.68为例,子网掩码为255.255.255.224,网关为10.199.74.73

/etc/modprobe.conf

1
2
3
4
5
6
7
alias bond0 bonding
options bond0 mode=1 arp_ip_target=10.199.74.73 arp_interval=60
alias eth0 tg3
alias eth2 tg3
alias eth1 e1000
alias eth3 e1000
add above bonding e1000 tg3

/etc/rc.local

1
/sbin/route add default gw 10.199.74.73 dev bond0

ifcfg-bond0

1
2
3
4
5
6
7
8
9
DEVICE=bond0
IPADDR=10.199.74.68
NETMASK=255.255.255.224
NETWORK=10.199.74.64
BROADCAST=10.199.74.95
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
BONDING_opts="mode=active-backup arp_interval=60 arp_ip_target=10.199.74.73"

ifcfg-eth0

1
2
3
4
5
6
DEVICE=eth0
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none

ifcfg-eth2

1
2
3
4
5
6
DEVICE=eth2
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none

日志信息 »

该日志于2011-05-31 14:42由 kevin 发表在技术合集分类下, 你可以发表评论。除了可以将这个日志以保留源地址及作者的情况下引用到你的网站或博客,还可以通过RSS 2.0订阅这个日志的所有评论。

13 条评论

  1. kamagra pas de script du jour au lendemain

    sans ordonnance kamagra pharmacie achat bien

  2. best enclomiphene mail order

    online order enclomiphene toronto canada

  3. buy androxal usa suppliers

    buy cheap androxal canada suppliers

  4. buy cheap flexeril cyclobenzaprine generic in us

    flexeril cyclobenzaprine no perscription usa fedex shipping

  5. online order dutasteride cheap real

    online order dutasteride canada discount

  6. buying gabapentin generic side effect

    Buy cheap gabapentin no perscription

  7. order fildena cheap no prescription

    discount fildena generic in united states

  8. order itraconazole purchase online uk

    buy itraconazole uk buy over counter

  9. ordering avodart australia cheap

    buy avodart price in canada

  10. buy staxyn in Chicago

    Buy staxyn without a r x

  11. order rifaximin canada with no prescription

    buy rifaximin generic brand

  12. cheap xifaxan generic alternative

    buy xifaxan generic canadian

  13. koupit kamagra v chicagu

    kamagra online předpis

发表回复