LoginSignup
0
2

More than 5 years have passed since last update.

[Virtualbox]NAT+ホストオンリーアダプターのUbuntu16.04のゲストOSがインターネットに繋がらなかった時の対応メモ

Posted at

はじめに

VirtualboxでUbuntu16.04(サーバ版)のゲストOSをNAT+ホストオンリーアダプタのいつもの組み合わせでインターネットに繋げようとしたら繋がらなかったので、そのときの対応をメモしておく。
プロキシ無しの環境下のため、プロキシは関係なし。

対応メモ

動かなかったときの設定内容が以下。

/etc/network/interface
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto enp0s3
iface enp0s3 inet dhcp

auto enp0s8
iface enp0s8 inet static
address 192.168.33.4
netmask 255.255.255.0

何やら見慣れぬ以下の行をコメントアウトしたらインターネットに繋がった。

#source /etc/network/interfaces.d/*

きっと、ディレクトリを使ったネットワークの設定もあるのだろうけど、とりあえずインターネットに繋がるようになったから、まぁいっかという適当なあっしを許してください。。。

0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2