ไม่สามารถเปิด google.com ภายใน Linux Ubuntu


0

ฉันได้ติดตั้ง Ubuntu Linux VM ในกล่อง Windows XP ของฉันแล้ว

ฉันสามารถเปิดhttp://google.comบน Windows XP ได้ แต่เมื่อฉันเข้าสู่ระบบ Ubuntu linux .. และเปิดไซต์นี้: ฉันได้รับข้อผิดพลาด: ไม่พบเซิร์ฟเวอร์

การตั้งค่าเครือข่ายที่ฉันมีบน LinuxUbuntu VM คือ:

  • Adapter1: เชื่อมต่อกับ Bridge adapter

ฉันลอง NAT เช่นกัน แต่ดูเหมือนว่าจะไม่มีอะไรทำงาน

ฉันไม่ได้อยู่ในประเทศจีน ฉันให้ google.com เป็นตัวอย่างเท่านั้น เรามีเว็บไซต์ทดสอบที่ไม่สามารถเปิดได้ใน Linux Ubuntu


etc/udev/rules.d/70-persistent-net.rulesฉันลบ แต่นี่ไม่ได้ช่วยอะไร

ผลลัพธ์ของifconfig -aและlspciภายใน Ubuntu อยู่ด้านล่าง

ubuntu@ubuntu-VirtualBox:~$ lspci
00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
00:02.0 VGA compatible controller: InnoTek Systemberatung GmbH VirtualBox Graphics Adapter
00:03.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02)
00:04.0 System peripheral: InnoTek Systemberatung GmbH VirtualBox Guest Service
00:05.0 Multimedia audio controller: Intel Corporation 82801AA AC'97 Audio Controller (rev 01)
00:06.0 USB controller: Apple Inc. KeyLargo/Intrepid USB
00:07.0 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 08)
00:0d.0 SATA controller: Intel Corporation 82801HM/HEM (ICH8M/ICH8M-E) SATA Controller [AHCI mode] (rev 02)
ubuntu@ubuntu-VirtualBox:~$
ubuntu@ubuntu-VirtualBox:~$

ubuntu@ubuntu-VirtualBox:~$ ifconfig -a
eth0      Link encap:Ethernet  HWaddr 08:00:27:80:0a:92 
          inet addr:10.0.2.15  Bcast:10.0.2.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe80:a92/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1849 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1372 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1697396 (1.6 MB)  TX bytes:132043 (132.0 KB)

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:150 errors:0 dropped:0 overruns:0 frame:0
          TX packets:150 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:20424 (20.4 KB)  TX bytes:20424 (20.4 KB)

The output of ipconfig from the host (win XP) box is
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Administrator>ipconfig

Windows IP Configuration


Ethernet adapter Local Area Connection 3:

        Connection-specific DNS Suffix  . :
        IP Address. . . . . . . . . . . . : 10.43.68.141
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . : 10.43.68.5

Ethernet adapter VirtualBox Host-Only Network:

        Connection-specific DNS Suffix  . :
        IP Address. . . . . . . . . . . . : 192.168.56.1
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . :

C:\Documents and Settings\Administrator>

ตอนนี้, โปรดกลับไปที่Stack Overflowและลงทะเบียนบัญชีของคุณที่นั่น จากนั้นเข้าสู่ระบบด้วยบัญชีเดียวกันที่นี่และคุณสามารถแก้ไขคำถามของคุณอีกครั้ง โปรดอย่าโพสต์คำตอบด้านล่างเพื่อตอบกลับคนอื่น - คุณต้องแก้ไขบัญชีของคุณก่อน
slhck

คำตอบ:


0

ฉันประสบปัญหาเดียวกันในการกำหนดค่าเดียวกัน ทางออกคือการลบ/etc/udev/rules.d/70-persistent-net.rulesLinux กำหนดค่าในการบูตครั้งถัดไป

สำหรับการตรวจสอบเพิ่มเติมกรุณาจัดหาifconfig -aและlspciจาก Ubuntu และipconfigจากโฮสต์

โดยการใช้ไซต์ของเรา หมายความว่าคุณได้อ่านและทำความเข้าใจนโยบายคุกกี้และนโยบายความเป็นส่วนตัวของเราแล้ว
Licensed under cc by-sa 3.0 with attribution required.