LXC No Route for additional IPv4's

Speedy059

Renowned Member
Jul 3, 2010
13
1
68
I'm having a weird issue with LXC's. When I add 1 IPv4, the address works, but any additional interfaces with more IP's does not work.

Here is the config:
net0: name=eth0,bridge=vmbr0,firewall=1,gw=74.221.221.1,hwaddr=F2:0E:C0:1C:FF:17,ip=74.221.221.249/24,rate=100,tag=410,type=veth
net1: name=eth1,bridge=vmbr0,gw=74.221.221.1,hwaddr=5E:F1:41:8C:0B:9A,ip=74.221.221.242/24,rate=100,tag=410,type=veth
net2: name=eth2,bridge=vmbr0,gw=74.221.221.1,hwaddr=BE:40:F7:AA:1E:FE,ip=74.221.221.241/24,rate=100,tag=410,type=veth
net3: name=eth3,bridge=vmbr0,gw=74.221.221.1,hwaddr=CA:38:D7:5E:B4:E5,ip=74.221.221.240/24,rate=100,tag=410,type=veth

As you can see, they all have the same gateway IP. The only IPv4 that works is 74.221.221.249 and the others don't work. How do you fix this so all the IPv4's are accessible?
 
Hey,

did you have a DHCP server assign those IPs or are they statically configured? Could you post the output of ip -a.
 
The only IPv4 that works is 74.221.221.249 and the others don't work. How do you fix this so all the IPv4's are accessible?
the one that works has the firewall=1 option set. maybe you need to enable the firewall for the other interfaces as well.
 

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!