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

  • RackSRV is truly a quality co-location provider. Nothing is too much trouble for Jon, and the main co-location site is well-connected with multi-gigabit diverse routed links to the London PoPs. But, most importantly, the level of communication when issues arise is the best I have ever experienced in this industry. C...

    Mike - PPMI Consultants
  • I cant recommend RackSRV highly enough! Overall, support is definitely one of RackSRV's many strong points, if you were to single out any one in particular, and this really defined the service for us. Looking forward to renewing our service in future.

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

    Rohan - DediShack
  • I'm extremely satisfied with RackSrv. Network and uptime are excellent and the support is second to none. Choosing to work with RackSrv has been one of the best, most profitable business decisions my company has made. In short, we would like to applaud you for being one of the few companies we truly enjoy working with....

    Apostolos
  • I would highly recommend the services of RackSRV to anyone looking to rent a server overseas. Not only was the customer support and service great and enjoyable but it was also for an affordable price. Keep it up!

    William
  • We've used RackSRV for some time and have always been impressed with the level of service. They're always willing to go the extra mile - there always seems to be someone available to help us out, regardless of the time of day. I strongly recommend them to anyone looking for a reliable hosting provider!

    Iain - Piquant Technologies
  • I've used a few hosting companies prior to racksrv. I've been with them now for many years. The service, help and reliability is amazing I can truly recommend this company. They value you as their customer and treat you like a friend.

    Martin
0