1.系统环境CentOS5.4 xen3.0.3
操作记录
1.备份/etc/目录#防止配置失败后,我法恢复原来配置
2.编辑/etc/sysconfig/network-scripts/ifcfg-eth0 内容如下:
[root@localhost network-scripts]# cat ifcfg-eth0
# Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+
DEVICE=eth0
BOOTPROTO=static
HWADDR=00:1E:90:A1:89:82
ONBOOT=yes
MASTER=bond0
SLAVE=yes
编辑/etc/sysconfig/network-scripts/ifcfg-eth1 内容如下
# VIA Technologies, Inc. VT6105/VT6106S [Rhine-III]
DEVICE=eth1
BOOTPROTO=static
HWADDR=00:1B:11:B0:D6:9B
ONBOOT=yes
MASTER=bond0
SLAVE=yes
创建 /etc/sysconfig/network-scripts/ifcfg-bond0 内容如下:
[root@localhost network-scripts]# cat ifcfg-bond0
DEVICE=bond0
BOOTPROTO=static
ONBOOT=yes
BROADCAST=192.168.0.255
IPADDR=192.168.0.116
NETMASK=255.255.255.0
NETWORK=192.168.0.0
TYPE=Ethernet
在 /etc/modprobe.conf 中添加如下两行:
alias bond0 bonding
options bond0 miimon=100 mode=1
编辑/etc/xen/xend-config.sxp
修改 (network-script network-bridge) 为:(network-script 'network-bridge-bonding netdev=bond0') 此步尤为重要!本人卡在这个步骤2天才得以解决
3.重启系统 shutdown -r now
4.测试.......
阅读(1799) | 评论(0) | 转发(0) |