- 论坛徽章:
- 0
|
我的机子是hpbl25p 四个网口 已经安装过psp包
我将eth0和eth2做了一个绑定,绑定的步骤如下:
To configure two network devices for channel bonding, perform the following:
1. Create a bonding devices in /etc/modprobe.conf. For example:
alias bond0 bonding
options bonding miimon=100 mode=1
2. This loads the bonding device with the bond0 interface name, as well as passes options to the bonding driver to configure it as an active-backup master device for the enslaved network interfaces.
3. Edit the /etc/sysconfig/network-scripts/ifcfg-ethX configuration file for both eth0 and eth1 so that the files show identical contents. For example:
DEVICE=ethX
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
4. This will enslave ethX (replace X with the assigned number of the Ethernet devices) to the bond0 master device.
5. Create a network script for the bonding device (for example, /etc/sysconfig/network-scripts/ifcfg-bond0), which would appear like the following example:
DEVICE=bond0
USERCTL=no
ONBOOT=yes
BROADCAST=192.168.1.255
NETWORK=192.168.1.0
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
IPADDR=192.168.1.10
6. Reboot the system for the changes to take effect
昨天晚上网络还是好好的,今天早上去网络就ping 不通了
运行一下service network restart 网络也不通了
重起机器有时候网络也会不通
重起机器的时候网络并没报什么错误,bond0也是被激活了的 |
|