###################
#### team #########
###################
1.
team也是链路聚合的一种方式
最多支持8块网卡
支持模式
广播
论旬
主备
负载均衡
2.配置
nmcli connection add con-name team0 ifname team0 type team config ‘{"runner":{"name":"activebackup"}}‘ ip4 172.25.254.100/24
nmcli connection add con-name eth0 ifname eth0 type team-slave master team0
nmcli connection add con-name eth1 ifname eth1 type team-slave master team0
3.测试
watch -n 1 teamdctl team0 stat
ifconfig eth0 down
ifconfig eth0 up
##############################
######### 网桥 ###############
##############################
配置方式
vim /etc/sysconfig/network-scripts/ifcfg-enp0s25
DEVICE=enp0s25##设备名称
ONBOOT=yes##开启服务设备自动激活
BOOTPROTO=none##网卡工作状态
BRIDGE=br0##网卡开启的网桥接口
vim /etc/sysconfig/network-scripts/ifcfg-br0
DEVICE=br0
ONBOOT=yes
BOOTPROTO=none
IPADDR=172.25.254.20
NETMASK=255.255.255.0
TYPE=Bridge##网络接口类型是桥接
systemctl stop NetworkManager.service
systemctl restart network
systemctl start NetworkManager.service
ifconfig
br0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.25.254.20 netmask 255.255.255.0 broadcast 172.25.254.255
inet6 fe80::221:ccff:fe60:32a3 prefixlen 64 scopeid 0x20<link>
ether 00:21:cc:60:32:a3 txqueuelen 0 (Ethernet)
RX packets 25396 bytes 59291358 (56.5 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 15360 bytes 105128915 (100.2 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
###命令管理方式
#添加
systemctl stop NetworkManager
brctl show
brctl addbr br0
brctl addif br0 eth0
ifconfig eth0 up
ifconfig br0 172.25.254.x netmask 255.255.255.0
brctl show
ping 172.25.254.250
#删除
ifconfig br0 down
brctl delif br0 eth0
brctl delbr br0
brctl show
#############
### ipv6 ####
#############
1.
internet proto version 6
ipv4 32/2地址枯竭 子网掩码24 16 8
ipv6 128/2子网16 32 48 64 80
128/2 ------------> 128/8 16 ------> 0-f
2017:0:0:0:f:0:0:1/48
2017::f:0:0:1
2017:0:0:0:f::1
0000------>ffff
原文地址:http://12774035.blog.51cto.com/12764035/1929167