Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up. Connect and share knowledge within a single location that is structured and easy to search. I'll start out by saying networking isn't my strong suit, I'm trying to configure a few sub-interfaces so that some code I am working will have more sockets to locally bind to. So far i've done the following, I can locally bind to my sub interface You can abbreviate the ip commands: ip address add can be shortened all the way down to ip a a , and ip address show can be shortened to ip a s. Firstly, sockets aren't actually bound to an interface -- they're bound to an IP address. Secondly, if you want these addresses to be routable on the local network you need to use addresses on that network i. To add additional address, use the following command:. You shouldn't require any additional routing configuration since the addresses are on an existing subnet.
Finding your network interface
You can configure your network client hosts with the command line by using commands to change your current settings or by editing a number of system files. This has several advantages over network managers in the GUI. This guide had been developed for Ubuntu and Debian, other distributions can use a similar setup, but be aware that file locations may differ.
Use Cases Here are some of the things that you can do with multiple IP addresses:. Inspect the limits with care if you plan to use lots of interfaces or IP addresses and expect to switch between different instance sizes from time to time. When you launch an instance or create an interface, a private IP address is created at the same time. You can also allocate Elastic IP addresses and associate them with the primary or secondary IP addresses of an interface. In addition to moving interfaces to other instances, you can also move secondary private IP addresses between interfaces or instances. In order to make use of multiple interfaces and IP addresses, you will need to configure your operating system accordingly. We are planning to publish additional documentation and some scripts to show you how to do this. Code and scripts running on your instance can consult the EC2 instance metadata to ascertain the current ENI and IP address configuration.
IP aliasing is a special network configuration for your OVHcloud dedicated servers, which allows you to associate multiple IP addresses with a single network interface. This guide explains how to add failover IP addresses to your network configuration. OVHcloud is providing you with services for which you are responsible, with regard to their configuration and management.