Linux??·????·???team??????
?????yaobinbin ???????[ 2017/5/9 9:48:14 ] ?????????????? Linux ·??
??????????? linux ??·????????????????????????????????????????? ·??????
????????????? 4 ????????????м???????·??????????????????????????????????????????????????????ò?????ε??????????以????? ( ?????? vmware ??????????飬??????????????????????? )
???????????
????????????? A ?? D ????????????????????·???????????????????? B ?? C ·?????е????????????
????A ???????????
????[root@xiao ~]# ip addr add 10.0.0.1/8 dev eth0
????D ???????????
????[root@xiao ~]# ip addr add 192.168.0.1/24 dev eth0
???????? A ?? D ??????????????????????????????? A ?????? D ?????????????????????? A ?????? D ?????????????У? A ???? D ??????? C ·?????????? B ·????????????·????????? C ·??????????????????????? B ????????·????? B ?????е???????????? C ???磬??? B ·?????????·?????????? B ·?????? 1 ?????? C ?????? 1 ??????????·?????????????????? A ?? D ?????????д·????? B ·?????????? D ???磬 B ·???????е???????????? C ???磬?????????????????????????????? A ?? D ??????????
????iptables -F
????B ·????·??????
????[root@xiao ~]#route add -net 192.168.0.0/24 gw 172.48.0.2 dev eth1
????C ???????????
????[root@xiao ~]#route add -net 10.0.0.0/8 gw 172.48.0.1 dev eth1
????????·?????
?????????·??????????????????????????? A ?????? D ???????????????????? ip ?????????????????????????????
????[root@xiao ~]#echo “1” > /proc/sys/net/ipv4/ipv4_forward=1
???????????????????????
??????? A ?????? ping A ?????????????????????????????? C ?????? 1 ?????????????????? pingD ?????????? D ?????? ping ?? A ???????????????????????????????????? A ???? ping ????????????????????·?????д????????????д???·?????????? A ?? B ???????? A ???? ping C ?????? 1 ??????????????? B ·?????? C ·??????·???????????????????????????????????
??????????????У?????·??????·????????????????????????·???????? ip ???????Σ?·???????????????????????????????????磬????????????????????
??????????????
?????????????
?????????飺??????????????????????????????????????????????????鯔????? bonding ?????????????????????????????????????????? teamd ??????????
??????????
????broadcast ??
????roundrobin ???
????active-backup ??????
????loadbalance ???????
????lacp ?? implemments the 802.3ad Link Aggregatin Control ???????·???
??????????????????????????????????????????????????????????????????????????????????
??????????????? CentOS7 ?????????????????????????????????????????? ?? ???????????? nmcli ???????????????? teamdctl ?????????????а????? yum ??? team ???????????
????????????????
????[root@xiao ~]# nmcli connection add con-name team0 type team ifname team0 config ‘{ “runner”: {“name”: “activebackup”}}’
?????????????д “runner”: {“name”: “activebackup”} ???????????????? man teamd.conf ?????θ??????
????????????????? ip ??????????????
????[root@xiao ~]# nmcli connection modify team0 ipv4.addresses 10.1.252.150
????[root@xiao ~]# nmcli connection modify team0 ipv4.method manual
??????????????????????鵱???
????[root@xiao ~]# nmcli connection add con-name team0-1 type team-slave ifname eno16777736 master team0
????[root@xiao ~]# nmcli connection add con-name team0-1 type team-slave ifname eno33554984 master team0
??????????????
????[root@xiao ~]# nmcli connection up team0
????[root@xiao ~]# nmcli connection up team0-1
????[root@xiao ~]# nmcli connection up team0-2
???????????????
????systemctl restart network
????????
setup:
runner: activebackup
ports:
eno16777736
link watches:
link summary: up
instance[link_watch_0]:
name: ethtool
link: up
down count: 0
eno33554984
link watches:
link summary: up
instance[link_watch_0]:
name: ethtool
link: up
down count: 0
runner:
active port: eno16777736
???????? down ????????????????????????????????????
setup:
runner: activebackup
ports:
eno16777736
link watches:
link summary: down
instance[link_watch_0]:
name: ethtool
link: down
down count: 2
eno33554984
link watches:
link summary: up
instance[link_watch_0]:
name: ethtool
link: up
down count: 2
runner:
active port: eno33554984
????????
???????????????? ping ??????? IP ??? down ?????????????????????·??????????????????л????????????? ping ??????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11