I have access to the local network, but no to the internet on a CentOS 7 virtual machine.
My configuration is as follows:
/etc/sysconfig/network-scripts/ifcfg-ens33
BOOTPROTO=static
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME=ens33
GATEWAY=10.25.0.254
TYPE=Ethernet
DEVICE=ens33
DNS2=x.x.x.x
NETMASK=255.255.255.0
IPADDR=10.25.0.101
DNS1=x.x.x.x
ONBOOT=yes
PREFIX=24
UUID=c96bc909-188e-ec64-3a96-6a90982b08ad
PROXY_METHOD=none
BROWSER_ONLY=no
ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:50:56:a8:d6:b1 brd ff:ff:ff:ff:ff:ff
inet 10.25.0.101/24 brd 10.25.0.255 scope global noprefixroute ens33
valid_lft forever preferred_lft forever
inet6 fe80::250:56ff:fea8:d6b1/64 scope link
valid_lft forever preferred_lft forever
Thanks in advance
Not able to access internet on CentOS 7
Re: Not able to access internet on CentOS 7
Can you ping external things - for example, google dns on 8.8.8.8 is a good target. If that doesn't work then your default route is set up wrongly - listed as GATEWAY=10.25.0.254 there or some firewall is blocking you. If you can ping 8.8.8.8 then does it work if you edit /etc/resolv.conf and add a new line in front of all the other "nameserver" lines that says
nameserver 8.8.8.8
nameserver 8.8.8.8
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke