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
  • Customer service provided by RackSRV was excellent. Fast response to tickets and providing assistance where possible. Along with this pricing at RackSRV was very competitive even at high end upgrades. Overall a great company and would defiantly recommend to others looking for a UK dedicated server.

    Joe - CityCraft
  • What can I say...? Almost 2 years with RackSRV and no problems at all. Support is very fast and server uptime was 100% - perfect! Thanks to Jon and all the RACKSRV staff!

    Guillaume - >Xtra-Gamers<
  • Switched host to RackSRV several months back. Very happy with the hosting. Great hardware, great network and excellent service. What more could you ask for?

    Jeff - Mint-Clan
  • Great service super impressed with your infrastructure. I really loved your server I but I did not get enough traffic to my site to justify keeping it. You guys rock. I will be back when I have more servers needed.

    Eduardo
  • The support service (especially out-of-hours) that you personally, and your team have provided has been of a very high standard, so I'm a little sorry to be leaving. Will definitely consider your services again in the future.

    Alex - Translation Business Systems International (UK) Limited
  • Jon provides a very professional service and is always on hand to help out with any issues or questions I have. I've never had any complaints over the last 3 years using this service and the response time for any queries is excellent. I'd recommend this service to anyone looking to host a server with a pr...

    Paul
0