修改 IP 地址
nano /etc/network/interfacesauto lo
iface lo inet loopback
iface enp3s0 inet manual
auto vmbr0
iface vmbr0 inet static
address 10.0.0.200
netmask 255.255.255.0
gateway 10.0.0.1
bridge_ports enp3s0
bridge_stp off
bridge_fd 0
iface enp5s0 inet manual网络设备名每台机器可能会略有不同,忽略,修改 address, netmask 和 gateway 字段对应的值为新环境的网络地址。
修改终端提示的 URL
nano /etc/issue------------------------------------------------------------------------------
Welcome to the Proxmox Virtual Environment. Please use your web browser to
configure this server - connect to:
https://10.0.0.200:8006/
------------------------------------------------------------------------------/etc/issue 的内容是 Linux 终端登启动后的欢迎语句。将 URL 中的 IP 地址更改 PVE 新的 IP
修改 hosts
nano /etc/hosts127.0.0.1 localhost.localdomain localhost
10.0.0.200 pve.lan pve将 pve.lan (局域网 hostname)映射的 IP 更换成 PVE 新的 IP 地址。
修改 DNS(这步是取决于PVE能否联网的关键)
nano /etc/resolv.confnameserver 114.114.114.114 (这里面建议改为114的DNS)
重启
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END






































暂无评论内容