New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Possible to bridge one interface to two with Proxmox?
elwebmaster
Member
in Help
If I have proxmox with KVM VMs, and I have a bridge (vmbr1) for the VMs bridged with vmbr0 (public IPv4), is it possible to also bridge it with a IPv6 tunnel?
The goal is to give the VMs IPv6 from the tunnel, while having private IPv4 through vmbr0.
Comments
Yes it is possible, just little bit complicated.
https://wiki.debian.org/BridgeNetworkConnections Good place to start.
I looked at this but it's different from my environment:
# brctl show
bridge name bridge id STP enabled interfaces
vmbr0 x000.xxxxxxxxxxxx no eth0
vmbr1 x000.xxxxxxxxxxxx no tap100i0
tap101i0
tap700i0
In /etc/network/interfaces I have:
auto vmbr1
iface vmbr1 inet static
address 192.168.x.x
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0
auto vmbr0
iface vmbr0 inet static
address XXX.XXX.XXX.XXX
netmask 255.255.255.0
network XXX.XXX.XXX.XXX
broadcast XXX.XXX.XXX.XXX
gateway XXX.XXX.XXX.XXX
bridge_ports eth0
bridge_stp off
bridge_fd 0
auto he-ipv6
iface he-ipv6 inet6 v4tunnel
address XXXX:XXXX:XXXX::
netmask 48
endpoint XXX.XXX.XXX.XXX
local XXX.XXX.XXX.XXX
ttl 255
How do I bridge vmbr1 with he-ipv6?
... edit
Further you need to decide wat is connected to what. I assumed you wanted it to be connected to your vmbr0 as that is what was connecting to your vms.
add tunnel sit0 failed: No buffer space available
Failed to bring up he-ipv6.
can't add he-ipv6 to bridge vmbr0: Invalid argument
my KVMs are on vmbr1.
Fixed it. Bridging was not required at all. Just setting static IPv6 on the vmbr1 interface and enabling forwarding is all I had to do.
Awesome and good job!
After a long struggle,
I have 3 vmbr interfaces
1 to assign failover ip to one vps,
1 for giving private IP's to VPSes,
1 for IPv6.
It's possible but confusing.
Is there a guide or something that can help ?
@coderone, Not a complete one but... You have to pickup information and merge them into one. I am still trying to make it better as well.
For IPv6 follow @earl 's tutorial: Configuring IPv6 In Proxmox On Dedibox From Online.net
For NAT check out this server fault page.
As for failover IP, check this one.
will try them, thanks
Can you please share your config file? Thanks.
Here: http://pastebin.com/8iwFMd0Y
On each VM I have manually set the configuration like this:
/sbin/ifconfig eth0 XXX.XXX.XXX.XXX # Private IPv4
/sbin/ifconfig eth0 add XXXX:XXX:XXXX::2/56 # IPv6 from /48
ip route add default via XXX.XXX.XXX.XXX dev eth0 # vmbr1's IPv4
ip route add XXXX:XXXX:XXXX:: dev eth0 # vmbr1's /48 IPv6
ip route add default via XXXX:XXXX:XXXX:: dev eth0
There is no DHCP in my setup.
Thank you!