One NIC and two public IP adress

nexioh

New Member
Oct 22, 2018
2
0
1
25
Dear all,

I've been struggling with setting up my server for a few days now.
Here is my situation:
I have a server with one network interface.
I have a public IP x.x.x.3 and i ordered another public ip wich is x.x.x.21
What I'm trying to do is to setup two subnets, one for each public IP.
I've reached the point where i can ping my second public ip adress (x.x.x.21) from my computer at home but it's impossible to ping the internet with this ip (using the command: ping -I vmbr0 google.fr)

I dont have any idea on how to set it up to make it work, I hope you can help me.

Thanks in advance !
 
Last edited:
Hi,

can you send your network config?
 
Hello, here it is !

Code:
### Hetzner Online GmbH installimage

source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback
iface lo inet6 loopback

auto enp3s0
iface enp3s0 inet static
  address xx.xx.xx.3
  netmask 255.255.255.224
  gateway x.xx.x.1
  # route xx.xx.xx.0/27 via xx.xx.xx.1
  up route add -net xx.xx.xx.0 netmask 255.255.255.224 gw xx.xx.xx.1 dev enp3s0

auto vmbr0
iface vmbr0 inet static
address xx.xx.xx.21
netmask 255.255.255.224
    bridge_ports none
    bridge_stp off
    bridge_fd 0
    bridge_maxwait 0
    pre-up brctl addbr vmbr0
    up ip route add 192.168.1.20/24 dev vmbr0
Thanks in advance for your help
 
Last edited:

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!