[Ubuntu-BR] Fwd: Re: Configurando duas placas de rede para compartilhamento de internet

Bruno Lima bslima19 em gmail.com
Sábado Setembro 9 12:55:29 UTC 2006


http://www.ubuntuforums.org/showthread.php?t=91370
Melhor jeito de fazer impossivel :)


On 9/9/06, Raphael Menezes <raphaelm em gmail.com> wrote:
>
> Resolveu, Ricardo?!
> On 9/6/06, hexa <hexaclamys em gmail.com> wrote:
> >
> >
> > só configure 1 gateway... o da eth0
> >
> > talvez tenha faltado a regra de mascaramento no iptables
> >
> > iptables -t nat -A POSTROUTING -j MASQUERADE
> >
> >
> > faca os testes com sua firewall desabilitada
> >
> > se nao der certo,
> >
> > qual o ip do modem?
> > qual dns esta usando no server e nas maquinas?
> >
> > vlw
> >
> > Em Terça 05 Setembro 2006 20:27, Ricardo Duarte escreveu:
> > > Tentei fazer isso que você falou e não consegui.
> > >
> > > Qual será o gateway do eth1?
> > >
> > > O /proc/sys/net/ipv4/ip_forward já estava com o valor 1.
> > >
> > > Segue abaixo o meu /etc/network/interfaces
> > > --
> > > root em zeus:~# cat /etc/network/interfaces
> > > # The loopback network interface
> > > auto lo
> > > iface lo inet loopback
> > >
> > > # The primary network interface
> > > auto eth0
> > > iface eth0 inet static
> > >         address 192.168.1.2
> > >         netmask 255.255.255.0
> > >         network 192.168.1.0
> > >         broadcast 192.168.1.255
> > >         gateway 192.168.1.1
> > >
> > > # The secundary network interface
> > > auto eth1
> > > iface eth1 inet static
> > >         address 192.168.0.1
> > >         netmask 255.255.0.0
> > >         network 192.168.0.0
> > >         broadcast 192.168.0.255
> > >         gateway 192.168.1.1
> > >
> > > --
> > > Ricardo Antonio Duarte
> > > ricardo em ricardoduarte.com
> > > http://ricardoduarte.com/
> > >
> > > On 05/09/06, hexa <hexaclamys em gmail.com> wrote:
> > > > coloque as duas interfaces em redes diferentes, por exemplo:
> > > >
> > > > eth0 na rede 192.168.1.0/24
> > > > eth1 na rede  192.168.0.0/24
> > > >
> > > > para ser mais claro,
> > > >
> > > > supondo que o ip do modem seja 192.168.1.1, configure a eth0 para o
> ip
> > > > 192.168.1.2 e faca com que o gateway desse server seja o modem
> > > >
> > > > supondo q sua rede interna seja 192.168.0.0/24 e que o ip
> 192.168.0.1
> > > > ainda nao esteja sendo usado... configure sua eth1 com o ip
> > 192.168.0.1
> > > >
> > > > habilite o roteamento (echo 1 > /proc/sys/net/ipv4/ip_forward)
> > > >
> > > > e faca com que o gateway de suas estacoes seja o server (192.168.0.1
> )
> > > >
> > > > vlw
> >
> > --
> > Patrick Silva Ximenes
> > GULMS - Grupo de Usuarios Linux MS (hexa em gulms.org)
> > PSLMS - Projeto Software Livre MS
> >
> > -------------------------------------------------------
> >
> > --
> > Patrick Silva Ximenes
> > GULMS - Grupo de Usuarios Linux MS (hexa em gulms.org)
> > PSLMS - Projeto Software Livre MS
> >
> > --
> > ubuntu-br mailing list
> > ubuntu-br em lists.ubuntu.com
> > www.ubuntu-br.org
> > https://lists.ubuntu.com/mailman/listinfo/ubuntu-br
> >
> --
> ubuntu-br mailing list
> ubuntu-br em lists.ubuntu.com
> www.ubuntu-br.org
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-br
>



-- 
Bruno Seabra Mendoça Lima
UFMA - Universidade Federal do Maranhão
DEINF - Departamento de Informática
LAbMint - Laboratorio de Midias Interativas
Telefone: 3217-8239



More information about the ubuntu-br mailing list