Change the network file, and set the gateway
[oracle@alexdb ~]$ cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=alexdb.oracle.com
GATEWAY=192.168.x.x
Change your interface:
/etc/sysconfig/network-scripts/ifcfg-eth0
Check the values in red
DEVICE=eth0
NM_CONTROLLED=yes
HWADDR=00:21:F6:3F:3A:69
TYPE=Ethernet
UUID=ea5fd29b-4752-4ef7-890f-9611c18eb4c6
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"
ONBOOT=yes
PEERROUTES=yes
IPADDR=192.168.128.63
GATEWAY=192.168.128.1
NETMASK=255.255.255.0
BOOTPROTO=static
USERCTL=no
Change the hosts file /etc/hosts
issue the following command:
service network restart
Your mac address must match HWADDR=00:21:F6:3F:3A:69 to your interface address
ifup eth0 if your interface is not available.
Cheers!