hi,all
follow this links setup network
https://pve.proxmox.com/wiki/Open_vSwitch
# cat /etc/network/interfaces
one vm virtual interface(net1) attach to bridge vmbr0, and associated with the VLAN 20, and enabled firewall
# cat 254.conf
now, net0 is work.
net1 can't work: can't ping from/to other host/vm
disable firewall on net1 can rework!
somebody can help me? thanks very much!
PVE+OVS+FireWall, It's so very nice! thanks a lot!
follow this links setup network
https://pve.proxmox.com/wiki/Open_vSwitch
# cat /etc/network/interfaces
HTML:
# network interface settings
auto lo
iface lo inet loopback
# Bond eth0,eth1 together
allow-vmbr0 bond0
iface bond0 inet manual
ovs_bridge vmbr0
ovs_type OVSBond
ovs_bonds eth0 eth1
ovs_options bond_mode=balance-tcp lacp=active other_config:lacp-time=fast
# Bridge for our bond and vlan virtual interfaces (our VMs will
# also attach to this bridge)
auto vmbr0
allow-ovs vmbr0
iface vmbr0 inet manual
ovs_type OVSBridge
ovs_ports bond0 v10 v20
# pve cluster communication vlan
allow-vmbr0 v10
iface v10 inet static
ovs_type OVSIntPort
ovs_bridge vmbr0
ovs_options tag=10
ovs_extra set interface ${IFACE} external-ids:iface-id=$(hostname -s)-${IFACE}-vif
address 10.0.0.1
netmask 255.0.0.0
gateway 10.0.0.254
# Ceph cluster communication vlan (jumbo frames)
allow-vmbr0 v20
iface v20 inet static
ovs_type OVSIntPort
ovs_bridge vmbr0
ovs_options tag=20
ovs_extra set interface ${IFACE} external-ids:iface-id=$(hostname -s)-${IFACE}-vif
address 192.168.0.1
netmask 255.255.0.0
one vm virtual interface(net1) attach to bridge vmbr0, and associated with the VLAN 20, and enabled firewall
# cat 254.conf
HTML:
balloon: 512
bootdisk: virtio0
cores: 2
cpuunits: 100000
hotplug: 1
memory: 1024
name: t.verycloud.cn
net0: virtio=86:C9:E5:08:CF:47,bridge=vmbr0,tag=10
net1: virtio=F6:C0:97:A3:4F:2B,bridge=vmbr0,tag=20,firewall=1
onboot: 1
ostype: l26
smbios1: uuid=a7ea9d11-a55e-47e7-82d9-992cfe117a8a
sockets: 1
virtio0: local:254/vm-254-disk-1.qcow2,format=qcow2,size=16G
now, net0 is work.
net1 can't work: can't ping from/to other host/vm
disable firewall on net1 can rework!
somebody can help me? thanks very much!
PVE+OVS+FireWall, It's so very nice! thanks a lot!
Last edited: