裝PVE時(shí),默認(rèn)把 DHCP 服務(wù)器分配的網(wǎng)絡(luò)配置信息配成固定IP了,今天切換了網(wǎng)絡(luò),需要重新配置IP和DNS,故做如下筆記,其實(shí)大體上與絕大多數(shù) Linux 都一樣。
1、修改IP、網(wǎng)關(guān),文件名為 /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服務(wù)器,文件名為 /etc/resolv.conf
search localdomain
nameserver 192.168.100.2
3、修改主機(jī)名解析的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、修改開(kāi)機(jī)界面提示的URL內(nèi)容,文件名為:/etc/issue ,其實(shí)改不改都不影響使用的。
------------------------------------------------------------------------------
Welcome to the Proxmox Virtual Environment. Please use your web browser to
configure this server - connect to:
https://192.168.100.3:8006/
------------------------------------------------------------------------------
?就是這個(gè)開(kāi)機(jī)畫(huà)面文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-551023.html
文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-551023.html
到了這里,關(guān)于Proxmox Virtual Environment(PVE)修改IP、網(wǎng)關(guān) 和 DNS的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!