team
1.
team 也是链路聚合的一种方式
最多支持8块网卡
支持模式
广播
轮询
主备
负载均衡
2.配置
nmcli connection add con-name team0 ifname team0 type team config '{"runner":{"name":"activebackup"}}' ip4 172.25.254.118/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 teamdctl team0 stat
ifconfig eth0 down
vim /etc/sysconfig/network-scripts/ifcfg-enp0s25
DEVICE=enp0s25 #设备名称
ONBOOT=yes #开启服务设备自动激活
BOOTPROTO=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
命令管理方法
添加
systemctl stop NetworkManager
brctl show
brctl addbr br0
brctl addif br0 eth0
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 地址枯竭
ipv6 128/2
128/2 ---------> 128/8 16 -----> 0-f
2017:0:0:0:f:0:0:1
2017::f:0:0:1 =======>三种方式表示的ip是同一种
2017:0:0:0:f::1
vim /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=none
IPADDR=172.25.254.118
NETMASK=255.255.255.0
IPV6INIT=yes
IPV6_AUTOCONF=no
IPV6ADDR=2017::a/64
systemctl restart network
测试
ping6 2017::a
1.
team 也是链路聚合的一种方式
最多支持8块网卡
支持模式
广播
轮询
主备
负载均衡
2.配置
nmcli connection add con-name team0 ifname team0 type team config '{"runner":{"name":"activebackup"}}' ip4 172.25.254.118/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 teamdctl team0 stat
ifconfig eth0 down
ifconfig eth0 up
vim /etc/sysconfig/network-scripts/ifcfg-enp0s25
DEVICE=enp0s25 #设备名称
ONBOOT=yes #开启服务设备自动激活
BOOTPROTO=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
命令管理方法
添加
systemctl stop NetworkManager
brctl show
brctl addbr br0
brctl addif br0 eth0
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 地址枯竭
ipv6 128/2
128/2 ---------> 128/8 16 -----> 0-f
2017:0:0:0:f:0:0:1
2017::f:0:0:1 =======>三种方式表示的ip是同一种
2017:0:0:0:f::1
vim /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=none
IPADDR=172.25.254.118
NETMASK=255.255.255.0
IPV6INIT=yes
IPV6_AUTOCONF=no
IPV6ADDR=2017::a/64
systemctl restart network
测试
ping6 2017::a