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

  • I have been using racksrv servers for gaming and the network is amazing, I have had no problems no downtime and the support has been second to none!

    Jamie
  • Fantastic support, even when issues aren't directly associated with RackSRV. Highly recommended!

    Dominic - LEDChoice Ltd
  • 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
  • Being a customer at RackSRV has always been easy, they are helpful and I have no complaints. Only in the beginning of my time as a customer was there some rare downtime, but RackSRV has just got better and better with time. The staff seem pro at what they do, last year there has not had any downtime that I've noti...

    Tore
  • An excellent all-round service provider. Good communication, fast response and great value for money hosting. Highly recommended.

    Michael
  • Racksrv provided exactly what I needed, at an extremely reasonable price. Their service was always fast and helpful, and I can safely say that if I ever need hosting again in the future, Racksrv will be my first stop.

    Scott
  • I have used RackSRV for around two years now for colocation and the service has been fantastic. The network is incredibly fast and reliable, any planned maintenance has always been announced well before it is carried out. The level of customer service Jon and his team provide is also faultless and they are often exceed...

    Chris - The Hosting Heroes Ltd
0