rhel7 team配置
第一步,将两个网卡相关配置文件删除
为了实验观察,所以删除
第二步,生成team配置文件
在网卡配置文件夹里面就有ifcfg-confteam0配置文件,查看文件
TEAM_CONFIG="{\"runner\":{\"name\":\"roundrobin\"}}"
DEVICETYPE=Team
BOOTPROTO=dhcp
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
NAME=confteam0
UUID=08c10536-6b59-4713-bf74-0f6183767c13
ONBOOT=yes
第三步,为配置文件添加ip地址
第四部,将物理网卡和team0网卡绑定起来
第五步,查看team状态
[root@localhost network-scripts]# ifconfig
eno16777736: flags=4163
ether 00:0c:29:8f:1a:ae txqueuelen 1000 (Ethernet)
RX packets 345567 bytes 26919652 (25.6 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1977 bytes 203584 (198.8 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eno33554992: flags=4163
ether 00:0c:29:8f:1a:ae txqueuelen 1000 (Ethernet)
RX packets 104534 bytes 10800996 (10.3 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 462 bytes 56490 (55.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 0 (Local Loopback)
RX packets 567 bytes 56538 (55.2 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 567 bytes 56538 (55.2 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
team0: flags=4163
inet 10.100.4.125 netmask 255.255.224.0 broadcast 10.100.31.255
inet6 fe80::2c2c:bcff:fe74:1376 prefixlen 64 scopeid 0x20
ether 00:0c:29:8f:1a:ae txqueuelen 0 (Ethernet)
RX packets 2322 bytes 208018 (203.1 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 46 bytes 5446 (5.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
第六步:用windows来ping 虚拟机的ip地址
ping 10.100.4.125 -t
第7步:用ifdown来宕掉网卡,测试,是否能冗余
发现windows还是可以持续ping通
第八步:启动网卡,查看配置