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?

More than 5 years have passed since last update.

RHELでのNW設定(最初の一歩)

Posted at

RHEL7ではNWの設定はされていないかもしれない時がある

1)デバイスを確認
nmcli device

結果、eth0だの、ens3だのがわかる

2)インターフェイスを有効化
nmcli c m eth0 connection.autoconnect yes

3-1)IPをDHCP設定にする
nmcli c modify eth0 ipv4.method auto

3-2-1)IPを固定割り当てに設定にする場合
nmcli c modify eth0 ipv4.method manual

3-2-2)IPアドレス、サブネットマスクを設定
nmcli c modify eth0 ipv4.addresses 172.16.0.100/24

3-2-3)デフォルトゲートウェイを設定
nmcli c modify eth0 ipv4.gateway 172.16.0.1

3-2-4)DNS設定
nmcli c modify eth0 ipv4.dns 172.16.0.1

4)インターフェースを再起動
nmcli c down eth0; nmcli c up eth0

5)設定を確認
nmcli d show eth0

or

ip a

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?