ip address : 192.168.31.119/24
gateway: 192.168.31.1
dns:192.168.31.1
ip address : 192.168.1.119/24
gateway: 192.168.1.1
dns: 192.168.1.1
编辑 /etc/network/interfaces
。
auto lo
iface lo inet loopback
iface enp1s0 inet manual
auto vmbr0
iface vmbr0 inet static
address 192.168.31.119/24
gateway 192.168.31.1
bridge-ports enp1s0
bridge-stp off
bridge-fd 0
iface enp2s0 inet manual
iface wlo1 inet manual
修改后
auto lo
iface lo inet loopback
iface enp1s0 inet manual
auto vmbr0
iface vmbr0 inet static
address 192.168.1.119/24
gateway 192.168.1.1
bridge-ports enp1s0
bridge-stp off
bridge-fd 0
iface enp2s0 inet manual
iface wlo1 inet manual
编辑 /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.31.119 pve.lan 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
主要修改的就是映射地址 192.168.31.119→pve.lan pve
修改后:
127.0.0.1 localhost.localdomain localhost
192.168.1.119 pve.lan 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
编辑 /etc/resolv.conf
。
search lan
nameserver 192.168.31.1
修改后:
search lan
nameserver 192.168.1.1
编辑 /etc/issue
。
------------------------------------------------------------------------------
Welcome to the Proxmox Virtual Environment. Please use your web browser to
configure this server - connect to:
https://192.168.31.119:8006/
------------------------------------------------------------------------------
修改后:
------------------------------------------------------------------------------
Welcome to the Proxmox Virtual Environment. Please use your web browser to
configure this server - connect to:
https://192.168.1.119:8006/
------------------------------------------------------------------------------
所有修改玩成后关机,然后新网络环境连接网线并开机。
https://www.leftso.com/article/2406071000293063.html