Anyone know how to TEAM NICs on a HyperV VM that is CentOS

Issues related to configuring your network
Post Reply
BaghdadIT
Posts: 3
Joined: 2020/05/13 19:29:45

Anyone know how to TEAM NICs on a HyperV VM that is CentOS

Post by BaghdadIT » 2020/05/22 19:21:29

all

Thank you for any help in advance. I am trying to basically pass through two physical NICs to the CentOS VM on a Windows Server 2019 core build HyperV host and team them there using LACP. has anyone done this or know how, of even if it can be done. My issue is the teaming on the CentOS VM, It just no matter what when I do a

teamdctl team0 state, it only shows the team0 json and never has the eth ports

any ideas?

User avatar
jlehtone
Posts: 2937
Joined: 2007/12/11 08:17:33
Location: Finland

Re: Anyone know how to TEAM NICs on a HyperV VM that is CentOS

Post by jlehtone » 2020/05/22 22:45:59

Two parts:
1. How does the HyperV pass through? I don't know, but that is not a CentOS issue.
2. How did you set up the team?

BaghdadIT
Posts: 3
Joined: 2020/05/13 19:29:45

Re: Anyone know how to TEAM NICs on a HyperV VM that is CentOS

Post by BaghdadIT » 2020/05/26 13:19:10

jlehtone

Thank you for your response, as far as the Windows HyperV system, on the properties of the VM, you add the NICs and assign each one to a separate Virtual switch. and on each NIC there is a setting to " Enable this network adapter to be part of a team in the gust operating system". Once you configure and enable these NICS, the CentOS does see two new Ethernet adapters. I was hoping to use lacp for the teaming, I configured the team and slaves using the nmcli


eth0 204996b6-dbba-49f5-a1bc-f695060a439c ethernet eth0
team0 3664f63f-3f3e-41b4-89aa-7a703f2586db team team0
virbr0 95403817-47f0-4712-a590-2929ab060daa bridge virbr0
team0-slave1 831ec6b1-e1e7-4911-b674-2c9877fc797f ethernet eth1
team0-slave2 9eb0a828-c830-4c11-b735-a89a0bdc22c9 ethernet eth2
eth1 18fd6f07-61db-4a51-912c-40f766bb4a00 ethernet --
eth2 6b412bde-5930-4a71-9593-3f8ba72d5dad ethernet --


[root@72-omnicache ~]# cat /etc/sysconfig/network-scripts/ifcfg-team0
TEAM_CONFIG="{\"runner\": {\"name\": \"lacp\", \"tx_hash\": [\"eth\", \"ipv4\", \"ipv6\"]}, \"link_watch\": {\"name\": \"ethtool\"}}"
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none
NM_CONTROLLED=no
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=team0
UUID=3664f63f-3f3e-41b4-89aa-7a703f2586db
DEVICE=team0
ONBOOT=yes
DEVICETYPE=Team
IPADDR=10.250.91.75
PREFIX=24
GATEWAY=10.250.91.1
DNS1=10.250.40.102
DNS2=10.250.40.101
DOMAIN=dev.paytel.com

cat /etc/sysconfig/network-scripts/ifcfg-team0-slave1
NAME=team0-slave1
UUID=831ec6b1-e1e7-4911-b674-2c9877fc797f
DEVICE=eth1
ONBOOT=yes
TEAM_MASTER=team0
DEVICETYPE=TeamPort

[root@72-omnicache network-scripts]# cat ifcfg-team0-slave2
NAME=team0-slave2
UUID=9eb0a828-c830-4c11-b735-a89a0bdc22c9
DEVICE=eth2
ONBOOT=yes
TEAM_MASTER=team0
DEVICETYPE=TeamPort

User avatar
jlehtone
Posts: 2937
Joined: 2007/12/11 08:17:33
Location: Finland

Re: Anyone know how to TEAM NICs on a HyperV VM that is CentOS

Post by jlehtone » 2020/05/27 08:22:35

This is from a CentOS 7 system:

Code: Select all

# cat team1-master-json.conf
{
   "device": "team0",
   "runner": {
       "name": "lacp",
       "active": true,
       "fast_rate": true,
       "tx_hash": ["eth", "ipv4", "ipv6"]
   },
     "link_watch": {"name": "ethtool"},
     "ports": {"p3p2": {}}
}
Connection was created with:

Code: Select all

nmcli con add type team con-name Team1 ifname Team1
nmcli con mod Team1 config team1-master-json.conf
nmcli con add type ethernet con-name Team1-slave2 ifname p3p2 master Team1
nmcli con add type ethernet con-name Team1-slave1 ifname p3p1 master Team1
Despite two slaves the config remains:

Code: Select all

nmcli -t -f team.config c s Team1
team.config:{"device": "team0", "runner": {"name": "lacp", "fast_rate": true, "tx_hash": ["eth", "ipv4", "ipv6"]}, "link_watch": {"name": "ethtool"}, "ports": {"p3p2": {}}}
The current status:

Code: Select all

teamdctl Team1 state
setup:
  runner: lacp
ports:
  p3p1
    link watches:
      link summary: up
      instance[link_watch_0]:
        name: ethtool
        link: up
        down count: 0
    runner:
      aggregator ID: 4, Selected
      selected: yes
      state: current
  p3p2
    link watches:
      link summary: up
      instance[link_watch_0]:
        name: ethtool
        link: up
        down count: 0
    runner:
      aggregator ID: 4, Selected
      selected: yes
      state: current
runner:
  active: yes
  fast rate: yes
This host is on bare metal and there is a HP ProCurve switch at the other end of the cables.

BaghdadIT
Posts: 3
Joined: 2020/05/13 19:29:45

Re: Anyone know how to TEAM NICs on a HyperV VM that is CentOS

Post by BaghdadIT » 2020/05/28 20:22:47

jlehtone

Again, I apologize for the delay, I am going to compatre your configs to what I have and if necessary manually modify them. I will post my results here..and Thank you again

Post Reply

Return to “CentOS 8 - Networking Support”