Outils pour utilisateurs

Outils du site


linux:proxmox8 (lu 12552 fois)

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
linux:proxmox8 [24-06-2024 16:13]
edmc73
linux:proxmox8 [28-02-2025 22:52] (Version actuelle)
edmc73 [Créer un sous réseau local]
Ligne 151: Ligne 151:
   Gateway (IPv4) : (vide)   Gateway (IPv4) : (vide)
   Bridge ports: (vide)   Bridge ports: (vide)
- +
   cat /proc/sys/net/ipv4/ip_forward   cat /proc/sys/net/ipv4/ip_forward
   echo 1 > /proc/sys/net/ipv4/ip_forward   echo 1 > /proc/sys/net/ipv4/ip_forward
   iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o vmbr0 -j MASQUERADE   iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o vmbr0 -j MASQUERADE
  
 +Commandes utiles
 +  ip a
 +  ip route
 +  ping -I vmbr0 google.fr
 +  ping -I vmbr1 google.fr
 +  ifup vmbr1
 +  ip a show dev vmbr1
 +
 +Config réseau d'une VM
 +<code>
 +# The loopback network interface
 +auto lo
 +iface lo inet loopback
 +
 +# The primary network interface
 +allow-hotplug ens18
 +iface ens18 inet static
 +    address 192.168.0.10/24
 +    gateway 192.168.0.1
 +    # dns-* options are implemented by the resolvconf package, if installed
 +    dns-nameservers 213.186.33.99
 +    dns-search edmc.local
 +</code>
  
linux/proxmox8.1719238425.txt.gz · Dernière modification: 24-06-2024 16:13 de edmc73