Eu tenho o seguinte problema:
Eu tenho uma VM com o CentOS instalado. Dessa máquina, não consigo me conectar à Internet, por isso não posso atualizar nada instalado nela.
A configuração da VM é:
Em Configurações - > Rede
Em Arquivo- > Preferências- > Rede, em Redes somente de host, vbonenet0 :
Quando estou na máquina:
ifconfig -a
eth0 Link encap:Ethernet HWaddr 08:00:27:55:45:B3
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe55:45b3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7 errors:0 dropped:0 overruns:0 frame:0
TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1699 (1.6 KiB) TX bytes:1414 (1.3 KiB)
eth1 Link encap:Ethernet HWaddr 08:00:27:D7:3D:E9
inet addr:192.168.101.129 Bcast:192.168.101.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fed7:3de9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:477 errors:0 dropped:0 overruns:0 frame:0
TX packets:452 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:89736 (87.6 KiB) TX bytes:183141 (178.8 KiB)
ping 192.168.101.129
PING 192.168.101.129 (192.168.101.129) 56(84) bytes of data.
64 bytes from 192.168.101.129: icmp_seq=1 ttl=64 time=0.013 ms
64 bytes from 192.168.101.129: icmp_seq=2 ttl=64 time=0.027 ms
64 bytes from 192.168.101.129: icmp_seq=3 ttl=64 time=0.031 ms
64 bytes from 192.168.101.129: icmp_seq=4 ttl=64 time=0.048 ms
64 bytes from 192.168.101.129: icmp_seq=5 ttl=64 time=0.062 ms
ping www.google.com
PING www.google.com (216.58.205.164) 56(84) bytes of data.
From 192.168.101.129 icmp_seq=2 Destination Host Unreachable
From 192.168.101.129 icmp_seq=3 Destination Host Unreachable
From 192.168.101.129 icmp_seq=4 Destination Host Unreachable
Em / etc / sysconfig / network-scripts / , o arquivo ifcfg-eh0 :
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=DHCP
DNS1=8.8.8.8
DNS2=8.8.4.4
o arquivo ifcfg-eh1 :
DEVICE=eth1
ONBOOT=yes
TYPE=Ethernet
BOOTPROTO=static
IPADDR=192.168.101.129
NETMASK=255.255.255.0
NETWORK=192.168.101.0
BROADCAST=192.168.101.255
NM_CONTROLLED=no
DNS1=8.8.8.8
DNS2=8.8.4.4
route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.101.0 * 255.255.255.0 U 0 0 0 eth0
10.0.3.0 * 255.255.255.0 U 0 0 0 eth1
192.168.56.0 * 255.255.255.0 U 0 0 0 eth0
link-local * 255.255.0.0 U 1002 0 0 eth0
link-local * 255.255.0.0 U 1003 0 0 eth1
default 192.168.101.2 0.0.0.0 UG 0 0 0 eth0
Alguém pode me ajudar? Obrigado pelo apoio.
UPDATE
O gateway padrão é:
ip r | grep default
default via 192.168.101.2 dev eth1
Tags networking virtualbox ipv4 centos