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

  • Great service provided by RackSRV, I have been with them for about 2 years now, but I have no worries whatsoever as I know my Server is in safe hands with Jon - he's been most helpful this last week. Great job RackSRV!

    Robert - Aura-Clan
  • Using RackSRV has been a pleasure due to fast response times when I need help along with super fast services - I can highly recommend.

    Michael - Create All Media
  • 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
  • Great service, absolutely no downtime, recommended to anyone looking for a cheap but reliable server!

    Sarmad
  • 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
  • Knowledgeable staff who respond quickly to tickets combined with a keen price point make using Racksrv has been a pleasure.

    Manuel - Regdotter
  • Having hosted my social networking site with several other hosting companies in the past and having experienced varying levels of service and support I must say that the support and service I have received from Jon and Lee at Racksrv is undoubtedly the best by far. My site's requirements are very specific, running on ...

    Mark - Phenomenon Communications Ltd
0