Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

IP host e guest

6 views
Skip to first unread message

Stefano L.

unread,
Oct 8, 2019, 9:00:57 AM10/8/19
to
Scusate, riprovo qui


Ho acquistato un server dedicato in un datacenter con un indirizzo ip
pubblico aggiuntivo che vorrei assegnare ad una macchina virtuale.

Il S.O. è Linux Debian e la virtualizzazione è fatta con QEMU/KVM

Mi hanno assegnato i seguenti indirizzi IP (che non appartengono alla
stessa sottorete):


L'ip primario é:

94.x.x.23 mask 255.255.255.0 e gateway 94.x.x.1
e con questo raggiungo l'host.

Per l'indirizzo aggiuntivo mi dicono i seguenti dati

92.y.y.32 mask 255.255.255.255 e gateway 94.x.x.23
che mi sembrano assurdi

Comunque se li configuro come indirizzo aggiuntivo,
nel modo seguente, alla sk. di rete funzionano,
cioè raggiungo il server anche con l'ip 92.y.y.32

/etc/network/interfaces
auto eno1
iface eno1 inet static
address 94.x.x.23
netmask 255.255.255.0
gateway 94.x.x.1

auto eno1:0
iface eno1:0 inet static
address 92.y.y.32
netmask 255.255.255.255

Ma come posso assegnare l'ip 92.y.y.32 ad un guest ?

Pensavo di configurare la rete sull'host così:

auto eno1
iface eno1 inet manual

auto br1
iface br1 inet
static
bridge_ports eno1
bridge_maxwait 0
bridge_fd 1
bridge_stp off
address 94.x.x.23
netmask 255.255.255.0
gateway 94.x.x.1

auto br1:2
iface br1:2 inet manual
bridge_maxwait 0
bridge_fd 1
bridge_stp off

ed assegnare gr1:2 al guest, ma sul guest non posso
configurare:

address 92.y.y.32
netmask 255.255.255.255
gateway 94.x.x.23

perchè oltre a essere assurdo, non funziona !

Qualche idea ?

--
Stefano L.

0 new messages