[systemd-devel] Trouble with speed/mode in .link files

Lennart Poettering lennart at poettering.net
Wed Jan 24 10:29:48 UTC 2018


On Di, 02.01.18 13:32, Bruce A. Johnson (bjohnson at blueridgenetworks.com) wrote:

> I've been trying for a few days to figure out how to set Ethernet speed
> and mode using a .link file, and I can't figure out what I'm doing
> wrong.  I've got a renamed interface ("eth2" -> "en01"), and ethtool
> allows me to change it with no problem, but I get "Invalid argument"
> messages from link_config, and the device ends up with the speed of the
> connected switch and half-duplex.
> 
> Here's my config file:
> > # cat /etc/systemd/network/80-en01.link
> > [Match]
> > MACAddress=00:0d:b9:48:36:4a
> >
> > [Link]
> > AutoNegotiation=no
> > Duplex=full
> > BitsPerSecond=10M
> >
> 
> Running udevadm to test the config gives me this:
> > # udevadm test-builtin net_setup_link /sys/class/net/en01
> > calling: test-builtin
> > === trie on-disk ===
> > tool version:          234
> > file size:         8715156 bytes
> > header size             80 bytes
> > strings            1900828 bytes
> > nodes              6814248 bytes
> > Found container virtualization none.
> > timestamp of '/etc/systemd/network' changed
> > timestamp of '/run/systemd/network' changed
> > ID_NET_DRIVER=igb
> > link_config: Cannot set device settings for en01 : Invalid argument
> > Could not set speed or duplex of en01 to 10 Mbps (full): Invalid argument
> > ID_NET_LINK_FILE=/etc/systemd/network/80-en01.link
> 
> I'm running systemd version 234, built from source using OpenEmbedded.

There were some fixes in the area recently, consider upgrading to
something newer, please.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list