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 1 year has passed since last update.

RHL系/Ubuntu/Debian LinuxのIPアドレス固定(設定)方法

Posted at

RHL系/Ubuntu/Debian LinuxのIPアドレス固定(設定)方法

最近proxmox使って色々とLinuxを触っているのですが、いざIPアドレス固定したいと思ったときに毎回ググルのでメモしておきます。

RHL系

nmcliコマンド もしくは nmtuiコマンド(画面GUI)で設定する。

Ubuntu

netplan 使って設定する。下記のようにyamlで設定する。yamlなのでスペースに気つける必要あり。

network:
  version: 2
  renderer: networkd
  ethernets:
    enp6s18:
      dhcp4: false
      dhcp6: false
      addresses: [192.168.0.21/24]
      routes:
        - to: default
          via: 192.168.0.1
      nameservers:
       addresses: [8.8.8.8]

Debian

/etc/network/interfaces に設定。画面GUIっぽいのがあったような気がするけど・・・。

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?