auto lo
iface lo inet loopback
auto eth0
#real IP adress
iface eth0 inet static
address 192.168.1.252
netmask 255.255.255.0
gateway 192.168.1.254
auto vmbr0
#private sub network
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
other
auto lo
iface lo inet loopback
auto vmbr0
iface vmbr0 inet static
address 192.168.1.253
netmask 255.255.255.0
bridge_ports eth0
bridge_stp off
bridge_fd 0
auto eth1
iface eth1 inet static
address 192.168.1.1
netmask 255.255.255.0
gateway 192.168.1.254
auto vmbr1
iface vmbr1 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 eth1 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.10.10.0/24' -o eth1 -j MASQUERADE
Suscribirse a:
Entradas (Atom)
Instalar systemd y systemd-sysv
Instalar systemd y s ystemd-sysv Debian $apt-get update $apt-get upgrade $apt-get install systemd $apt-get install systemd-sysv Este...
-
vim /etc/sysconfig/network hostname= nombre vim /etc/hosts 127.0.0.1 Nombre hostname nombre service nertworking restart
-
https://doc.owncloud.org/server/9.0/admin_manual/installation/php_55_installation.html#centos-7-upgrade-to-php-5-5 RHEL 7 Upgrade to P...
-
Instalar systemd y s ystemd-sysv Debian $apt-get update $apt-get upgrade $apt-get install systemd $apt-get install systemd-sysv Este...