创建bond接口请查看:
http://568273240.blog.51cto.com/2921150/1689541
创建bridge接口直接上配置文件,应该nmtui没成功。
# cat /etc/sysconfig/network-scripts/ifcfg-Bond_connection_1
DEVICE=bond0
TYPE=Bond
BONDING_MASTER=yes
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=no
NAME="Bond connection 1"
UUID=3787f827-24bd-4a2c-bd24-b9b085bcf002
ONBOOT=yes
BONDING_OPTS="updelay=0 resend_igmp=1 use_carrier=1 miimon=100 downdelay=0 xmit_hash_policy=0 primary_reselect=0 fail_over_mac=0 arp_validate=0 mode=802.3ad lacp_rate=0 arp_interval=0 ad_select=0"
#IPADDR=192.168.1.84
#PREFIX=24
#GATEWAY=192.168.1.1
BRIDGE="bridge0"
# cat /etc/sysconfig/network-scripts/ifcfg-bridge0
TYPE="Bridge"
BOOTPROTO="static"
IPADDR=192.168.1.84
PREFIX=24
GATEWAY=192.168.1.1
NAME="bridge0"
DEVICE="bridge0"
ONBOOT="yes"
# systemctl restart network
建议将BOOTPROTO改成none或static,不容易出问题。
博主QQ:568273240
博客:http://568273240.blog.51cto.com/