top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Automatically forcing port speed at system boot

+1 vote
269 views

I want to execute

ethtool -s wan0 advertise 00c

at system boot, before networking comes up. The only thing I can come up with is to throw a systemd service, WantedBy=basic.target.

But wondering if there isn't anything already that runs at system boot, whose purpose is something like that. Anyone know of a better way? rc-local.service runs after network.target, that's too late, here.

posted Aug 17, 2013 by Dewang Chaudhary

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

Assuming you are using ifcfg-* files, there is an option called ETHTOOL_OPTS that allows you to set various ethtool settings when the network gets brought up.

if you need multiple settings you can do it like this "-s ${DEVICE} advertise 00c ; "

answer Aug 17, 2013 by Jagan Mishra
Similar Questions
+2 votes

I am used to traditional update-rc.d et all.

Now I wonder how to add a a script that used to called by init.d (with start/sop ..) to the new "service start xx" regime.

All the tutorials I found talk about how to use update-rc.d..

+2 votes

Can someone share the command if its there?

+1 vote

I want to install ubuntu 17.2.
But after inserting my bootable pendrive I get this message on my screen.
Setup Error: end kernel panic - not syncing: vfs: unable to mount root fs on unknown block(2,0).
Please anyone problem?

+3 votes

As far as I know boot loader is the one who loads OS from ROM to RAM, then why Boot Loader is different as per OS.
And what is boot manager? Is Boot Manager is different as per OS?

...