proxmox笔记1-网络配置
1、配置管理IP到VLAN
登陆shell,修改/etc/network/interface文件
参考:https://forum.proxmox.com/threads/second-bond-and-vmbr-on-two-physical-server-ports.98561/
https://pve.proxmox.com/wiki/Network_Configuration
auto bond0
iface bond0 inet manual
bond-slaves eno1 eno2 eno3 eno3
bond-miimon 100
#bond-mode active-backup
bond-mode balance-alb
bond-primary eno1
bond-downdelay 200
bond-updelay 200
iface bond0.100 inet manual
auto vmbr0v100 iface vmbr0v100 inet static address 192.168.100.1/24 gateway 192.168.100.254
bridge-ports bond0.100
bridge-stp off
bridge-fd 0
auto vmbr0
iface vmbr0 inet manual
bridge-ports bond0
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094
2、通过代理连接上网更新或安装ceph
修改/etc/apt/apt.conf(如果没有此文件就新建一个)
Acquire::http::Proxy "http://192.168.2.1:8888"; Acquire::https::Proxy "http://192.168.2.1:8888";
3、重启网络服务
service networking restart
4、虚拟机网卡最好用VirtoIO(半虚拟化),试过用Intel E1000会莫明奇妙的断网,虚机没死