Ubuntu/Ubuntu Serverインストール後にネットワークの設定を行った時の備忘録
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
]
開始行:
#navi(../)
* Ubuntu Serverインストール後にネットワークの設定を行った...
&color(red){''Ubuntu14.04でも同様の操作で設定が可能でした...
&color(red){''Ubuntu16.04''については、ネットワーク名称が...
-[[Ubuntu Server 16.04のインストール後にネットワーク設定...
VirtualBoxを使用しゲストOSとしてUbuntu12.04 Serverをイン...
VirtualBoxのネットワーク設定は以下の通りに設定し、ssh(ter...
|アダプター1|NAT|DHCP|
|アダプター2|ホストオンリーアダプタ|static|
#contents
#htmlinsertpcsp(linux_ads_top.html,linux-sp.html)
* 関連資料 [#r0b5e901]
-[[VitualBoxでホストOSとゲストOSと間でsshなど通信ができる...
-[[VirtualBoxの仮想OSをバックグラウンド(画面なし)で起動す...
-[[sshの接続に時間がかかる場合の対処>Linux環境設定/sshの...
-[[Ubuntu Serverにgccをインストールしてみた>Ubuntu/Ubuntu...
-[[Ubuntu Serverで管理者権限があるユーザーを追加する手順>...
-[[Ubuntu Serverインストール後にネットワークの設定を行っ...
-[[Ubuntuサーバーインストール後にソフトウェア選択画面を表...
-[[Ubuntuサーバーにデスクトップをインストールする手順>Ubu...
* ネットワーク設定を行うための設定ファイル [#d573c26c]
ネットワーク設定を行うために以下のファイルを編集しIPアド...
/etc/network/interfaces
編集するためのエディタを使用します。~
nanoやviを使ってファイルを開きます。
-nanoの場合
sudo nano /etc/network/interfaces
-viの場合
sudo vi /etc/network/interfaces
* 本備忘録で/etc/network/interfacesの編集前・編集後 [#t15...
/etc/network/interfacesの内容を以下に記します。
設定は以下のようにしました。
|eth0|アダプター 1|DHCP|
|eht1|アダプター 2|static 192.168.56.12/24|
** 編集前の/etc/network/interfaces [#a55941db]
以下は編集前の/etc/network/interfacesの内容です。
sakura@ubuntu:~$ cat /etc/network/interfaces
# This file describes the network interfaces available o...
# and how to activate them. For more information, see in...
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
sakura@ubuntu:~$
** 編集後の/etc/network/interfaces [#r1eb9454]
以下は''編集後''の/etc/network/interfacesの内容です。~
#Host Only network interfaceの行以下が新規に追加した行に...
sakura@ubuntu:~$ cat /etc/network/interfaces
# This file describes the network interfaces available o...
# and how to activate them. For more information, see in...
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
# Host Only network interface
auto eth1
iface eth1 inet static
address 192.168.56.12
netmask 255.255.255.0
sakura@ubuntu:~$
* 設定を反映するためにネットワークの再起動 [#q79ce6a7]
変更した内容を反映させるため以下のコマンドでネットワーク...
sudo /etc/init.d/networking restart
上記のネットワーク再起動後のifconfigを確認してみると、設...
&color(red){Ubuntu14.04では上記のrestartを動かしても何も...
&color(red){しかし ifup eth1 を行ったらネットワークインタ...
以上、Ubuntu ServerをVirtualBoxにインストール後にネットワ...
TeraTermなどからのssh接続に時間がかかるようであれば以下の...
-[[sshの接続に時間がかかる場合の対処>Linux環境設定/sshの...
#htmlinsertpcsp(linux_ads_btm.html,linux-sp.html)
終了行:
#navi(../)
* Ubuntu Serverインストール後にネットワークの設定を行った...
&color(red){''Ubuntu14.04でも同様の操作で設定が可能でした...
&color(red){''Ubuntu16.04''については、ネットワーク名称が...
-[[Ubuntu Server 16.04のインストール後にネットワーク設定...
VirtualBoxを使用しゲストOSとしてUbuntu12.04 Serverをイン...
VirtualBoxのネットワーク設定は以下の通りに設定し、ssh(ter...
|アダプター1|NAT|DHCP|
|アダプター2|ホストオンリーアダプタ|static|
#contents
#htmlinsertpcsp(linux_ads_top.html,linux-sp.html)
* 関連資料 [#r0b5e901]
-[[VitualBoxでホストOSとゲストOSと間でsshなど通信ができる...
-[[VirtualBoxの仮想OSをバックグラウンド(画面なし)で起動す...
-[[sshの接続に時間がかかる場合の対処>Linux環境設定/sshの...
-[[Ubuntu Serverにgccをインストールしてみた>Ubuntu/Ubuntu...
-[[Ubuntu Serverで管理者権限があるユーザーを追加する手順>...
-[[Ubuntu Serverインストール後にネットワークの設定を行っ...
-[[Ubuntuサーバーインストール後にソフトウェア選択画面を表...
-[[Ubuntuサーバーにデスクトップをインストールする手順>Ubu...
* ネットワーク設定を行うための設定ファイル [#d573c26c]
ネットワーク設定を行うために以下のファイルを編集しIPアド...
/etc/network/interfaces
編集するためのエディタを使用します。~
nanoやviを使ってファイルを開きます。
-nanoの場合
sudo nano /etc/network/interfaces
-viの場合
sudo vi /etc/network/interfaces
* 本備忘録で/etc/network/interfacesの編集前・編集後 [#t15...
/etc/network/interfacesの内容を以下に記します。
設定は以下のようにしました。
|eth0|アダプター 1|DHCP|
|eht1|アダプター 2|static 192.168.56.12/24|
** 編集前の/etc/network/interfaces [#a55941db]
以下は編集前の/etc/network/interfacesの内容です。
sakura@ubuntu:~$ cat /etc/network/interfaces
# This file describes the network interfaces available o...
# and how to activate them. For more information, see in...
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
sakura@ubuntu:~$
** 編集後の/etc/network/interfaces [#r1eb9454]
以下は''編集後''の/etc/network/interfacesの内容です。~
#Host Only network interfaceの行以下が新規に追加した行に...
sakura@ubuntu:~$ cat /etc/network/interfaces
# This file describes the network interfaces available o...
# and how to activate them. For more information, see in...
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
# Host Only network interface
auto eth1
iface eth1 inet static
address 192.168.56.12
netmask 255.255.255.0
sakura@ubuntu:~$
* 設定を反映するためにネットワークの再起動 [#q79ce6a7]
変更した内容を反映させるため以下のコマンドでネットワーク...
sudo /etc/init.d/networking restart
上記のネットワーク再起動後のifconfigを確認してみると、設...
&color(red){Ubuntu14.04では上記のrestartを動かしても何も...
&color(red){しかし ifup eth1 を行ったらネットワークインタ...
以上、Ubuntu ServerをVirtualBoxにインストール後にネットワ...
TeraTermなどからのssh接続に時間がかかるようであれば以下の...
-[[sshの接続に時間がかかる場合の対処>Linux環境設定/sshの...
#htmlinsertpcsp(linux_ads_btm.html,linux-sp.html)
ページ名: