Jump to content

network-rules.cfg is missing


Recommended Posts

Hi guys, 

 

About 2 years ago I installed a 2.5gbe NIC while probably on Unraid version 6.10.3 and everything was working fine. I believe I set it as eth0 instead of the onboard 1Gbe. I was getting 1.6 Gbps.

Recently I noticed that I'm always getting less than 1Gb. 

On the dashboard it is showing this:

 

 

bond0 fault-tolerance (active-backup), mtu 1500

 

eth0 interface down

eth1 1000 Mbps, full duplex, mtu 1500

 

lo loopback

 

All this time the cable was plugged in the 2.5 gbe port. When plugged in 1 Gbe port it works too.

 

I wanted to change network rules to prioritize 2.5 Gbe, but this section is missint in Network Settings tab.

I know that the suggested solution is to delete network.cfg and network-rules.cfg and reboot the server.

I know that unraid should create the network-rules.cfg if there 2 or more ethernet cards in the system.

For some reason I have only these 2 files (but not network-rules.cfg):

network.cfg:

# Generated settings:
IFNAME[0]="br0"
BONDNAME[0]="bond0"
BONDING_MIIMON[0]="100"
BRNAME[0]="br0"
BRSTP[0]="no"
BRFD[0]="0"
BONDING_MODE[0]="1"
BONDNICS[0]="eth0 eth1"
BRNICS[0]="bond0"
PROTOCOL[0]="ipv4"
USE_DHCP[0]="no"
IPADDR[0]="192.168.2.10"
NETMASK[0]="255.XXX.XXX.0"
GATEWAY[0]="192.168.2.1"
DNS_SERVER1="192.168.2.1"
DNS_SERVER2="8.XXX.XXX.8"
USE_DHCP6[0]="yes"
DHCP6_KEEPRESOLV="no"
SYSNICS="1"

 

network-extra.cfg:

include_interfaces="tailscale1"
exclude_interfaces=""

 

Nevertheles, I deleted network.cfg and rebooted a few times and it didn't help. network-rules.cfg not being created.

Yesterday I updated the Unraid to 6.12.6, but it didn't solve the issue.

Later I updated both drivers to suggested drivers from Apps, rebooted a few times too, but nothing changed.

 

I'll appreciate a lot any help with this.

Attached the diagnostics file.

 

Thanks a lot and happy NY 

unraid-diagnostics-20240103-1228.zip

Screenshot_20240103_163625_Chrome.jpg

Screenshot_20240103_163740_Chrome.jpg

Edited by sdmellerd
mistake
Link to comment

check with "ethtool eth1" if 2.5 speed is advertised by the card e.g:

root@F:~# ethtool eth0
Settings for eth0:
        Supported ports: [ FIBRE ]
        Supported link modes:   1000baseX/Full
                                10000baseCR/Full
                                10000baseSR/Full
        Supported pause frame use: Symmetric Receive-only
        Supports auto-negotiation: No
        Supported FEC modes: Not reported
        Advertised link modes:  1000baseX/Full
                                10000baseCR/Full
                                10000baseSR/Full
        Advertised pause frame use: Symmetric
        Advertised auto-negotiation: No
        Advertised FEC modes: Not reported
        Speed: 10000Mb/s
        Duplex: Full
        Auto-negotiation: off
        Port: FIBRE
        PHYAD: 0
        Transceiver: internal
        Supports Wake-on: d
        Wake-on: d
        Current message level: 0x00000014 (20)
                               link ifdown
        Link detected: yes

This card only runs at either 1000 or 10000 rate. If your list does not include 2500 you know why you do not get it (anymore?)

There are "supported link modes" and "advertised link modes", both must contain the desired speed (and the switch on the other side must accept and use them too).

Note that 2500 is not a "legal" speed, there is no need for a device to accept and use it.

 

If not in the list, you can try to force your switch to use 10G speed but make sure flow control on this port is turned on too. (And hope that the unraid driver is clever enough to use it).

 

And yes, it may have changed something in the driver recently. Older drivers for 2.5 cards sometimes were brute and cheating. They announced themselfs as 10G cards and inserted stop packets 3/4 of the time. This way they have fooled the switches and pretended to be somebody they are not. This led to a lot of misunderstandings and traffic jams.

Edited by MAM59
Link to comment
Posted (edited)
15 minutes ago, MAM59 said:

check with "ethtool eth1" if 2.5 speed is advertised by the card e.g:

root@F:~# ethtool eth0
Settings for eth0:
        Supported ports: [ FIBRE ]
        Supported link modes:   1000baseX/Full
                                10000baseCR/Full
                                10000baseSR/Full
        Supported pause frame use: Symmetric Receive-only
        Supports auto-negotiation: No
        Supported FEC modes: Not reported
        Advertised link modes:  1000baseX/Full
                                10000baseCR/Full
                                10000baseSR/Full
        Advertised pause frame use: Symmetric
        Advertised auto-negotiation: No
        Advertised FEC modes: Not reported
        Speed: 10000Mb/s
        Duplex: Full
        Auto-negotiation: off
        Port: FIBRE
        PHYAD: 0
        Transceiver: internal
        Supports Wake-on: d
        Wake-on: d
        Current message level: 0x00000014 (20)
                               link ifdown
        Link detected: yes

This card only runs at either 1000 or 10000 rate. If your list does not include 2500 you know why you do not get it (anymore?)

There are "supported link modes" and "advertised link modes", both must contain the desired speed (and the switch on the other side must accept and use them too).

Note that 2500 is not a "legal" speed, there is no need for a device to accept and use it.

 

If not in the list, you can try to force your switch to use 10G speed but make sure flow control on this port is turned on too. (And hope that the unraid driver is clever enough to use it).

 

And yes, it may have changed something in the driver recently. Older drivers for 2.5 cards sometimes were brute and cheating. They announced themselfs as 10G cards and inserted stop packets 3/4 of the time. This way they have fooled the switches and pretended to be somebody they are not. This led to a lot of misunderstandings and traffic jams.

Thank you for prompt response!

 

So for eth0 it shows 2500 supported, and for eth1 - no.

Please see attached pictures.

Thank you

 

 

 

Screenshot_20240104_012631_Termius.jpg

Edited by sdmellerd
Link to comment

Hmmm. New development:

 

I was disconnecting and reconnecting the cable from one port to another for a few times while rebooting the server and suddenly its started showing 2500 on the dashboard (previously it was showing 1000 only).

I ran speed test and it's surpassing 1000 now. So all good speedwise.

 

But it still not creating network-rules.cfg file upon reboot. Therefore I won't be able to route connections in the future if desired.

 

I guess, that anyways I should be happy that I gained full speed back after all.

It is strange though.

 

Thanks a lot MAM59 for your help!

 

 

Screenshot_20240104_014438_Chrome.jpg

Link to comment
7 minutes ago, sdmellerd said:

But it still not creating network-rules.cfg file upon reboot. Therefore I won't be able to route connections in the future if desired.

I'm not sure if it is autocreated at all. It just kicks in if you manually assign cards on the network tab. But without it, every boot is a risk because cards maybe sorted differntly after a bios update or so. So it is better to pin them down.

There should be something like this in the gui:

grafik.thumb.png.49d9990f7546dff3209bf05feb0f688d.png

 

Also, you have configured bonding on both cards, but you will never use both at the same time. I would recommend to assign 2.5 card as eth0 and disable bonding on both cards.

You may even deactivate the 1G card totally (either in Bios or here)

 

Link to comment
Posted (edited)

Since it's not creating network-rules.cfg for some reason, I cannot pin the cards down (this menu is absent).

 

In the end I just disabled the on-board 1gbe card in the BIOS...

It's a bit sloppy resolution and I would prefer to be able to pin them in unraid, but at least it won't switch randomly to the  slower card in the future again.

 

Danke schon!

Screenshot_20240104_141657_Chrome.jpg

Edited by sdmellerd
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...