13
2023
04
11:32:29

Proxmox Virtual Environment(PVE)修改IP、网关 和 DNS



推荐点击下面图片,通过本站淘宝优惠价购买:

image.png


装PVE时,默认把 DHCP 服务器分配的网络配置信息配成固定IP了,今天切换了网络,需要重新配置IP和DNS,故做如下笔记,其实大体上与绝大多数 Linux 都一样。


1、修改IP、网关,文件名为 /etc/network/interfaces


auto lo

iface lo inet loopback

 

iface ens33 inet manual

 

auto vmbr0

iface vmbr0 inet static

address 192.168.100.3/24

gateway 192.168.100.2

bridge-ports ens33

bridge-stp off

bridge-fd 0


2、修改DNS服务器,文件名为 /etc/resolv.conf


search localdomain

nameserver 192.168.100.2


3、修改主机名解析的IP,文件名为 /etc/hosts


127.0.0.1 localhost.localdomain localhost

192.168.100.3 pve.localdomain pve

 

# 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


4、修改开机界面提示的URL内容,文件名为:/etc/issue ,其实改不改都不影响使用的。


------------------------------------------------------------------------------

 

Welcome to the Proxmox Virtual Environment. Please use your web browser to 

configure this server - connect to:

 

  https://192.168.100.3:8006/

 

------------------------------------------------------------------------------

 就是这个开机画面



63f536d8905b445932be0a86b2d9b7ed_25bea050c9dd41e7870133cddf048e09.png

本文链接:https://www.hqyman.cn/post/3858.html 非本站原创文章欢迎转载,原创文章需保留本站地址!

分享到:





休息一下,本站随机推荐观看栏目:


« 上一篇 下一篇 »

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

您的IP地址是: