Select Page

Unable to add multiple IP addresses in Proxmox LXC containers? Here’s how to fix it

Unable to add multiple IP addresses in Proxmox LXC containers? Here’s how to fix it

By default, when an LXC container is created in Proxmox, it is assigned a single static IP to access it. Many a times, users require additional IPs in their containers.

Multiple IP addresses are required in cases such as multi-site WordPress hosting, multiple websites with SSL, high availability fail-over setup for services, network appliances like load balancer, etc.

But there may be situations when the IP is not listed when users try to add it or the added IP address does not show up in the container.

Why adding secondary IP addresses to Proxmox LXC containers fails?

Adding additional IP addresses can fail if you do not have additional IP addresses available in the server at all. It could be possible that that IP address is not allotted to your server.

The IP address, if not bound correctly to the network interface, will not list in the Proxmox machine. In such cases, its important to check the IP routing and bind it to the proper interface.

Another reason why the IP addition fails is the wrong configuration or parameters chosen while adding the IP. Today we’ll see how to add a second IP address to Proxmox container.

How to add multiple IP addresses in Proxmox LXC container

It is possible to add multiple IPs to an LXC container from the Proxmox VE management interface.

1. Add extra IP address to the server

To add an IP, first make sure that extra IP address is available in the Proxmox machine.

2. Assign the additional IP address to the container

Once a free IP is available in the server, it can be added to the LXC container. Click on the container -> Network -> Add option to add a new network.

Enter the details such as ID, Name, IP address information as shown and ‘Add’ the IP address. The static IP we have added here is 172.17.4.45.

 

Add a second IP to the LXC container in Proxmox

Add a second IP to the LXC container in Proxmox

 

On successfully adding the second IP address, it will be listed in the ‘Network’ tab of the LXC container:

 

Second IP listed for LXC container in Proxmox

Second IP listed for LXC container in Proxmox


Get a FREE consultation

Do you spend all day answering technical support queries?

Wish you had more time to focus on your business? Let us help you.

We free up your time by taking care of your customers and servers. Our engineers monitor your servers 24/7, and support your customers over help desk, live chat and phone.

Talk to our technical support specialist today to know how we can keep your service top notch!

TALK TO AN EXPERT NOW!




Bobcares provides Outsourced Hosting Support for online businesses. Our services include Outsourced Web Hosting Support, Outsourced Server Support, Outsourced Help Desk Support, Outsource Live Chat Support and Phone Support Services.

Submit a Comment

Your email address will not be published. Required fields are marked *

Bobcares
Bobcares is a server management company that helps businesses deliver uninterrupted and secure online services. Our engineers manage close to 51,500 servers that include virtualized servers, cloud infrastructure, physical server clusters, and more.
MORE ABOUT BOBCARES