Custom startup script to set interface link speed?

Started by patrick3000, February 02, 2024, 07:53:50 AM

Previous topic - Next topic
You have to assign the underlying physical interface a name under "Interfaces: Assignments" in order to be able to manipulate it. Now it is just ix0, but inaccessible under "Interfaces".

Intel N100, 4 x I226-V, 16 GByte, 256 GByte NVME, ZTE F6005

1100 down / 440 up, Bufferbloat A+

Ah ok, I can see ix0 still available in the drop-down. 
What's the impact of assigning ix0 as an interface, whilst also having wan interface with ppoe

The impact is that you will be able to set the interface speed  ;)
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Hi, please see screenshot of my existing interface setup.  As you can see, my WAN is configured to use PPOE which itself is bound to ixo.

So what you are saying it, I should create another interface, for ix0 and set the speed and duplex there?
Then I should assign this new interface as the interface for the ppoe device configuration?

If so, should the new IX0 interface be set with none for the IPV4/6 config.

Many thanks


You should leave the PPPoE and WAN just as it is.

- create a new interface, e.g. WANPHYS assigned to ix0
- enable WANPHYS
- set IPv4 and IPv6 addresses to "None"
- set link speed as desired

Done.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Ok thanks.  Seems counterintuitive to me as I'm not fully understanding why its necessary to create an interface from this device to support this and any security implications but will give it a try.

thank you sir.

December 09, 2024, 11:54:15 PM #21 Last Edit: December 10, 2024, 12:03:47 AM by AhnHEL
I was using the X550-t2 last year but have since changed hardware.  Wasnt this issue resolved with this sysctl added to Tunables?

sysctl dev.ix.0.advertise_speed=55



Quote
sysctl dev.ix.X.advertise_speed=N

Where X is the interface number (e.g. for ix0, X=0 in the command above) and N is the sum of the advertised speeds, works.

In hex and decimal:

Control advertised link speed using these flags:
    0x1 - 1 - advertise 100M
    0x2 - 2 - advertise 1G
    0x4 - 4 - advertise 10G
    0x8 - 8 - advertise 10M

    0x10 - 16 - advertise 2.5G
    0x20 - 32 - advertise 5G

    100M and 10M are only supported on certain adapters.

To add advertisement of 2.5G and 5G on ix0:

sysctl dev.ix.0.advertise_speed=55

Since 7 + 16 + 32 = 55.




Or has the driver been updated since?
AhnHEL (Angel)

Hi let me try this. The driver hasn't been updated as far as I know.

I can confirm this also works.
Thanks for the suggestion!

Quote from: AhnHEL on December 09, 2024, 11:54:15 PM
I was using the X550-t2 last year but have since changed hardware.  Wasnt this issue resolved with this sysctl added to Tunables?

sysctl dev.ix.0.advertise_speed=55



Quote
sysctl dev.ix.X.advertise_speed=N

Where X is the interface number (e.g. for ix0, X=0 in the command above) and N is the sum of the advertised speeds, works.

In hex and decimal:

Control advertised link speed using these flags:
    0x1 - 1 - advertise 100M
    0x2 - 2 - advertise 1G
    0x4 - 4 - advertise 10G
    0x8 - 8 - advertise 10M

    0x10 - 16 - advertise 2.5G
    0x20 - 32 - advertise 5G

    100M and 10M are only supported on certain adapters.

To add advertisement of 2.5G and 5G on ix0:

sysctl dev.ix.0.advertise_speed=55

Since 7 + 16 + 32 = 55.




Or has the driver been updated since?