Proxmox: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
KKeine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 19: | Zeile 19: | ||
option routers vmhost.proxmox.lx; | option routers vmhost.proxmox.lx; | ||
} | } | ||
</pre> | |||
= Netzwerk im pve (mit NAT) = | |||
/etc/network/interfaces: | |||
<pre>auto lo | |||
iface lo inet loopback | |||
auto eth0 | |||
iface eth0 inet static | |||
address 192.168.2.64 | |||
netmask 255.255.255.0 | |||
gateway 192.168.2.3 | |||
post-up echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp | |||
auto vmbr0 | |||
iface vmbr0 inet static | |||
address 10.10.10.1 | |||
netmask 255.255.255.0 | |||
bridge_ports none | |||
bridge_stp off | |||
bridge_fd 0 | |||
post-up echo 1 > /proc/sys/net/ipv4/ip_forward | |||
post-up iptables -t nat -A POSTROUTING -s '10.10.10.0/24' -o eth0 -j MASQUERADE | |||
post-down iptables -t nat -D POSTROUTING -s '10.10.10.0/24' -o eth0 -j MASQUERADE | |||
</pre> | </pre> | ||
Version vom 14. Mai 2017, 22:02 Uhr
Kategorie:ServerApplikation
- Installation auf Debian Jessie
- Web-Interface: promox:8006
- Zugriff auf Clients: spice-client-gtk
- Konfiguration für Verzeichnisse: /etc/pve/storage.cfg
- Iso-Platz: /var/lib/vz/template/iso
DHCP-Server einrichten
apt-get install isc-dhcp-server perl -pi -e 's/INTERFACES=.*/INTERFACES="vmbr0"/' /etc/default/isc-dhcp-server vi /etc/dhcp/dhcpd.conf
option domain-name "proxmox.lx";
option domain-name-servers 8.8.8.8;
subnet 10.10.10.0 netmask 255.255.255.0 {
range 10.10.10.1 10.10.10.250;
option routers vmhost.proxmox.lx;
}
Netzwerk im pve (mit NAT)
/etc/network/interfaces:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.2.64
netmask 255.255.255.0
gateway 192.168.2.3
post-up echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp
auto vmbr0
iface vmbr0 inet static
address 10.10.10.1
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '10.10.10.0/24' -o eth0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.10.10.0/24' -o eth0 -j MASQUERADE