Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
Shells Virtual Desktop
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.

Possible to bridge one interface to two with Proxmox?

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.

  • @Mun said:
    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?

  • 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 he-ipv6
    bridge_stp on
    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
    
    
  • ... 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

  • @Mun said:
    ... 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.

    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 ?

    @Nomad said:
    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.

  • @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.

    Thanked by 1lynda
  • @Nomad said:

    will try them, thanks

  • @elwebmaster said:
    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.

    Can you please share your config file? Thanks.

  • elwebmasterelwebmaster Member
    edited September 2015

    @elgs said:
    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.

  • @elwebmaster said:
    There is no DHCP in my setup.

    Thank you!

Sign In or Register to comment.