virtualboxのcento 7に固定IPを設定してインターネットに接続する方法

virtualboxのcento 7に固定IPを設定してインターネットに接続する方法

私はRDPを介してアクセスする専用のWindowsオンラインサーバーの仮想ボックスを介してCento OSをインストールすることにしました。 Windowsサーバーに5つのipv4接続があります。

私のipconfigファイルの出力は次のとおりです。

Windows IP Configuration


Ethernet adapter Ethernet:

   Connection-specific DNS Suffix  . :
   Link-local IPv6 Address . . . . . : fe80::5964:102:b4ca:d22%12
   IPv4 Address. . . . . . . . . . . : 79.195.157.66
   Subnet Mask . . . . . . . . . . . : 255.255.255.252
   Default Gateway . . . . . . . . . : fe80::219:a9ff:fe80:7400%12
                                       79.195.157.65

Ethernet adapter VirtualBox Host-Only Network:

   Connection-specific DNS Suffix  . :
   Link-local IPv6 Address . . . . . : fe80::d2:24be:d862:14c2%24
   IPv4 Address. . . . . . . . . . . : 192.168.56.1
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . :

Tunnel adapter Local Area Connection* 11:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :

Tunnel adapter Local Area Connection* 12:

   Connection-specific DNS Suffix  . :
   IPv6 Address. . . . . . . . . . . : 2002:45c3:9d42::45c3:9d42
   Default Gateway . . . . . . . . . : 2002:c058:6301::1

Tunnel adapter isatap.{CE18702E-41F3-4A46-AA41-33647FD7EC47}:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :

インターネット接続サーバーで作成できるように、centos仮想ボックスインストールに静的IPを接続する方法を案内できる人はいますか?

centosのインストール中に、LANネットワークアダプタを次のように設定しました。

https://i.imgur.com/GOmjSSX.png

Centos用の固定IPを取得するのに役立つかどうかはわかりませんが、Centos VMはインターネットにアクセスできません。

yum更新がミラーサーバーにアクセスできないことを返します。

誰もが固定IPを接続し、Linuxがインターネットに接続できるようにする方法を教えてもらえますか?

ベストアンサー1

Virtual Boxでファイル - >ホストネットワーク管理者に移動し、静的IPで別のアダプタを作成し、独立して使用するか、必要に応じてブリッジすることもできます。

おすすめ記事