Need help with config multi uplink and proxmox

Boecki

New Member
Aug 12, 2014
2
0
1
Hi together i have a problem with my interfaces file and proxmox. I use a multiple uplink with 4 cards on my server so a solution for bonding mode is given but with multilink i cant find anyone :( i configured my multilink like this tutourial: http://wiki.ubuntuusers.de/Multiple_Uplink_Routing
Is anyone here who can help me with the inferfaces file to bring up the virtuall machines to the Internet?
Thanks in advance
 
Hi together i have a problem with my interfaces file and proxmox. I use a multiple uplink with 4 cards on my server so a solution for bonding mode is given but with multilink i cant find anyone :( i configured my multilink like this tutourial: http://wiki.ubuntuusers.de/Multiple_Uplink_Routing
Is anyone here who can help me with the inferfaces file to bring up the virtuall machines to the Internet?
Thanks in advance
i think the easiest solution would be to use a virtualized firewall such as pfsense and setup MultiWAN. That way any VMs can use multi uplink internet without any configuration.
 
Hi symmcom,

i have never used pfsense and MultiWAN so first i try to search a solution over the interfaces file and the multilink script.
Here are my interfaces and multilink.sh

auto lo
iface lo inet loopback

#Uplink1
auto eth0
iface eth0 inet static
address PublicIPadress
netmask 255.255.255.0
network 109.201.134.0
broadcast 109.201.134.255

#Uplink2
auto eth1
iface eth1 inet static
address PublicIPadress
netmask 255.255.255.0
network 109.201.134.0
broadcast 109.201.134.255

#Uplink3
auto eth2
iface eth2 inet static
address PublicIPadress
netmask 255.255.255.0
network 109.201.134.0
broadcast 109.201.134.255

#Uplink4
auto eth3
iface eth3 inet static
address PublicIPadress
netmask 255.255.255.0
network 109.201.134.0
broadcast 109.201.134.255

auto vmbr0
iface vmbr0 inet static
address 10.1.1.254
netmask 255.255.255.0
bridge_ports none
bridge_stp off

#!/bin/bash

# create rule for eth0
ip rule add from PublicIPadress lookup Nic1
ip rule add to PublicIPadress lookup Nic1

# create rule for eth1
ip rule add from PublicIPadress lookup Nic2
ip rule add to PublicIPadress lookup Nic2

# create rule for eth2
ip rule add from PublicIPadress lookup Nic3
ip rule add to PublicIPadress lookup Nic3

# create rule for eth3
ip rule add from PublicIPadress lookup Nic4
ip rule add to PublicIPadress lookup Nic4

# add instructions for eth0
ip route flush table Nic1
ip route add PublicIPadress dev eth0 scope link table Nic1
ip route add 109.201.134.0/24 dev eth0 proto kernel scope link src PublicIPadress table Nic1
ip route add default via 109.201.134.254 dev eth0 table Nic1

# add instructions for eth1
ip route flush table Nic2
ip route add PublicIPadress dev eth1 scope link table Nic2
ip route add 109.201.134.0/24 dev eth1 proto kernel scope link src PublicIPadress table Nic2
ip route add default via 109.201.134.254 dev eth1 table Nic2

# add instructions for eth2
ip route flush table Nic3
ip route add PublicIPadress dev eth2 scope link table Nic3
ip route add 109.201.134.0/24 dev eth2 proto kernel scope link src PublicIPadress table Nic3
ip route add default via 109.201.134.254 dev eth2 table Nic3

# add instructions for eth3
ip route flush table Nic4
ip route add PublicIPadress dev eth3 scope link table Nic4
ip route add 109.201.134.0/24 dev eth3 proto kernel scope link src PublicIPadress table Nic4
ip route add default via 109.201.134.254 dev eth3 table Nic4

/bin/ip route replace default scope global \
nexthop via 109.201.134.254 dev eth0 weight 1 \
nexthop via 109.201.134.254 dev eth1 weight 1 \
nexthop via 109.201.134.254 dev eth2 weight 1 \
nexthop via 109.201.134.254 dev eth3 weight 1

hope anyone can help me out thanks
 
Last edited: