Author Topic: ip route replace $(ip route list dev eth0...  (Read 94 times)

0 Members and 1 Guest are viewing this topic.

Offline
**
ip route replace $(ip route list dev eth0...
« on: June 13, 2024, 05:00:30 PM »
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.

Offline
****
Re: ip route replace $(ip route list dev eth0...
« Reply #1 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?

Offline
**
Re: ip route replace $(ip route list dev eth0...
« Reply #2 on: June 14, 2024, 06:36:30 AM »
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...