-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
043e9e0
commit ce99565
Showing
4 changed files
with
51 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
设置PVE的APT源 | ||
|
||
PVE的默认软件源是他的企业服务地址(enterprise.proxmox.com),我们个人使用需要将其换成国内的软件源。 | ||
|
||
1.在pve的Web页面中选中pve节点,再打开Shell页面。 | ||
|
||
2.在命令行中执行`cp /etc/network/interfaces /etc/network/interfaces.bak`,备份当前的网络配置文件。 | ||
|
||
3.在命令行中执行`vi /etc/network/interfaces`,打开网络配置文件。 | ||
|
||
默认情况下pve的配置类似下面这样: | ||
|
||
``` | ||
auto lo | ||
iface lo inet loopback | ||
iface enp0s31f6 inet manual | ||
auto vmbr0 | ||
iface vmbr0 inet static | ||
address 192.168.0.99/24 | ||
gateway 192.168.0.1 | ||
bridge-ports enp0s31f6 | ||
bridge-stp off | ||
bridge-fd 0 | ||
iface enp3s0 inet manual | ||
``` | ||
|
||
4.将vmbr0原本的静态IP配置修改成dhcp,配置完成后类似如下形式。 | ||
|
||
``` | ||
auto lo | ||
iface lo inet loopback | ||
iface enp0s31f6 inet manual | ||
auto vmbr0 | ||
iface vmbr0 inet dhcp | ||
bridge-ports enp0s31f6 | ||
bridge-stp off | ||
bridge-fd 0 | ||
iface enp3s0 inet manual | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters