Lo sapevi?

La nostra rete è interamente "Layer 3 to the edge" al fine di garantire la massima affidabilità e scalabilità!

Configurazione della rete per ServerEasy con Debian o Ubuntu

Estimated reading: 1 minute 74 views

Questa guida ti spiega come configurare la rete sul tuo server ServerEasy usando Debian o Ubuntu. La configurazione include sia IPv4 che IPv6.

Configurazione dell'indirizzo IPv4 principale

In ServerEasy, il tuo indirizzo IPv4 principale è parte di una rete più grande, ma deve essere configurato in modalità point-to-point per garantire che il traffico passi correttamente attraverso il gateway.

Aggiunta delle impostazioni IPv4

Usa il file /etc/network/interfaces per configurare la rete IPv4:

1) Apri il file di configurazione

				
					sudo nano /etc/network/interfaces

				
			

2) Inserire queste righe

Sostituisci 185.25.0.250 con il tuo indirizzo IPv4 e 185.25.204.1 con l’IP del gateway che ti ha fornito ServerEasy.

				
					# Interfaccia di loopback
auto lo
iface lo inet loopback

# Configurazione IPv4
auto eth0
iface eth0 inet static
  address 185.25.0.250
  netmask 255.255.255.255
  gateway 185.25.204.1
  pointopoint 185.25.204.1

				
			

3) Salva e chiudi il file

Premi Ctrl + X, Y, poi Invio per salvare.

4) Riavvia la rete

				
					sudo systemctl restart networking


				
			


Metodo tramite NetPlan

When using netplan this is done via the on-link keyword in the configuration:

				
					network:
  version: 2
  renderer: networkd
  ethernets:
    eth0:
      addresses:
      - 185.25.0.250/32
      routes:
      - to: 0.0.0.0/0
        via: 185.25.204.1
        on-link: true

				
			

Leave a Comment

Share this Doc

Configurazione della rete per ServerEasy con Debian o Ubuntu

Or copy link

CONTENTS