??????????? 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 ??????