Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Attempt to add hsr/prp device returns unknown type

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
koverskeid
Posts: 1
Joined: 2021-09-10 08:53
Has thanked: 1 time

Attempt to add hsr/prp device returns unknown type

#1 Post by koverskeid »

Hi all,

I'm currently trying to add a prp device with the command

Code: Select all

$sudo ip link add name prp0 type hsr slave1 enp3s0 slave2 enp4s0 proto 1

But get

Code: Select all

Error: Unknown device type.
slapped in by face

This command worked without a problem in Ubuntu 21.04.

When I use the help option, I get the following syntax suggestion:

Code: Select all

$ip link help hsr
Usage:  ip link add name NAME type hsr slave1 SLAVE1-IF slave2 SLAVE2-IF [ supervision ADDR-BYTE ] [version VERSION] [proto PROTOCOL]
but this page https://manpages.debian.org/bullseye/ip ... .8.en.html suggests this syntax:

Code: Select all

ip link add link DEVICE name NAME type hsr slave1 SLAVE1-IF slave2 SLAVE2-IF [ supervision ADDR-BYTE ] [ version { 0 | 1 } [ proto { 0 | 1 } ]
Anyway, I get the same error message regardless of the syntax.

System info:

Code: Select all

$lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 11 (bullseye)
Release:        11
Codename:       bullseye

Code: Select all

$apt-cache policy iproute2
iproute2:
  Installed: 5.10.0-4
  Candidate: 5.10.0-4
  Version table:
 *** 5.10.0-4 500
        500 http://deb.debian.org/debian bullseye/main amd64 Packages
        100 /var/lib/dpkg/status
Any suggestions to what I'm doing wrong?

Aki
Global Moderator
Global Moderator
Posts: 2823
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 69 times
Been thanked: 385 times

Re: Attempt to add hsr/prp device returns unknown type

#2 Post by Aki »

Hello,

I suspect the HRS support is not active by default in current Debian Stable kernel [1]

[1] https://sources.debian.org/src/linux/5. ... 7023#L7023
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

Post Reply