Network interfaces can have different names on Linux depending on their type (wired Ethernet, Wi-Fi, PPP, SLIP, etc.), PCI slot, initialization order, etc. For example if a computer has a single Ethernet card, its name would be eth0*.
In your case, there's a virtual private server without an Ethernet network card in it, not even an emulated one. Nevertheless you have a network card named venet0. You can rename it with:
ip link set venet0 name eth0
If the interface is in use the command will fail, so you might need to bring it down (
ip link set venet0 down), but this will probably disconnect you from the server.
If you're willing to take the risk, you could run in the background a script that brings the interface down, renames it, then brings it up. First get the settings for venet0 and the routing table:
[root@server ~]# ip addr show dev venet0
2: venet0: <BROADCAST,POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
inet 127.0.0.1/32 scope host venet0
inet X.Y.Z.T/32 brd X.Y.Z.T scope global venet0:0
[root@server ~]# ip ro
192.0.2.0/24 dev venet0 scope host
169.254.0.0/16 dev venet0 scope link metric 1002
default dev venet0 scope link
Then create a script (
rename-to-eth0.sh) similar to this:
ip link set venet0 down # Bring interface down
ip link set venet0 name eth0 # Rename interface
ip link set eth0 up # Bring interface up
# Restore interface settings. Adapt accordingly!!!
ip addr add 127.0.0.1/32 scope host dev eth0
ip addr add X.Y.Z.T/32 brd X.Y.Z.T scope global label eth0:0 dev eth0
# Restore routing table. Adapt accordingly!!!
ip ro add 192.0.2.0/24 dev venet0 scope host
ip ro add 169.254.0.0/16 dev venet0 scope link metric 1002
ip ro add default dev eth0
Now run the script with nohup i.e.
nohup ./rename-to-eth0.sh or inside screen, tmux, etc. If it fails, you'll probably have to restart the server.
* Things will change as the "Predictable Network Interface Names" proposal is implemented, although this does not apply to CentOS6 or earlier. Take note that according to this proposal an integrated Ethernet card might be named em1.