Centos 6.5 - Static IP Adresses

Hi Everyone,

I installed CentOS 6.5 on VMware With a static IP Addresses but I’m not able to use Internet (No Internet Access).

Here is All my configuration files :

/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0" TYPE="Ethernet" UUID=e70100dd-718f-4c13-b8b7-5a0a29cae7ed ONBOOT="yes" NM_CONTROLLED="yes" BOOTPROTO=static IPADDR=192.168.1.40 PREFIX=24 GATEWAY=192.168.1.1 DNS1=8.8.8.8 DEFROUTE=yes IPV4_FAILURE_FATAL=yes IPV6INIT=no NAME="System eth0" NETMASK=255.255.255.0 USERCTL=no HWADDR=00:0C:29:CC:9B:5D DNS2=8.8.4.4 LAST_CONNECT=1456944115

/etc/sysconfig/network
NETWORKING=yes HOSTNAME=snh.opentuto.com NTPSERVERARGS=iburst

/etc/resolv.conf
# Generated by NetworkManager search opentuto.com nameserver 8.8.8.8 nameserver 8.8.4.4

1 Like

Is that the correct IP address for the device your internet connection is attached to?

The Addresse obtained by my computer is 192.168.1.7 (I’m connected to a wifi, so i get theIP Adresse dynamically)

That wasn’t what I asked.

Ooh sorry, Yeah it’s the IP Adresses of my router

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.