ip route replace $(ip route list dev eth0...

Started by Wonder, June 13, 2024, 05:00:30 PM

Previous topic - Next topic

Wonder

I put it in this section, but I have no idea where to put it in the forum...

I recently installed cwp pro on a new VPS for me, Almalinux 8.

I migrated from my old VPS, everything is fine, but...

Every time I restart or after a few days I receive an email from the server:

Subject: Cron <root@server2> ip route replace $(ip route list dev eth0 scope link | head -n1 | awk '{ print $1 }') via $(ip route list dev eth0 | awk '/default/{ print $3 }') dev eth0

Content:
Error: any valid address is expected rather than "dev".

The server works well, I have not detected any problems but... it has me surprised, and with the "alarm set".

I've searched the internet but I haven't been able to see what's going on...

Does anything occur to you?

Thank you and greetings.

overseer

eth0 is your primary interface and you have your IP addressing statically set via nmtui?
Have you put in a static route?

Wonder

Quote from: overseer on June 13, 2024, 08:14:15 PM
eth0 is your primary interface and you have your IP addressing statically set via nmtui?
Have you put in a static route?
No, I have not configured anything about the network.
I contract the VPS and I don't configure anything about the network, that's why I'm surprised that this appears... and I don't know what to look at or what to do...