Most guide to adding multiple IP addresses on Linux starts with the Microsoft-like solution of using ifconfig. La maggior parte guida per l'aggiunta di più indirizzi IP su Linux inizia con la Microsoft-come soluzione di usare ifconfig. While the solution is correct it doesn’t survive a reboot or even a network restart. Mentre la soluzione è corretta non sopravvivere un riavvio o anche una rete di riavviare. Here’s how you can easily and permanently add multiple IP addresses to the same (or different) network interface on your Linux machine. Ecco come si può facilmente e permanentemente aggiungere più indirizzi IP per lo stesso (o diverso) interfaccia di rete sulla vostra macchina Linux. I just successfully configured dozens of IP addresses on our new dedicated server using this method. Ho appena configurata correttamente decine di indirizzi IP sul nostro nuovo server dedicato con questo metodo. First I will explain how you can add using the Fedora user interface and then from the Linux command line. In primo luogo vi spiegherò come è possibile aggiungere utilizzando l'interfaccia utente di Fedora Core e poi dalla riga di comando di Linux.


How to set multiple IP addresses using the Fedora user interface Come impostare più indirizzi IP utilizzando l'interfaccia utente di Fedora Core

Linux supports multiple IP adresses on the same network interface. Linux supporta più indirizzi IP sulla stessa interfaccia di rete. Adding multiple IP addresses from the user interface in Fedora is simple. Aggiunta di più indirizzi IP da l'interfaccia utente in Fedora è semplice.
1. Select menu item System->Administration->Network. Selezionare dal menù Sistema-> Amministrazione-> Rete.
2. Click on New to add a new IP address Fare clic su Nuovo per aggiungere un nuovo indirizzo IP
3. Select Ethernet connection Seleziona connessione Ethernet
4. Select the Ethernet card (in my case it is Intel Corp 82566DC Gigabit Network Connection) Selezionare la scheda Ethernet (nel mio caso è Intel Corp 82566DC connessione di rete Gigabit)
5. Specify your chosen IP address Specificare il tuo indirizzo IP scelto
6. Specify subnet mask (if in doubt use 255.255.255.0; better yet ask your system admin) Specifica la subnet mask (in caso di dubbio uso 255.255.255.0; meglio ancora chiedete al vostro amministratore di sistema)
7. Specify your gateway, if you have one configured Specificare il gateway, se si dispone di uno configurato
8. Click Next and then click on Apply. Fare clic su Avanti e quindi fare clic su Applica.

Repeat the procedure for all your IP addresses. Ripetere la procedura per tutti i vostri indirizzi IP.

Restart the network: Riavviare la rete:
/sbin/service network restart / sbin / service rete riavviare

You are done! Avete finito!

How to set multiple IP addresses using Linux command line Come impostare più indirizzi IP usando Linux riga di comando

Go to /etc/sysconfig/network-scripts Vai a / etc / sysconfig / network-scripts
Make multiple copies of ifcfg-eth0 and name them as ifcfg-eth0:0, ifcfg-eth0:1 etc. Rendere più copie di ifcfg-eth0 e come nome ifcfg-eth0: 0, ifcfg-eth0: 1 ecc
Open each of them and at least change the IPADDR to your chosen IP address and the NETMASK to the subnet mask for that IP address. Apri ciascuna di esse e almeno cambiare la IPADDR scelto per il tuo indirizzo IP e la netmask per la subnet mask per tale indirizzo IP.
A sample entry would look like this: Un esempio l'ingresso del tipo:

DEVICE=eth0:0 DEVICE = eth0: 0
BOOTPROTO=static BOOTPROTO = static
IPADDR=34.123.111.21 IPADDR = 34.123.111.21
NETMASK=255.255.255.0 NETMASK = 255.255.255.0
ONBOOT=yes ONBOOT = yes

Restart the network: Riavviare la rete:
/sbin/service network restart / sbin / service rete riavviare

You are done! Avete finito!