✍️

Proxmox VE で IP アドレスを変更する際の設定

に公開

毎回忘れて詰まるのでメモ。
以下 192.168.2.1/24 へ変更する例。

前提

  • Proxmox VE 8.3.0

/etc/network/interfaces の変更

$ cat /etc/network/interfaces
auto lo
iface lo inet loopback

iface eno1 inet manual

auto vmbr0
# 下記インタフェースごとの設定を書き換える
iface vmbr0 inet static
        address 192.168.2.1/24
        gateway 192.168.2.254
        bridge-ports eno1
        bridge-stp off
        bridge-fd 0


source /etc/network/interfaces.d/*

/etc/hosts の変更

$ cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.2.1 hostname.local hostname
# The following lines are desirable for IPv6 capable hosts

::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

あとは再起動すればOK。

Discussion