At some point you might face the network error even if the VPS is running. OpenVZ VPS may be up and running, but network service will be down resulting downtime for websites hosted in it. If you try to restart the network, you will get the below error:
[root]# /etc/init.d/network restart
Shutting down interface venet0: [ OK ]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface venet0: SIOCADDRT: Network is unreachable
SIOCADDRT: Network is unreachable
To fix this, SSH into the main node server and enter into the VPS and then execute the below command:
/etc/sysconfig/network-scripts/ifup-routes venet0:0
Now try pinging from VPS
[root]# /etc/init.d/network restart
Shutting down interface venet0: [ OK ]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface venet0: SIOCADDRT: Network is unreachable
SIOCADDRT: Network is unreachable
To fix this, SSH into the main node server and enter into the VPS and then execute the below command:
/etc/sysconfig/network-scripts/ifup-routes venet0:0
Now try pinging from VPS
No comments:
Post a Comment