server3에서...
[root@server3 ~]# nmcli con add con-name team0 type team ifname team0 config '{"runner":{"name":"lacp"}}'
[root@server3 ~]# nmcli con add con-name team0-port1 type team-slave ifname ens34 master team0
[root@server3 ~]# nmcli con add con-name team0-port2 type team-slave ifname ens37 master team0
[root@server3 ~]# nmcli conn modify team0 ipv4.addresses 10.0.0.10/24 ipv4.method manual
[root@server3 ~]# ip a
ens34: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel master team0 state UP
....
4: ens37: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel master team0 state UP
....
8: team0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
inet 10.0.0.10/24 brd 10.0.0.255 scope global noprefixroute team0
server4에서...
[root@server4 ~]# nmcli conn add con-name team0 type team ifname team0 config '{"runner":{"name":"lacp"}}'
[root@server4 ~]# nmcli conn add con-name team0-port1 type team-slave ifname ens34 master team0
[root@server4 ~]# nmcli conn add con-name team0-port2 type team-slave ifname ens37 master team0
[root@server4 ~]# nmcli conn modify team0 ipv4.address 10.0.0.20/24 ipv4.method manual
[root@server4 ~]# nmcli conn show
[root@server4 ~]# ip a
.....
3: ens34: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel master team0 state UP
....
4: ens37: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel master team0 state UP
....
8: team0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
inet 10.0.0.20/24 brd 10.0.0.255 scope global noprefixroute team0
-------------------------
test 하기
vmware segment로 mapping하기 그리고 network adapter 매핑 잘 확인하기
server3 에서 ping test날리면서...
vmware workstation에서 vm server4 settings ->network adapter-> connected 체크 해제
끊기는지 아닌지 확인
가상환경이라 약간 약 1분간 멈춤은 있으나 핑은 잘나감(실제 물리적인 환경에서는 잘 될듯..)
'linux' 카테고리의 다른 글
centos 8 - rsyslog (0) | 2021.01.07 |
---|---|
Centos - HAproxy + nginx (0) | 2021.01.07 |
centos 8 - gluster (0) | 2021.01.06 |
centos 8 - pacemaker + iscsi + gfs2 shared storage 이중화 (0) | 2021.01.05 |
centos 8 - drbd 설치 (0) | 2021.01.04 |