web-dev-qa-db-ja.com

イーサネットは接続されているがインターネットにアクセスできない

私はこれに非常に非常に新しく、頭の上にいます。光沢のあるダッシュボードをホストするために、VM仮想ボックスでUbuntuをホストしています。それはすべて機能していましたが、今では仮想ボックス内で突然インターネットにアクセスできないため、ダッシュボードをホストしていません。理由を知っています。

以下にいくつかの出力を示しますが、さらに情報が必要な場合や他の情報が必要な場合はお知らせください。 NAT接続を使用しています。これはすべて会社のコンピューター上にあるため、できること(ルーターのリセットなど)に制限されています。

コード:

$ ifconfig

enp0s3    Link encap:Ethernet  HWaddr 08:00:27:64:dc:b0  
          inet addr:10.0.2.15  Bcast:10.0.2.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe64:dcb0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:43 errors:0 dropped:0 overruns:0 frame:0
          TX packets:166 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:4911 (4.9 KB)  TX bytes:16737 (16.7 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:65536  Metric:1
          RX packets:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1 
          RX bytes:240 (240.0 B)  TX bytes:240 (240.0 B)

コード:

$ ping -c 5 10.0.2.15

PING 10.0.2.15 (10.0.2.15) 56(84) bytes of data.
64 bytes from 10.0.2.15: icmp_seq=1 ttl=64 time=0.039 ms
64 bytes from 10.0.2.15: icmp_seq=2 ttl=64 time=0.033 ms
64 bytes from 10.0.2.15: icmp_seq=3 ttl=64 time=0.040 ms
64 bytes from 10.0.2.15: icmp_seq=4 ttl=64 time=0.039 ms
64 bytes from 10.0.2.15: icmp_seq=5 ttl=64 time=0.040 ms

--- 10.0.2.15 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4002ms
rtt min/avg/max/mdev = 0.033/0.038/0.040/0.004 ms

コード:

 $ route -n

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.0.2.2        0.0.0.0         UG    0      0        0 enp0s3
10.0.2.0        0.0.0.0         255.255.255.0   U     0      0        0 enp0s3

コード:

$ ping -c 5  google.com

PING google.com (172.217.10.110) 56(84) bytes of data.

--- google.com ping statistics ---
5 packets transmitted, 0 received, 100% packet loss, time 4000ms

コード:

$ ping -c 5 172.217.10.110

PING 172.217.10.110 (172.217.10.110) 56(84) bytes of data.

--- 172.217.10.110 ping statistics ---
5 packets transmitted, 0 received, 100% packet loss, time 4017ms

コード:

$ iwconfig

enp0s3    no wireless extensions.

lo        no wireless extensions.

コード:

$ cat /etc/resolv.conf

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 10.0.2.3

コード:

$ ping -c 5 10.0.2.3

PING 10.0.2.3 (10.0.2.3) 56(84) bytes of data.
64 bytes from 10.0.2.3: icmp_seq=1 ttl=64 time=0.256 ms
64 bytes from 10.0.2.3: icmp_seq=2 ttl=64 time=0.233 ms
64 bytes from 10.0.2.3: icmp_seq=3 ttl=64 time=0.300 ms
64 bytes from 10.0.2.3: icmp_seq=4 ttl=64 time=0.252 ms
64 bytes from 10.0.2.3: icmp_seq=5 ttl=64 time=0.269 ms

--- 10.0.2.3 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 3998ms
rtt min/avg/max/mdev = 0.233/0.262/0.300/0.022 ms

コード:

$ ping -c 5 10.0.2.2

PING 10.0.2.2 (10.0.2.2) 56(84) bytes of data.
64 bytes from 10.0.2.2: icmp_seq=1 ttl=64 time=0.310 ms
64 bytes from 10.0.2.2: icmp_seq=2 ttl=64 time=0.310 ms
64 bytes from 10.0.2.2: icmp_seq=3 ttl=64 time=0.207 ms
64 bytes from 10.0.2.2: icmp_seq=4 ttl=64 time=0.269 ms
64 bytes from 10.0.2.2: icmp_seq=5 ttl=64 time=0.189 ms

--- 10.0.2.2 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 3997ms
rtt min/avg/max/mdev = 0.189/0.257/0.310/0.050 ms

ホストコンピューター(Windows)から:

H:\>ipconfig /all

Windows IP Configuration

   Host Name . . . . . . . . . . . . : AI186552
   Primary Dns Suffix  . . . . . . . : utcaus.com
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No
   DNS Suffix Search List. . . . . . : utcaus.com
                                       hs.utccommercial.us
                                       hs.utc.com
                                       hs.utcitar.us
                                       hsd.utc.com
                                       rkd.snds.com
                                       goodrich.root.local
                                       root.local
                                       goodrich.com
                                       ssd.goodrich.com
                                       sps.snds.com
                                       px.snds.com
                                       utcapp.com
                                       na.utcmail.com
                                       utcmail.com
                                       utccommercial.us
                                       utc.com
                                       eh.pweh.com
                                       mgt.utc.us

Ethernet adapter Ethernet:

   Connection-specific DNS Suffix  . : goodrich.root.local
   Description . . . . . . . . . . . : Intel(R) Ethernet Connection I217-LM
   Physical Address. . . . . . . . . : 98-90-96-BC-B3-EE
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::7d59:a34b:7f66:ff3f%12(Preferred)
   IPv4 Address. . . . . . . . . . . : 10.169.166.60(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : Thursday, March 15, 2018 9:14:20 AM
   Lease Expires . . . . . . . . . . : Thursday, March 15, 2018 10:26:51 AM
   Default Gateway . . . . . . . . . : 10.169.166.1
   DHCP Server . . . . . . . . . . . : 10.169.160.50
   DHCPv6 IAID . . . . . . . . . . . : 60330134
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1F-BC-FA-53-98-90-96-BC-B3-EE
   DNS Servers . . . . . . . . . . . : 10.169.160.18
                                       10.168.112.206
   Primary WINS Server . . . . . . . : 10.168.97.68
   Secondary WINS Server . . . . . . : 168.204.159.12
   NetBIOS over Tcpip. . . . . . . . : Enabled

Ethernet adapter VirtualBox Host-Only Network:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : VirtualBox Host-Only Ethernet Adapter
   Physical Address. . . . . . . . . : 0A-00-27-00-00-08
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::196d:d465:b540:9ae1%8(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.56.1(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . :
   DHCPv6 IAID . . . . . . . . . . . : 336199719
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1F-BC-FA-53-98-90-96-BC-B3-EE
   DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
                                       fec0:0:0:ffff::2%1
                                       fec0:0:0:ffff::3%1
   NetBIOS over Tcpip. . . . . . . . : Enabled

Tunnel adapter isatap.goodrich.root.local:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . : goodrich.root.local
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Reusable ISATAP Interface {EFCAF89E-86BC-4DA3-9CD4-E5CC9B1E2141}:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter #3
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

コード:

H:\>route print
===========================================================================
Interface List
 12...98 90 96 bc b3 ee ......Intel(R) Ethernet Connection I217-LM
  8...0a 00 27 00 00 08 ......VirtualBox Host-Only Ethernet Adapter
  1...........................Software Loopback Interface 1
  2...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter
 13...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #3
===========================================================================

IPv4 Route Table
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0     10.169.166.1    10.169.166.60     25
     10.169.166.0    255.255.255.0         On-link     10.169.166.60    281
    10.169.166.60  255.255.255.255         On-link     10.169.166.60    281
   10.169.166.255  255.255.255.255         On-link     10.169.166.60    281
        127.0.0.0        255.0.0.0         On-link         127.0.0.1    331
        127.0.0.1  255.255.255.255         On-link         127.0.0.1    331
  127.255.255.255  255.255.255.255         On-link         127.0.0.1    331
     192.168.56.0    255.255.255.0         On-link      192.168.56.1    281
     192.168.56.1  255.255.255.255         On-link      192.168.56.1    281
   192.168.56.255  255.255.255.255         On-link      192.168.56.1    281
        224.0.0.0        240.0.0.0         On-link         127.0.0.1    331
        224.0.0.0        240.0.0.0         On-link      192.168.56.1    281
        224.0.0.0        240.0.0.0         On-link     10.169.166.60    281
  255.255.255.255  255.255.255.255         On-link         127.0.0.1    331
  255.255.255.255  255.255.255.255         On-link      192.168.56.1    281
  255.255.255.255  255.255.255.255         On-link     10.169.166.60    281
===========================================================================
Persistent Routes:
  None

IPv6 Route Table
===========================================================================
Active Routes:
 If Metric Network Destination      Gateway
  1    331 ::1/128                  On-link
  8    281 fe80::/64                On-link
 12    281 fe80::/64                On-link
  8    281 fe80::196d:d465:b540:9ae1/128
                                    On-link
 12    281 fe80::7d59:a34b:7f66:ff3f/128
                                    On-link
  1    331 ff00::/8                 On-link
  8    281 ff00::/8                 On-link
 12    281 ff00::/8                 On-link
===========================================================================
Persistent Routes:
  None

コード:

H:\>ping 172.217.10.110

Pinging 172.217.10.110 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 172.217.10.110:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss)
2
Kevin

ログによると、NATは正常に機能していますが、会社は発信ICMP(ping)パケットをブロックしているため、ping

ホストコンピューター上のWebにアクセスするためにプロキシサーバーを使用しています。VM内でWebにアクセスする場合は、適切なプロキシサーバー、ポート、ユーザー、パスワードを設定する必要があります。

VMのブラウザー(Firefox)で 接続設定 に移動します。 手動プロキシ設定でプロキシ設定を構成します。

次に、期待されるパラメーター(HTTPプロキシ、ポート...)を入力します

次に、Webにアクセスする必要があります(企業のプロキシ認証スキームがLinux VMと互換性がある場合)

2
rebrec