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 a wonderful hosting company, The network is very good and i've never had any issues. Whenever i needed support my tickets were always answered quickly and professionally.

    Iain - Apocalypse Prevention Team
  • Very happy with service, just no longer a requirement for the server. will definitely be looking again should our needs change.

    Jason - TFLI 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
  • Absolutely brilliant service, what brought me to racksrv in the first place was the speed at which they replied to my emails, and the support has continued to be superb. Jon has always been great, and particular thanks to Liam for helping me sort my most recent issue.

    Tom - Thplabs
  • We have been a customer with RackSRV for many years. They are very responsive to queries and are always willing to help us. Even when it involves after hours service! Solids servers and solid support.

    Adrian
  • I just thought I would take a moment to congratulate Jon and the team on such a good service. I cannot compare RackSrv to a previous vendor as this is the first time I have embarked on such a project requiring a dedicated server. Having said that, because I am new to it, a couple of issues caught me out through lack...

    Philip - Metrotech Data Systems Ltd
  • 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