Setting the MTU on a Teamed Interface in RHEL 8 Using nmcli [Solved]
I have been following the instructions from section 12.6 here but I am not sure how to set the MTU which defaults to 1500.
I tried setting the MTU of the slaves but that didn't seem to help.
# nmcli connection modify team1-port0 802-3-ethernet.mtu 9000
# nmcli connection modify team1-port1 802-3-ethernet.mtu 9000
# nmcli con down team1
Connection 'team1' successfully deactivated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/1237)
# nmcli con up team1
Connection successfully activated (master waiting for slaves) (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/1240)
# ip a s dev team1
24: team1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether a4:56:ff:5f:49:78 brd ff:ff:ff:ff:ff:ff
inet 172.16.45.22/16 brd 172.16.255.255 scope global noprefixroute team1
valid_lft forever preferred_lft forever
Here are more relevant settings:
# nmcli con show
NAME UUID TYPE DEVICE
team0 09e2117f-8603-4341-9d7d-202d3d1a5eb1 team team0
team1 472ef0a7-cc31-4717-9c43-63866a09454a team team1
team0-port0 15b7740e-d395-4490-a85b-b4e8e95a7cf5 ethernet eno1
team0-port1 ed4b3f70-005c-4437-9195-e1af47053695 ethernet eno2
team1-port0 df594c8f-bf68-4ec6-9158-7e126b414c4d ethernet ens1f0
team1-port1 f4660772-9cf3-4aeb-8d45-e7b44038676c ethernet ens1f1
# nmcli con show team1-port0
connection.id: team1-port0
connection.uuid: df594c8f-bf68-4ec6-9158-7e126b414c4d
connection.stable-id: --
connection.type: 802-3-ethernet
connection.interface-name: ens1f0
connection.autoconnect: yes
connection.autoconnect-priority: 0
connection.autoconnect-retries: -1 (default)
connection.multi-connect: 0 (default)
connection.auth-retries: -1
connection.timestamp: 1617105522
connection.read-only: no
connection.permissions: --
connection.zone: --
connection.master: team1
connection.slave-type: team
connection.autoconnect-slaves: -1 (default)
connection.secondaries: --
connection.gateway-ping-timeout: 0
connection.metered: unknown
connection.lldp: default
connection.mdns: -1 (default)
connection.llmnr: -1 (default)
connection.wait-device-timeout: -1
802-3-ethernet.port: --
802-3-ethernet.speed: 0
802-3-ethernet.duplex: --
802-3-ethernet.auto-negotiate: no
802-3-ethernet.mac-address: --
802-3-ethernet.cloned-mac-address: --
802-3-ethernet.generate-mac-address-mask:--
802-3-ethernet.mac-address-blacklist: --
802-3-ethernet.mtu: 9000
802-3-ethernet.s390-subchannels: --
802-3-ethernet.s390-nettype: --
802-3-ethernet.s390-options: --
802-3-ethernet.wake-on-lan: default
802-3-ethernet.wake-on-lan-password: --
team-port.config: --
team-port.queue-id: -1 (unset)
team-port.prio: 0 (unset)
team-port.sticky: no
team-port.lacp-prio: -1 (unset)
team-port.lacp-key: -1 (unset)
team-port.link-watchers: --
GENERAL.NAME: team1-port0
GENERAL.UUID: df594c8f-bf68-4ec6-9158-7e126b414c4d
GENERAL.DEVICES: ens1f0
GENERAL.IP-IFACE: ens1f0
GENERAL.STATE: activated
GENERAL.DEFAULT: no
GENERAL.DEFAULT6: no
GENERAL.SPEC-OBJECT: --
GENERAL.VPN: no
GENERAL.DBUS-PATH: /org/freedesktop/NetworkManager/ActiveConnection/1241
GENERAL.CON-PATH: /org/freedesktop/NetworkManager/Settings/22
GENERAL.ZONE: --
GENERAL.MASTER-PATH: /org/freedesktop/NetworkManager/Devices/13
IP4.GATEWAY: --
IP6.GATEWAY: --
IP6.ROUTE[1]: dst = ff00::/8, nh = ::, mt = 256, table=255
# nmcli con show team1-port1
connection.id: team1-port1
connection.uuid: f4660772-9cf3-4aeb-8d45-e7b44038676c
connection.stable-id: --
connection.type: 802-3-ethernet
connection.interface-name: ens1f1
connection.autoconnect: yes
connection.autoconnect-priority: 0
connection.autoconnect-retries: -1 (default)
connection.multi-connect: 0 (default)
connection.auth-retries: -1
connection.timestamp: 1617105522
connection.read-only: no
connection.permissions: --
connection.zone: --
connection.master: team1
connection.slave-type: team
connection.autoconnect-slaves: -1 (default)
connection.secondaries: --
connection.gateway-ping-timeout: 0
connection.metered: unknown
connection.lldp: default
connection.mdns: -1 (default)
connection.llmnr: -1 (default)
connection.wait-device-timeout: -1
802-3-ethernet.port: --
802-3-ethernet.speed: 0
802-3-ethernet.duplex: --
802-3-ethernet.auto-negotiate: no
802-3-ethernet.mac-address: --
802-3-ethernet.cloned-mac-address: --
802-3-ethernet.generate-mac-address-mask:--
802-3-ethernet.mac-address-blacklist: --
802-3-ethernet.mtu: 9000
802-3-ethernet.s390-subchannels: --
802-3-ethernet.s390-nettype: --
802-3-ethernet.s390-options: --
802-3-ethernet.wake-on-lan: default
802-3-ethernet.wake-on-lan-password: --
team-port.config: --
team-port.queue-id: -1 (unset)
team-port.prio: 0 (unset)
team-port.sticky: no
team-port.lacp-prio: -1 (unset)
team-port.lacp-key: -1 (unset)
team-port.link-watchers: --
GENERAL.NAME: team1-port1
GENERAL.UUID: f4660772-9cf3-4aeb-8d45-e7b44038676c
GENERAL.DEVICES: ens1f1
GENERAL.IP-IFACE: ens1f1
GENERAL.STATE: activated
GENERAL.DEFAULT: no
GENERAL.DEFAULT6: no
GENERAL.SPEC-OBJECT: --
GENERAL.VPN: no
GENERAL.DBUS-PATH: /org/freedesktop/NetworkManager/ActiveConnection/1242
GENERAL.CON-PATH: /org/freedesktop/NetworkManager/Settings/23
GENERAL.ZONE: --
GENERAL.MASTER-PATH: /org/freedesktop/NetworkManager/Devices/13
IP4.GATEWAY: --
IP6.GATEWAY: --
IP6.ROUTE[1]: dst = ff00::/8, nh = ::, mt = 256, table=255
# nmcli con show team1
connection.id: team1
connection.uuid: 472ef0a7-cc31-4717-9c43-63866a09454a
connection.stable-id: --
connection.type: team
connection.interface-name: team1
connection.autoconnect: yes
connection.autoconnect-priority: 0
connection.autoconnect-retries: -1 (default)
connection.multi-connect: 0 (default)
connection.auth-retries: -1
connection.timestamp: 1617105522
connection.read-only: no
connection.permissions: --
connection.zone: --
connection.master: --
connection.slave-type: --
connection.autoconnect-slaves: -1 (default)
connection.secondaries: --
connection.gateway-ping-timeout: 0
connection.metered: unknown
connection.lldp: default
connection.mdns: -1 (default)
connection.llmnr: -1 (default)
connection.wait-device-timeout: -1
ipv4.method: manual
ipv4.dns: --
ipv4.dns-search: --
ipv4.dns-options: --
ipv4.dns-priority: 0
ipv4.addresses: 172.16.45.22
ipv4.gateway: --
ipv4.routes: --
ipv4.route-metric: -1
ipv4.route-table: 0 (unspec)
ipv4.routing-rules: --
ipv4.ignore-auto-routes: no
ipv4.ignore-auto-dns: no
ipv4.dhcp-client-id: --
ipv4.dhcp-iaid: --
ipv4.dhcp-timeout: 0 (default)
ipv4.dhcp-send-hostname: yes
ipv4.dhcp-hostname: --
ipv4.dhcp-fqdn: --
ipv4.dhcp-hostname-flags: 0x0 (none)
ipv4.never-default: no
ipv4.may-fail: yes
ipv4.dad-timeout: -1 (default)
ipv4.dhcp-vendor-class-identifier: --
ipv6.method: disabled
ipv6.dns: --
ipv6.dns-search: --
ipv6.dns-options: --
ipv6.dns-priority: 0
ipv6.addresses: --
ipv6.gateway: --
ipv6.routes: --
ipv6.route-metric: -1
ipv6.route-table: 0 (unspec)
ipv6.routing-rules: --
ipv6.ignore-auto-routes: no
ipv6.ignore-auto-dns: no
ipv6.never-default: no
ipv6.may-fail: yes
ipv6.ip6-privacy: -1 (unknown)
ipv6.addr-gen-mode: stable-privacy
ipv6.ra-timeout: 0 (default)
ipv6.dhcp-duid: --
ipv6.dhcp-iaid: --
ipv6.dhcp-timeout: 0 (default)
ipv6.dhcp-send-hostname: yes
ipv6.dhcp-hostname: --
ipv6.dhcp-hostname-flags: 0x0 (none)
ipv6.token: --
team.config: { "runner": { "name": "loadbalance" } }
team.notify-peers-count: -1 (unset)
team.notify-peers-interval: -1 (unset)
team.mcast-rejoin-count: -1 (unset)
team.mcast-rejoin-interval: -1 (unset)
team.runner: loadbalance
team.runner-hwaddr-policy: --
team.runner-tx-hash: --
team.runner-tx-balancer: --
team.runner-tx-balancer-interval: -1 (unset)
team.runner-active: yes
team.runner-fast-rate: no
team.runner-sys-prio: -1 (unset)
team.runner-min-ports: -1 (unset)
team.runner-agg-select-policy: --
team.link-watchers: --
proxy.method: none
proxy.browser-only: no
proxy.pac-url: --
proxy.pac-script: --
GENERAL.NAME: team1
GENERAL.UUID: 472ef0a7-cc31-4717-9c43-63866a09454a
GENERAL.DEVICES: team1
GENERAL.IP-IFACE: team1
GENERAL.STATE: activated
GENERAL.DEFAULT: no
GENERAL.DEFAULT6: no
GENERAL.SPEC-OBJECT: --
GENERAL.VPN: no
GENERAL.DBUS-PATH: /org/freedesktop/NetworkManager/ActiveConnection/1240
GENERAL.CON-PATH: /org/freedesktop/NetworkManager/Settings/21
GENERAL.ZONE: --
GENERAL.MASTER-PATH: --
IP4.ADDRESS[1]: 172.16.45.22
IP4.GATEWAY: --
IP4.ROUTE[1]: dst = 172.16.0.0/16, nh = 0.0.0.0, mt = 351
team0 is configured correctly (default MTU is OK) so you can ignore those profiles.