Autor Tópico: Ubuntu Server no VMware  (Lida 1084 vezes)

Offline rrh

  • Usuário Ubuntu
  • *
  • Mensagens: 25
    • Ver perfil
Ubuntu Server no VMware
« Online: 26 de Junho de 2010, 19:59 »
Estou tentando configurar um servidor usando o Ubuntu 9.04 no VMware pra tentar aprender sobre servidores, mas já agarrei logo no início não conseguindo compartilhar a internet.

Arquivo resolv.conf

Código: [Selecionar]
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
        address 10.0.0.200
        netmask 255.0.0.0
        network 10.0.0.0
        broadcast 10.255.255.255
        gateway 10.0.0.1
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 10.0.0.1
        dns-search rrh.net

auto eth1
iface eth1 inet static
address 192.168.2.1
netmask 255.255.255.0

Seguindo o livro do Carlos E. Morimoto rodei os comandos abaixo:

Código: [Selecionar]
#modprobe iptable_nat
#echo 1 > /proc/sys/net/ipv4/ip_forward
#iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE