proxmox网络

root@t1:~# cat /etc/network/interfaces
# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage parts of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT read its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!

auto lo
iface lo inet loopback

auto enp50s0f0
iface enp50s0f0 inet static
address 192.168.1.53
netmask 255.255.255.0

iface enp46s0f1 inet manual

iface enp0s20f0u1u6 inet manual

iface enp50s0f1 inet manual

iface enp50s0f2 inet manual

iface enp50s0f3 inet manual

iface enp28s0f0 inet manual

iface enp28s0f1 inet manual

iface enp46s0f0 inet manual

auto bond0
iface bond0 inet manual
bond-slaves enp28s0f0 enp46s0f0
bond-miimon 100
bond-mode balance-rr

auto bond0.7
iface bond0.7 inet manual

auto bond0.8
iface bond0.8 inet manual

auto bond1
iface bond1 inet static
address 192.168.3.53
netmask 255.255.255.0
bond-slaves enp28s0f1 enp46s0f1
bond-miimon 100
bond-mode balance-rr

auto vmbr8
iface vmbr8 inet manual
bridge-ports bond0.8
bridge-stp off
bridge-fd 0

auto vmbr7
iface vmbr7 inet manual
bridge-ports bond0.7
bridge-stp off
bridge-fd 0

root@t1:~#

 

如果想让pve主机上网,加一条默认路由即可

ip route add default via 192.168.3.254

ip route add default via 192.168.1.254

虚拟机配网关就能上网

pve主机其实什么地址也不用配,但是为了管理它,所以配了两个地址,一个管理地址192.168.1.53,另外一个存储地址192.168.3.53,这两个地址在防火墙上控制它们能不能上网即可,分内网通信与外网通信,虚拟机需要外网通信。存储网络与管理网络不需要上网。

 

在debian中如果永久添加静态路由,就要在bond0.7上配ip,并加路由

auto eth0
iface eth0 inet static
address 192.168.7.2
netmask 255.255.255.0
up ip route add 192.168.7.0/24 via 192.168.7.254
down ip route add 192.168.7.0/24 via 192.168.7.254
up ip route add 192.168.8.0/24 via 192.168.8.254
down ip route add 192.168.8.0/24 via 192.168.8.254

 

 =================================================

EtherChannel支持基于2层MAC,3层IP,4层端口号的源/目的的负载均衡,高效地使用现有链路

链路聚合技术亦称主干技术(Trunking)或捆绑技术(Bonding)
强烈建议把Proxmox的集群网络、存储网络、虚拟机通信网络分开。网络规划上为这三者分别划分独立网段

转载于:https://www.cnblogs.com/createyuan/p/10724519.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值