Multiple public IP. Linux Bridge. Stops works

akelsey

New Member
Mar 25, 2020
2
0
1
44
Hello community,

I need your help with my possible easy case (maybe not).
I bought dedicated server with multiple IP (20 IPv4), they are assigned on eth0.
Distributive Debian 10:
I provide example for only one address, default config was:
Bash:
# The loopback network interface

auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
auto eth0
iface eth0 inet static
        address xx.yyy.162.143/23
        gateway xx.yyy.162.1
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 1.1.1.1
        dns-search mydomain.com
        
auto eth0:1
allow-hotplug eth0:1
iface eth0:1 inet static
  address xx.yyy.163.84
  netmask 255.255.255.255

after i changed it to:

Bash:
# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
auto eth0
iface eth0 inet static
        address xx.yyy.162.143/23
        gateway xx.yyy.162.1
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 1.1.1.1
        dns-search mydomain.com

auto vmbr1084
iface vmbr1084  inet static
 address xx.yyy.162.143
 netmask 255.255.254.0
 bridge-ports none
 bridge-stp off
 bridge-fd 0
 bridge_maxwait 0
 up ip route add xx.yyy.163.84/32 dev vmbr1084
 down ip route delete xx.yyy.163.84/32 dev vmbr1084
#Ext-84 [xx.yyy.163.84]

So inside VM i configured it as
IP: xx.yyy.163.84
NET: 255.255.255.255
GW: xx.yyy.162.143

So it works for 4 hours (sometime 1 hour) and then all stops.
I have no idea in which direction to dig - i believe something wrong with ARP but my knowledge in linux networking is not enough.
Please advise.

Thank you,
BR Aleksey.
 
Create the bridge on the eth0 interface. Give the bridge the IP settings of eth0. Add the interface of the VM to that bridge. And then configure the second IP inside the VM.

You will need to check with your provider, if they want MAC addresses registered first.
 
  • Like
Reactions: akelsey
Create the bridge on the eth0 interface. Give the bridge the IP settings of eth0. Add the interface of the VM to that bridge. And then configure the second IP inside the VM.

You will need to check with your provider, if they want MAC addresses registered first.

Thank you for help,
I did that some days ago, it works.
But i would like to mark your answer as reply.
One question - does proxmox has explanation how it works? I mean network part. Maybe you could say me keywords of such type of connection - i will google it.
 
One question - does proxmox has explanation how it works? I mean network part. Maybe you could say me keywords of such type of connection - i will google it.
The bridge, is just a simple switch build-in into Linux. Besides that, it is general networking.
 
  • Like
Reactions: akelsey

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!