Eu tenho centos 6.6 servidor vps.
Quando eu uso o comando: yum update
get error:
Error: Cannot find a valid baseurl for repo: base
quando eu verificar o ping e usar o comando: ping -c4 google.com
get error:
ping: unknown host google.com
ou use o comando ping -c4 62.212.252.84
get:
4 packets transmitted, 0 received, 100% packet loss, time 12999ms
e
/ etc / sysconfig / network-scripts / ifcfg-eth0 é:
DEVICE=eth0
BOOTPROTO=static
ONBOOT=yes
IPADDR=***.***.***.72
NETMASK=255.255.255.255
/ etc / sysconfig / network é:
NETWORKING=yes
NETWORKING_IPV6=yes
HOSTNAME=mohsenvps
GATEWAY=37.59.19.254
IPV6_AUTOCONF=no
altere também NETWORKING_IPV6 = yes para no mas obtenha o mesmo resultado.
e /etc/resolv.conf
é
nameserver 8.8.8.8
nameserver 8.8.4.4
** Editar: **
e iptables:
target prot opt source destination
ACCEPT icmp -- 0.0.0.0/0 202.54.10.20 icmptype 0 state RELATED,ESTABLISHED
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0 icmptype 0
ACCEPT icmp -- 202.54.10.20 0.0.0.0/0 icmptype 8 state NEW,RELATED,ESTABLISHED