高级网络配置-创新互联

###############team###############

创新互联是一家专业提供宽城企业网站建设,专注与成都网站制作、成都网站设计、H5场景定制、小程序制作等业务。10年已为宽城众多企业、政府机构等服务。创新互联专业网站建设公司优惠进行中。

1.team 也是链路聚合的一种方式,最多支持8块网卡

支持模式

广播

轮询

主备

负载均衡

2.配置

nmcli connection add con-name team0 ifname team0 type team config '{"runner":{"name":"activebackup"}}' ip4 172.25.254.195/24

nmcli connection add con-name eth0 ifname eth0 type team-slave master team0

nmcli connection add con-name eth2 ifname eth2 type team-slave maste

r team0

3.测试

watch -n 1 teamdctl team0 stat

ifconfig eth0 down

ifconfig eth0 up

##################网桥######################

配置方式

systemctl stop NetworkManager.service

vim /etc/sysconfig/network-scripts/ifcfg-enp0s25

DEVICE=enp0s25

ONBOOT=yes

BOOTPROTO=none

BRIDGE=br0

vim /etc/sysconfig/network-scripts/ifcfg-br0

DEVICE=enp0s25

ONBOOT=yes

BOOTPROTO=none

IPADDR=172.25.254.95

NETMASK=255.255.255.0

TYPE=Bridge

systemctl restart network

systemctl start NetworkManager.service

ifconfig

######命令管理方式

#添加

systemctl stop NetworkManager

brctl show

brctl addbr br0

brctl addif br0 eth0

ifconfig eth0 up

ifconfig br0 172.25.254.195 netmask 255.255.255.0

brctl show

ping 172.25.254.95

#删除

ifconfig br0 down

brctl delif br0 eth0

brctl delbr br0

brctl show

另外有需要云服务器可以了解下创新互联scvps.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


文章名称:高级网络配置-创新互联
网页地址:http://myzitong.com/article/ccgjic.html