0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

[Linux] ネットワーク設定_インターフェース_ifconfig, ifup, ifdown

Posted at

ifconfig コマンド

$ ifconfig [インターフェース名] [オプション]
オプション 由来 説明
default interface configuration ネットワークインターフェースの状態やIPアドレス、MACアドレスを表示
up bring interface up 指定したインターフェースを有効化
down bring interface down 指定したインターフェースを無効化
inet internet (IPv4) IPv4アドレスを指定
例:ifconfig eth0 inet 192.168.1.100
netmask subnet mask サブネットマスクを指定
例:netmask 255.255.255.0

ifup コマンド

$ ifup [インターフェース名]
オプション 由来 説明
default interface up /etc/network/interfaces に基づいて指定したインターフェースを有効化
--force 強制実行 インターフェースがすでに有効でも再実行する

ifdown コマンド

$ ifdown [インターフェース名]
オプション 由来 説明
default interface down /etc/network/interfaces に基づいて指定したインターフェースを無効化
--force 強制実行 無効化済みでも再実行する。スクリプト等での再初期化時に有効

Ping-t

0
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?