I have been trying for months on how to change DHCP to STATIC ip successfully on Centos VM
The thing is i am not sure if it is because i am using a virtual machine or if the host bridge network is affecting things but when i change DHCP to STATIC following all i should (i have searched everywhere on the net even video too http://www.youtube.com/watch?v=V3ymaozVntU and still no solution) i do get STATIC ip but i can only ping localhost and the static ip address nothing more..i cannot ping gateway or outside address
what is going on? what am i doing wrong?
I have been trying this thing for like 5 months now and have never gotten this thing.
This is the config:
$ cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
HWADDR=00:30:48:56:A6:2E
IPADDR=192.168.1.25
GATEWAY=192.168.1.1
NETMASK=255.255.255.0
ONBOOT=yes
$ cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=vm2.system.com
GATEWAY=192.168.1.1
$ cat /etc/resolv.conf
search system.com
nameserver 192.168.1.1
$ cat /etc/hosts
127.0.0.1 vm2.system.com localhost
::1 localhost
192.168.1.25 vm2.system.com system.com
$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eth0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0