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

  • Like many I had been buying servers from American companies with poor customer support under the illusion that you just can't get a decent server for a decent price in the UK. Racksrv disproved that myth for me. Their offer of a powerful server based in the UK, generous transfer allowances, and awesome customer supp...

    James
  • Your service has been great during the time I have been with you, therefore I wish your company all the best and success for the future.

    Chee - Code Infinity
  • Service is awesome, lovely bandwidth, nice tidy racks! Support is top notch; Jon is extremely efficient in fixing problems rapidly.

    Rohan - DediShack
  • I trialled the service for a future project and I'm very satisfied. I will be back in the near future for sure!

    Pierluigi - Computer's Home
  • Fantastic support, even when issues aren't directly associated with RackSRV. Highly recommended!

    Dominic - LEDChoice Ltd
  • I have only been with RackSRV for 8 months but they have provided a great service for me, the best I have experienced and I hope to stay with RackSRV for as long as possible!

    Mark - FoxesTalk
  • 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
0