Новичок в Linux, не могу подключиться к Интернету в VMWare

2026
Chad D

Я установил CentOS сегодня и сделал минимальную установку. Я все настроил и установил Gnome, но я просто не могу подключиться к Интернету. Я могу проверить свой адрес обратной связи, и все выглядит хорошо для меня, но я снова новичок. Может ли кто-нибудь взглянуть на это?

# ifconfig eno16777736: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.206.128 netmask 255.255.255.0 broadcast 192.168.206.255 inet6 fe80::20c:29ff:fe81:3f69 prefixlen 64 scopeid 0x20<link> ether 00:0c:29:81:3f:69 txqueuelen 1000 (Ethernet) RX packets 228 bytes 25336 (24.7 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 130 bytes 13117 (12.8 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0  lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 0 (Local Loopback) RX packets 10 bytes 620 (620.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 10 bytes 620 (620.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 

Мой resolv.conf:

# cat /etc/resolv.conf # Generated by NetworkManager domain localdomain search localdomain nameserver 192.168.206.1 

Первый раз заметил, что у меня sysconfig / network пусто ... хммм ... держу пари, это моя проблема. Что должно идти сюда?

# cat /etc/sysconfig/network 
0
в настройках vmware для сетевого адаптера выбран NAT? Ben Plont 9 лет назад 0
Вы добавили своего пользователя в группу vboxusers? Journeyman Geek 9 лет назад 0

1 ответ на вопрос

0
Cubia

Since you are using VMWare, you can change the adapter settings for your virtual machine. I am using VMWare fusion on the Mac, but it should be the same thing for the windows version:

You have 3 options for your network adapter settings :

  • Bridged
  • NAT
  • Host-only

You can use both "Bridged" and "NAT" for internet access, the difference between both being mainly whether or not other machines on your network can interact with that virtual machine.

More info on the differences between "Bridged" and "NAT" can be found here.

With a clean installation of a virtual machine, having access to the internet should be as simple as changing your network adapter settings in your VMWare client. If this doesn't work, you will probably have to setup some configurations in your virtual machine.

Это было! Спасибо вам большое! Chad D 9 лет назад 0
Нет проблем :) Удачи с вашей новой машиной! Cubia 9 лет назад 0