|
|
[root@shlinux /]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
USERCTL=no
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
[root@shlinux /]# cat /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
ONBOOT=yes
USERCTL=no
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
[root@shlinux /]# cat /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
BOOTPROTO=none
USERCTL=no
IPADDR=192.168.7.112
NETMASK=255.255.255.0
NETWORK=192.168.7.0
BROADCAST=192.168.7.255
ONBOOT=yes
[root@shlinux /]# cat /etc/modules.conf
probeall scsi_hostadapter imm ppa
probeall usb-interface usb-uhci ehci-hcd
above snd-intel8x0 snd-pcm-oss
alias sound-slot-0 snd-intel8x0
alias eth0 8139too
alias eth1 8139too
alias bond0 bonding
options bond0 miimon=100 mode=0(负载平衡,1備份)
[root@shlinux /]# cat /etc/sysconfig/network
HOSTNAME=shlinux.sh.abc.com.cn
NETWORKING=yes
GATEWAYDEV=bond0
GATEWAY=192.168.7.252
FORWARD_IPV4=yes
寫的比較清楚了。。。請自行試試 |
|