b2科目四模拟试题多少题驾考考爆了怎么补救
b2科目四模拟试题多少题 驾考考爆了怎么补救

bootproto static CentOS7多网卡手动绑定

电脑杂谈  发布时间:2018-02-11 23:57:24  来源:网络整理

centos6.5设置静态ip_bootproto static_centos7图形界面配置ip

bootproto staticbootproto static

标签:

关闭NetworkManager:

systemctl stopNetworkManager

一、(mode0)轮询模式:

[root@centos7 network-scripts]# vi ifcfg-bond0 
DEVICE=bond0
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=static
BONDING_OPTS="mode=0 miimon=100"
BONDING_MASTER=yes
[root@centos7 network-scripts]# vi ifcfg-eth0
DEVICE=eth0
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=none
MASTER=bond0
SLAVE=yes

[root@centos7network-scripts]# vi ifcfg-eth1

DEVICE=eth1

TYPE=Ethernet

ONBOOT=yes

NM_CONTROLLED=yes

BOOTPROTO=none

MASTER=bond0

SLAVE=yes

二、(mode1)主备模式:

[root@centos7network-scripts]# vi ifcfg-bond0

DEVICE=bond0

TYPE=Ethernet

ONBOOT=yes

NM_CONTROLLED=yes

BOOTPROTO=static

BONDING_OPTS="mode=1 miimon=100"

BONDING_MASTER=yes

[root@centos7network-scripts]# vi ifcfg-eth0

DEVICE=eth0

TYPE=Ethernet

bootproto static_centos6.5设置静态ip_centos7图形界面配置ip

ONBOOT=yes

NM_CONTROLLED=yes

BOOTPROTO=none

MASTER=bond0

SLAVE=yes

[root@centos7network-scripts]# vi ifcfg-eth1

DEVICE=eth1

TYPE=Ethernet

ONBOOT=yes

NM_CONTROLLED=yes

BOOTPROTO=none

MASTER=bond0

SLAVE=yes

三、(mode2)802.3ad,LACP模式:

华为交换机侧配置:

interface gigabit0/1

eth-trunk 14

interface gigabit0/1

eth-trunk 14

interface Eth-Trunk14

description link-to-centos-server-bond0

port default vlan 10

mode lacp

服务器侧配置:

[root@centos7network-scripts]# vi ifcfg-bond0

bootproto static_centos6.5设置静态ip_centos7图形界面配置ip

DEVICE=bond0

TYPE=Ethernet

ONBOOT=yes

NM_CONTROLLED=yes

BOOTPROTO=static

BONDING_OPTS="mode=802.3ad miimon=100 lacp_rate=fast"

BONDING_MASTER=yes

[root@centos7network-scripts]# vi ifcfg-eth0

DEVICE=eth0

TYPE=Ethernet

ONBOOT=yes

NM_CONTROLLED=yes

BOOTPROTO=none

MASTER=bond0

SLAVE=yes

[root@centos7network-scripts]# vi ifcfg-eth1

DEVICE=eth1

TYPE=Ethernet

ONBOOT=yes

NM_CONTROLLED=yes

BOOTPROTO=none

MASTER=bond0

SLAVE=yes

检查bond状态:

cat /proc/net/bonding/bond0

CentOS7多网卡手动绑定


本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-72643-1.html

    相关阅读
      发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

      热点图片
      拼命载入中...