Need help?

Our experts have had an average response time of 13.14 minutes in February 2024 to fix urgent issues.

We will keep your servers stable, secure, and fast at all times for one fixed price.

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

by | Sep 1, 2016

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

3. Verify the functionality of the additional IP addresses

On accessing the LXC container via Console, you can see both the IP addresses listed in it using the command ‘ifconfig’.

 

Two IPs listed in the LXC container in Proxmox

Two IPs listed in the LXC container in Proxmox

 

Accessing the container via the new IP address can confirm it is working fine. This additional IP address can be allocated to the services such as web, mail, SSL, etc.

In short..

Today we’ve discussed how to add additional IP addresses to LXC containers in Proxmox. Though its a simple process, care should be exercised in adding IPs.

Assigning the IP to the correct interface is an important point. Here we saw how to add static IPv4 addresses. To add IPv6 address, a few more settings have to be done in the server.

There may be situations where the data center has not assigned the IP correctly or the system engineers have not configured it properly in the server.

In such cases, identifying the problem and making the additional IPs available, is important. If you’d like to know how to do it for your servers, we’d be happy to talk to you.

 

 

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.

0 Comments

Submit a Comment

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

Categories

Tags

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF