Enter promo code HALFMANAGED at checkout for 50% off your first month’s bill on any managed service!
50% off managed hosting with code HALFMANAGED

Need help? We may have the answer for you already!

Binding multiple IPs to one interface in Debian/Ubuntu

Important Notes:

1.) Before making any changes to your network configuration, please make sure you obtain any relevant information such as Gateway, Subnet and allocated IP Block details to ensure no mistakes are made!
2.) Make a backup of your existing configuration in case you need to fall back to this at a later stage: sudo cp /etc/network/interfaces /etc/network/interfaces_backup


Now edit it’s time to edit your configuration: sudo vi /etc/network/interfaces

We’re only interested in updating the “eth” part of the configuration so ignore the loopback section if present.

Rearrange your existing configuration to look as follows (feel free to remove the broadcast and network entries):

auto eth0

iface eth0 inet static
address 192.168.1.1
netmask 255.255.255.0
gateway 192.168.1.254


Now add your new entries so the finish configuration looks like:

auto eth0
auto eth0:0
auto eth0:1

iface eth0 inet static
address 192.168.1.1
netmask 255.255.255.0
gateway 192.168.1.254

iface eth0:0 inet static
address 192.168.1.2
netmask 255.255.255.0
gateway 192.168.1.254

iface eth0:1 inet static
address 192.168.1.3
netmask 255.255.255.0
gateway 192.168.1.254


You should be able to see a pattern emerging, keep adding new entries as necessary!

Once you have finished adding your IPs you can save and close the file and finally, for the new changes to take effect, issue: /etc/init.d/networking restart

News @ RackSRV

Customer Feedback

  • For a few months I used the services of Racksrv I was fully satisfied that: - Good cost / quality servers - Quick commissioning - Good online support, quick reactivity If I can think it Racksrv can build it ... ;-) Thanks for your excellent service, keep it up!

    Jean-Marc - Eden Voice
  • Have dealt with Racksrv for years, great company, great support, quick answers, will be with them for many more I hope

    Nick - Sort It.biz Limited
  • I have had no problems with the service and i will be ordering from you in the future. At this time i need to consolidate the number of servers i have to keep costs down. Thank You for all your help and assistance.

    Stuart - Star Web Hosting Limited
  • Thanks for the last 6 years. If I need hosting in the future I will be sure to check out what you're offering.

    Daniel - Rose Computer Services
  • I have a managed server with Racksrv and I have to say their customer service and response times are exceptional. They are extremely helpful with any issues I have had and usually get back to me within 5 minutes. I can't recommend them highly enough!

    Erica - World Goods Distribution Ltd
  • Racksrv provides us with high quality servers and support which run mission critical solutions. Support is professional and quick to respond!

    Yitzi - Teguva Marketing 2009 Ltd
  • I have been totally satisfied with the service by RackSrv. The only reason I had to cancel my account was because I didn't need a dedicated server anymore. Thumbs up for the great support and their reliable servers!

    Stephan
0