We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e6b177d + 441c242 commit adf31f6Copy full SHA for adf31f6
nixos/tests/networking/networkd-and-scripted.nix
@@ -238,6 +238,18 @@ let
238
}
239
];
240
};
241
+
242
+ # virtio-net reports its speed and duplex as "unknown" by default,
243
+ # which confuses the 802.3ad logic. However, you can just tell it
244
+ # to pretend to have any link speed with ethtool, so do that.
245
+ systemd.services.fake-link-settings = {
246
+ path = [ pkgs.ethtool ];
247
+ script = ''
248
+ ethtool -s enp1s0 speed 1000 duplex full
249
+ ethtool -s enp2s0 speed 1000 duplex full
250
+ '';
251
+ wantedBy = [ "network.target" ];
252
+ };
253
254
in
255
{
0 commit comments