• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Problem with Interface

Azurel

Silver Pleskian
Hi,

I have installed MRTG and my traffic statistic für incoming traffic looks wrong.

In Plesk -> Server -> IP Addresses it says (for ipv4 and ipv6) as Interface "eth0".

MRTG says: "WARNING: Could not match host:'public@localhost' ref:'Name' key:'eth0'"
its only work with eth2

System says:
# netstat -i
Kernel Interface table
Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg
eth2 1500 0 2456830626 0 0 0 1892261100 0 0 0 BMRU
lo 16436 0 2109238015 0 0 0 2109238015 0 0 0 LRU


What is "eth0" in Plesk? Why my incoming traffic is wrong? I use this cfg for MRTG

Target[traffic]: #eth2:public@localhost
SetEnv[traffic]: MRTG_INT_IP="XX.XX.XX.XX" MRTG_INT_DESCR="eth2"
MaxBytes[traffic]: 125000000
Title[traffic]: Traffic Analysis
PageTop[traffic]: <h1>Traffic Analysis</h1>
<div id="sysdetails">
<table>
<tr>
<td>ifType:</td>
<td>ethernetCsmacd (6)</td>
</tr>
<tr>
<td>ifName:</td>
<td>eth2</td>
</tr>
<tr>
<td>Max Speed:</td>
<td>125.0 MBytes/s</td>
</tr>
</table>
</div>
Options[traffic]: growright,noinfo

Can anybody help me here?

My incoming traffic is like a line (very small differences).
My outgoing traffic has nice waves like connection stats.
 
Hello,

You can check your all interface card through "ifconfig" command on your server through SSH
 
Azurel,

it seems, that your network cards are wrong configurated.
What do you get, if you click on "reread IP data"?

Kind regards
Henning
 
Hi Azurel,

It could be based on the installation-package of HostEurope. You can have a look at:
/etc/sysconfig/network-scripts/

Are there any scripts containing eth0?
What is inside of the folder?

You could rename the interface, but that's not the perfect way ...

Kind regards
Henning
 
I get this mail now for first time:

The Web Proxy Server (Nginx) service on host rsXXXXX.rs.hosteurope.de is down.
The problem was discovered on Nov 26, 2013 01:29 AM.

But in shell
# service nginx status
nginx (pid 876) is running...

Now I get email with
The Web Proxy Server (Nginx) service on host rsXXXXX.rs.hosteurope.de has been started on Nov 26, 2013 01:34 AM.

Is this a problem with the new setting "eth2"?

-----

/etc/sysconfig/network-scripts/

-rw-r--r-- 1 root root 256 May 13 2013 ifcfg-eth0
-rw-r--r-- 1 root root 256 May 21 2013 ifcfg-eth1
-rw-r--r-- 1 root root 256 Nov 21 21:24 ifcfg-eth2

-rw-r--r-- 1 root root 254 Jan 9 2013 ifcfg-lo
lrwxrwxrwx 1 root root 20 Aug 29 23:18 ifdown -> ../../../sbin/ifdown
-rwxr-xr-x 1 root root 627 Jan 9 2013 ifdown-bnep
-rwxr-xr-x 1 root root 5404 Aug 5 15:21 ifdown-eth
-rwxr-xr-x 1 root root 781 Jan 9 2013 ifdown-ippp
-rwxr-xr-x 1 root root 4168 Jan 9 2013 ifdown-ipv6
lrwxrwxrwx 1 root root 11 Aug 29 23:18 ifdown-isdn -> ifdown-ippp
-rwxr-xr-x 1 root root 1481 Jan 9 2013 ifdown-post
-rwxr-xr-x 1 root root 1064 Jan 9 2013 ifdown-ppp
-rwxr-xr-x 1 root root 835 Jan 9 2013 ifdown-routes
-rwxr-xr-x 1 root root 1370 Jan 9 2013 ifdown-sit
-rwxr-xr-x 1 root root 1434 Jan 9 2013 ifdown-tunnel
lrwxrwxrwx 1 root root 18 Aug 29 23:18 ifup -> ../../../sbin/ifup
-rwxr-xr-x 1 root root 12365 Jan 9 2013 ifup-aliases
-rwxr-xr-x 1 root root 859 Jan 9 2013 ifup-bnep
-rwxr-xr-x 1 root root 10164 Aug 5 15:21 ifup-eth
-rwxr-xr-x 1 root root 11971 Jan 9 2013 ifup-ippp
-rwxr-xr-x 1 root root 10401 Jan 9 2013 ifup-ipv6
lrwxrwxrwx 1 root root 9 Aug 29 23:18 ifup-isdn -> ifup-ippp
-rwxr-xr-x 1 root root 727 Jan 9 2013 ifup-plip
-rwxr-xr-x 1 root root 954 Jan 9 2013 ifup-plusb
-rwxr-xr-x 1 root root 2364 Jan 9 2013 ifup-post
-rwxr-xr-x 1 root root 4154 Jan 9 2013 ifup-ppp
-rwxr-xr-x 1 root root 1925 Jan 9 2013 ifup-routes
-rwxr-xr-x 1 root root 3499 Jan 9 2013 ifup-sit
-rwxr-xr-x 1 root root 2488 Jan 9 2013 ifup-tunnel
-rwxr-xr-x 1 root root 3770 Jan 9 2013 ifup-wireless
-rwxr-xr-x 1 root root 4623 Jan 9 2013 init.ipv6-global
-rwxr-xr-x 1 root root 1125 Jan 9 2013 net.hotplug
-rw-r--r-- 1 root root 13087 Aug 5 15:21 network-functions
-rw-r--r-- 1 root root 29853 Jan 9 2013 network-functions-ipv6
-rw-r--r-- 1 root root 58 May 13 2013 route-eth0
-rw-r--r-- 1 root root 58 May 21 2013 route-eth1
-rw-r--r-- 1 root root 58 Nov 21 21:24 route-eth2
 
Could you please provide the ifcfg-eth0? It looks very curious.

The mail you've got could be normal. The nginx server could have been restarted due configuration changes i.e.!
So don't worry. Our servers are being backed up at 4 am (GMT+1) and we have set, that the websites aren't allowed to be reachable so we do get at this time the same mails (as information).

Kind regards
Henning

FYI: I've doublechecked the default configuration from hosteurope on a customers site and I can confirm, that the standard installation normally uses eth0.
 
For security reason I have masked some numbers. Thanks for your help. ;)

ifcfg-eth0 said:
DEVICE="eth0"
ONBOOT="yes"
BOOTPROTO="none"
HWADDR="00:1c:XX:7f:31:XX"
IPADDR="XX.XX.XX.XX"
NETMASK="255.255.255.255"
DHCPV6C="no"
IPV6INIT="yes"
IPV6ADDR="2A01:XXX:67:1000:XXXX:518C:0:1/128"
GATEWAY="169.255.30.1"
IPV6_DEFAULTGW="FE80:0:0:0:0:FFFF:1:1"
ifcfg-eth1 said:
DEVICE="eth1"
ONBOOT="yes"
BOOTPROTO="none"
HWADDR="00:1c:XX:40:47:XX"
IPADDR="XX.XX.XX.XX"
NETMASK="255.255.255.255"
DHCPV6C="no"
IPV6INIT="yes"
IPV6ADDR="2A01:XXX:67:1000:XXXX:518C:0:1/128"
GATEWAY="169.255.30.1"
IPV6_DEFAULTGW="FE80:0:0:0:0:FFFF:1:1"
ifcfg-eth2 said:
DEVICE="eth2"
ONBOOT="yes"
BOOTPROTO="none"
HWADDR="00:1c:XX:2f:f4:XX"
IPADDR="XX.XX.XX.XX"
NETMASK="255.255.255.255"
DHCPV6C="no"
IPV6INIT="yes"
IPV6ADDR="2A01:XXX:67:1000:XXXX:518C:0:1/128"
GATEWAY="169.255.30.1"
IPV6_DEFAULTGW="FE80:0:0:0:0:FFFF:1:1"
 
Hi Azurel,

is the IP address of all three eth[0-2] the same? because of the same Gateway.
Can you fire up the eth0? The command should be "ifconfig eth0 up".

Do you get any message or error?

Kind regards
Henning
 
Hi Azurel,

is it a real server or an VM?

Further more, please post the following file:

/etc/udev/rules.d/70-persistent-net.rules

Kind regards
Henning
 
"Root Server L" :)

# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.

# PCI device 0x10ec:0x8029 (prl_eth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1c:XX:7f:31:XX", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x10ec:0x8029 (prl_eth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1c:XX:40:47:XX", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

# PCI device 0x10ec:0x8029 (prl_eth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1c:XX:2f:f4:XX", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"
 
Hi Azurel,

in this file, you could swap eth0 and eth2 to get it back working.
You should open a support ticket at Hosteurope as it looks like a hardware change.

But if you change the name and when you do a reboot, all interface names should be correct again, so all your software should work.
Please note, that you should "reread IP" again ;-)
 
Support answer:
Wir haben die fehlerhaften Interfaces für Sie entfernt. Im Rahmen dieser Arbeiten war es notwendig Ihren Server neu zu starten.

Now /etc/udev/rules.d/70-persistent-net.rules have only one rule for "eth0".

/etc/sysconfig/network-scripts/ looks now:
# ls -l
total 216
-rw-r--r-- 1 root root 256 Nov 27 14:41 ifcfg-eth0
-rw-r--r-- 1 root root 254 Jan 9 2013 ifcfg-lo
lrwxrwxrwx 1 root root 20 Aug 29 23:18 ifdown -> ../../../sbin/ifdown
-rwxr-xr-x 1 root root 627 Jan 9 2013 ifdown-bnep
-rwxr-xr-x 1 root root 5404 Aug 5 15:21 ifdown-eth
-rwxr-xr-x 1 root root 781 Jan 9 2013 ifdown-ippp
-rwxr-xr-x 1 root root 4168 Jan 9 2013 ifdown-ipv6
lrwxrwxrwx 1 root root 11 Aug 29 23:18 ifdown-isdn -> ifdown-ippp
-rwxr-xr-x 1 root root 1481 Jan 9 2013 ifdown-post
-rwxr-xr-x 1 root root 1064 Jan 9 2013 ifdown-ppp
-rwxr-xr-x 1 root root 835 Jan 9 2013 ifdown-routes
-rwxr-xr-x 1 root root 1370 Jan 9 2013 ifdown-sit
-rwxr-xr-x 1 root root 1434 Jan 9 2013 ifdown-tunnel
lrwxrwxrwx 1 root root 18 Aug 29 23:18 ifup -> ../../../sbin/ifup
-rwxr-xr-x 1 root root 12365 Jan 9 2013 ifup-aliases
-rwxr-xr-x 1 root root 859 Jan 9 2013 ifup-bnep
-rwxr-xr-x 1 root root 10164 Aug 5 15:21 ifup-eth
-rwxr-xr-x 1 root root 11971 Jan 9 2013 ifup-ippp
-rwxr-xr-x 1 root root 10401 Jan 9 2013 ifup-ipv6
lrwxrwxrwx 1 root root 9 Aug 29 23:18 ifup-isdn -> ifup-ippp
-rwxr-xr-x 1 root root 727 Jan 9 2013 ifup-plip
-rwxr-xr-x 1 root root 954 Jan 9 2013 ifup-plusb
-rwxr-xr-x 1 root root 2364 Jan 9 2013 ifup-post
-rwxr-xr-x 1 root root 4154 Jan 9 2013 ifup-ppp
-rwxr-xr-x 1 root root 1925 Jan 9 2013 ifup-routes
-rwxr-xr-x 1 root root 3499 Jan 9 2013 ifup-sit
-rwxr-xr-x 1 root root 2488 Jan 9 2013 ifup-tunnel
-rwxr-xr-x 1 root root 3770 Jan 9 2013 ifup-wireless
-rwxr-xr-x 1 root root 4623 Jan 9 2013 init.ipv6-global
-rwxr-xr-x 1 root root 1125 Jan 9 2013 net.hotplug
-rw-r--r-- 1 root root 13087 Aug 5 15:21 network-functions
-rw-r--r-- 1 root root 29853 Jan 9 2013 network-functions-ipv6
-rw-r--r-- 1 root root 58 Nov 27 14:41 route-eth0
-rw-r--r-- 1 root root 58 May 21 2013 route-eth1
-rw-r--r-- 1 root root 58 Nov 27 14:36 route-eth2

With click on "Reread IP" (plesk panel) its now "eth0".
 
Here my start question again, because changes in interface nothing change with my problem.

I have installed MRTG and my traffic statistic für incoming traffic looks wrong.

Here a picture of traffic statistics:
http://img3.picload.org/image/oprpcpr/traffic-day.png

Why I have constant 300kb incoming traffic? Thats was since beginning of new server and ~0 incoming connections.

Can anybody help me here?
 
Last edited:
Back
Top