问题:
centos-6.5系统,把网络拉起来,把NAS挂上
eth4
eth5
eth6
eth7
bond0
方案:
- lo还原(无需)
- eth6拉起(无需,网线没插)
- bond0配置修改(无需调整)
- eth03变成了eth47,重新配一下
流程:
## 注意centos-6用的是service,而不是systemctl
service network status
service NetworkManager status
ifconfig
vi /etc/sysconfig/network-scripts/ifcfg-lo
ls -lh /etc/sysconfig/network-scripts/ifcfg-*
rm -rf /etc/sysconfig/network-scripts/ifcfg-eth*
vi /etc/sysconfig/network-scripts/ifcfg-bond0
vi /etc/sysconfig/network-scripts/ifcfg-bond0:irip
cd /etc/sysconfig/network-scripts
vi ifcfg-eth4
cp ifcfg-eth4 ifcfg-eth5
cp ifcfg-eth4 ifcfg-eth6
cp ifcfg-eth4 ifcfg-eth7
vi ifcfg-eth5
vi ifcfg-eth6
vi ifcfg-eth7
service network restart
ip a
cat /proc/net/bonding/bond0
service nfs restart
内容:
DEVICE=eth4
TYPE=Ethernet
ONBOOT=yes
BOOTPROTO=none
MASTER=bond0
SLAVE=yes
NM_CONTROLLED=no
DEVICE="bond0"
ONBOOT="yes"
BONDING_OPTS="mode=6 miimon=100"
BOOTPROTO="static"
DEVICE="bond0:irip"
ONBOOT="yes"
BOOTPROTO="static"
IPADDR="6.6.6.6"
NETMASK="255.255.255.0"
挂后端存储:
sdb 独立 278.9G /
sdc mpath 223.1G cache
sda mpath 223.6G
sde mpath 3T node
sdd mpath 3T
子网掩码都是24
192.168.0.84【没拿到】
192.168.0.86
6.6.6.6
6.6.6.7
图片: