1
Server / Configurazione rete per vm
« il: 19 Agosto 2011, 08:38:11 »
Cia a tutti sto inpazzendo in questo periodo a usare Centos "non ne sono molto pratico sinceramente, utilizzo meglio Debian" dovrei configurare la rete in questo modo, in debian funziona tutto ma in centos è un po diverso mi date un aiuto, questa e la configurazione della rete in debian:
# Loopback device:
auto lo
iface lo inet loopback
# device: eth0
auto eth0
iface eth0 inet static
address 176.99.99.68
broadcast 176.99.99.95
netmask 255.255.255.224
gateway 176.99.99.65
pointopoint 176.99.99.65
post-up echo 1 > /proc/sys/net/ipv6/conf/eth0/proxy_ndp
post-up echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
auto vmbr0
iface vmbr0 inet static
address 176.99.99.68
netmask 255.255.255.255
broadcast 176.99.99.95
bridge_stp off
bridge_fd 0
bridge_ports none
up ip route add 176.99.99.90/32 dev vmbr0
up ip route add 176.99.99.91/32 dev vmbr0
up ip route add 176.99.99.92/32 dev vmbr0
up ip route add 176.99.99.93/32 dev vmbr0
auto vmbr1
iface vmbr1 inet static
address 78.99.99.183 "subnet"
netmask 255.255.255.0
bridge_stp off
bridge_fd 0
bridge_ports none
post-up iptables -t nat -A POSTROUTING -s '78.99.0.0/24' -o eth0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '78.99.0.0/24' -o eth0 -j MASQUERADE
dovrei in pratica dare le stesse inpostazini a Centos per la sua rete non non capisco. Mi date una dritta grazie a tutti..
# Loopback device:
auto lo
iface lo inet loopback
# device: eth0
auto eth0
iface eth0 inet static
address 176.99.99.68
broadcast 176.99.99.95
netmask 255.255.255.224
gateway 176.99.99.65
pointopoint 176.99.99.65
post-up echo 1 > /proc/sys/net/ipv6/conf/eth0/proxy_ndp
post-up echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
auto vmbr0
iface vmbr0 inet static
address 176.99.99.68
netmask 255.255.255.255
broadcast 176.99.99.95
bridge_stp off
bridge_fd 0
bridge_ports none
up ip route add 176.99.99.90/32 dev vmbr0
up ip route add 176.99.99.91/32 dev vmbr0
up ip route add 176.99.99.92/32 dev vmbr0
up ip route add 176.99.99.93/32 dev vmbr0
auto vmbr1
iface vmbr1 inet static
address 78.99.99.183 "subnet"
netmask 255.255.255.0
bridge_stp off
bridge_fd 0
bridge_ports none
post-up iptables -t nat -A POSTROUTING -s '78.99.0.0/24' -o eth0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '78.99.0.0/24' -o eth0 -j MASQUERADE
dovrei in pratica dare le stesse inpostazini a Centos per la sua rete non non capisco. Mi date una dritta grazie a tutti..