Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente | |||
linux:proxmox8 [24-06-2024 16:14] edmc73 [Créer un sous réseau local] |
linux:proxmox8 [28-02-2025 22:52] (Version actuelle) edmc73 [Créer un sous réseau local] |
||
---|---|---|---|
Ligne 156: | Ligne 156: | ||
iptables -t nat -A POSTROUTING -s 192.168.0.0/ | iptables -t nat -A POSTROUTING -s 192.168.0.0/ | ||
+ | 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 | ||
+ | < | ||
+ | # 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/ | ||
+ | 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 | ||
+ | </ | ||