PuttyをVirutalBox仮想マシンに接続できません

PuttyをVirutalBox仮想マシンに接続できません

これは、次に示すガイドラインに従う際に発生した問題です。Asghar GhoriのRHEL 8 RHSCAトレーニングマニュアル。 VirtualBoxを使用してRHEL仮想マシンを設定し、ここにPuttyを接続していますが、これを行うと接続タイムアウトが発生します。 14ページのVirtualBoxで仮想マシンの設定を説明すると、「Windowsホストとインターネットとの双方向通信のために、ネットワークアダプタをネットワークの下のブリッジアダプタに接続する必要があるかもしれません」

私のRHEL-VM1の設定は次のとおりです。ネットワークアダプタ1をNATからブリッジに変更しました。 ここに画像の説明を入力してください。

24ページでRHELのインストール手順を説明したら、「IPv4設定に進み、方法ドロップダウンリストから手動を選択します。追加」をクリックし、アドレス192.168.0.110、ネットマスク24、ゲートウェイ192.168 .0.1と入力します。

インストールが完了したら、以下にRHEL VMネットワーク設定を表示できます。 ここに画像の説明を入力してください。

32ページの以降の手順に従って、ホストでPuttyを使用して次の設定でRHEL VMに接続してみました。 ここに画像の説明を入力してください。

その結果、接続タイムアウトが発生します。 ここに画像の説明を入力してください。

私は何が間違っていましたか?


要求すると、ルーティング結果がWindowsホストに印刷されます。

C:\Users\Sam>route print
===========================================================================
Interface List
  9...a8 a1 59 67 74 a4 ......Killer E3100G 2.5 Gigabit Ethernet Controller
 15...0a 00 27 00 00 0f ......VirtualBox Host-Only Ethernet Adapter
 16...00 ff 8c 98 24 ac ......Private Internet Access Network Adapter
 19...84 1b 77 7d 7d 15 ......Microsoft Wi-Fi Direct Virtual Adapter
 12...86 1b 77 7d 7d 14 ......Microsoft Wi-Fi Direct Virtual Adapter #2
 20...84 1b 77 7d 7d 14 ......Killer(R) Wi-Fi 6 AX1650x 160MHz Wireless Network Adapter (200NGW)
 13...84 1b 77 7d 7d 18 ......Bluetooth Device (Personal Area Network)
  1...........................Software Loopback Interface 1
===========================================================================

IPv4 Route Table
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0         10.0.0.1       10.0.0.118     25
         10.0.0.0    255.255.255.0         On-link        10.0.0.118    281
       10.0.0.118  255.255.255.255         On-link        10.0.0.118    281
       10.0.0.255  255.255.255.255         On-link        10.0.0.118    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.0.0.118    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.0.0.118    281
===========================================================================
Persistent Routes:
  None

IPv6 Route Table
===========================================================================
Active Routes:
 If Metric Network Destination      Gateway
  9    281 ::/0                     fe80::10:18ff:fe41:84aa
  1    331 ::1/128                  On-link
  9    281 2601:446:480:db60::/64   On-link
  9    281 2601:446:480:db60::1e0b/128
                                    On-link
  9    281 2601:446:480:db60:59c8:ac69:ffc7:e87f/128
                                    On-link
  9    281 2601:446:480:db60:85d7:342d:e5e5:4049/128
                                    On-link
 15    281 fe80::/64                On-link
  9    281 fe80::/64                On-link
 15    281 fe80::856a:3f4f:d390:4a0e/128
                                    On-link
  9    281 fe80::85d7:342d:e5e5:4049/128
                                    On-link
  1    331 ff00::/8                 On-link
 15    281 ff00::/8                 On-link
  9    281 ff00::/8                 On-link
===========================================================================
Persistent Routes:
  None

Windowsホストでのipconfig / allの結果:

C:\Users\Sam>ipconfig/all

Windows IP Configuration

   Host Name . . . . . . . . . . . . : DESKTOP-6KK2N8R
   Primary Dns Suffix  . . . . . . . :
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No
   DNS Suffix Search List. . . . . . : hsd1.mn.comcast.net

Ethernet adapter Ethernet:

   Connection-specific DNS Suffix  . : hsd1.mn.comcast.net
   Description . . . . . . . . . . . : Killer E3100G 2.5 Gigabit Ethernet Controller
   Physical Address. . . . . . . . . : A8-A1-59-67-74-A4
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   IPv6 Address. . . . . . . . . . . : 2601:446:480:db60::1e0b(Preferred)
   Lease Obtained. . . . . . . . . . : Wednesday, June 22, 2022 1:33:08 PM
   Lease Expires . . . . . . . . . . : Friday, July 8, 2022 3:42:39 AM
   IPv6 Address. . . . . . . . . . . : 2601:446:480:db60:85d7:342d:e5e5:4049(Preferred)
   Temporary IPv6 Address. . . . . . : 2601:446:480:db60:59c8:ac69:ffc7:e87f(Preferred)
   Link-local IPv6 Address . . . . . : fe80::85d7:342d:e5e5:4049%9(Preferred)
   IPv4 Address. . . . . . . . . . . : 10.0.0.118(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : Wednesday, June 22, 2022 1:33:07 PM
   Lease Expires . . . . . . . . . . : Friday, July 8, 2022 6:33:14 AM
   Default Gateway . . . . . . . . . : fe80::10:18ff:fe41:84aa%9
                                       10.0.0.1
   DHCP Server . . . . . . . . . . . : 10.0.0.1
   DHCPv6 IAID . . . . . . . . . . . : 346595673
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-28-03-01-9E-A8-A1-59-67-74-A4
   DNS Servers . . . . . . . . . . . : 2001:558:feed::1
                                       2001:558:feed::2
                                       75.75.75.75
                                       75.75.76.76
   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-0F
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::856a:3f4f:d390:4a0e%15(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.56.1(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . :
   DHCPv6 IAID . . . . . . . . . . . : 772407335
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-28-03-01-9E-A8-A1-59-67-74-A4
   DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
                                       fec0:0:0:ffff::2%1
                                       fec0:0:0:ffff::3%1
   NetBIOS over Tcpip. . . . . . . . : Enabled

Unknown adapter Local Area Connection:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Private Internet Access Network Adapter
   Physical Address. . . . . . . . . : 00-FF-8C-98-24-AC
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes

Wireless LAN adapter Local Area Connection* 9:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft Wi-Fi Direct Virtual Adapter
   Physical Address. . . . . . . . . : 84-1B-77-7D-7D-15
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes

Wireless LAN adapter Local Area Connection* 10:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft Wi-Fi Direct Virtual Adapter #2
   Physical Address. . . . . . . . . : 86-1B-77-7D-7D-14
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes

Wireless LAN adapter Wi-Fi:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . : hsd1.mn.comcast.net
   Description . . . . . . . . . . . : Killer(R) Wi-Fi 6 AX1650x 160MHz Wireless Network Adapter (200NGW)
   Physical Address. . . . . . . . . : 84-1B-77-7D-7D-14
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes

Ethernet adapter Bluetooth Network Connection:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Bluetooth Device (Personal Area Network)
   Physical Address. . . . . . . . . : 84-1B-77-7D-7D-18
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes

RHEL VM端末のIPアドレス: ここに画像の説明を入力してください。

ベストアンサー1

network コマンドの出力によると、Windows コンピュータはガイドで想定したように 192.168.0.0/24 ではなく 10.0.0.0/24 をネットワークとして使用しているようです。どこでも(VMニューラルジョブの設定とputtyコマンド)192.168.0.110を10.0.0.110に変更すると、接続が有効になります。

背景

ネットワークルーティングテーブルWindowsワールド側は、Redhat VMに到達すると予想されるパケットをルーターに送信し、コンキャストに送信するように設定されています。これはRFC1918予約ネットワークから来るので、パケットは正しく破棄されます。仮想マシンにLANアドレスを提供すると、パケットは仮想マシンに入ります。

おすすめ記事