歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux綜合 >> 學習Linux

CentOS 7網卡網橋、綁定設置

CentOS 7網卡網橋、綁定設置


熱度1 評論 170 www.BkJia.Com  網友分享於:  2017-02-10 07:02:16     浏覽數26799次

CentOS 7網卡網橋、綁定設置


一、網卡橋接設置:

1、網卡配置文件:

[root@localhost /]# vim /etc/sysconfig/network-scripts/ifcfg-enp8s0

123456TYPE=EthernetDEVICE=enp8s0NAME=enp8s0BOOTPROTO=noneONBOOT=yesBRIDGE=br0

2、網橋配置文件:

[root@localhost /]# vim /etc/sysconfig/network-scripts/ifcfg-br0

12345678TYPE=BridgeDEVICE=br0BOOTPROTO=staticONBOOT=yesIPADDR=192.168.1.200NETMASK=255.255.255.0GATEWAY=192.168.1.1DNS1=114.114.114.114

二、網卡綁定設置:

1、網卡配置文件01:

[root@localhost /]# vim /etc/sysconfig/network-scripts/ifcfg-enp6s0f0

12345678TYPE=EthernetDEVICE=enp6s0f0NAME=enp6s0f0BOOTPROTO=noneONBOOT=yesUSERCTL=noMASTER=bond0SLAVE=yes

2、網卡配置文件02:

[root@localhost /]# vim /etc/sysconfig/network-scripts/ifcfg-enp6s0f1

12345678TYPE=EthernetDEVICE=enp6s0f1NAME=enp6s0f1BOOTPROTO=noneONBOOT=yesUSERCTL=noMASTER=bond0SLAVE=yes

3、網橋配置文件:

[root@localhost /]# vim /etc/sysconfig/network-scripts/ifcfg-bond0

123456789TYPE=EthernetDEVICE=bond0BOOTPROTO=staticONBOOT=yesUSERCTL=noIPADDR=172.16.1.216NETMASK=255.255.255.0GATEWAY=172.16.1.1DNS1=114.114.114.114

http://www.bkjia.com/Linuxjc/1191942.html TechArticle

Copyright © Linux教程網 All Rights Reserved