[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Interfaces virtuais (Acesso Externo)



boa tarde!

/etc/network/interfaces:

allow-hotplug eth0
auto eth0 eth0:0
iface eth0 inet static
      address xxx.xxx.xxx.44
      netmask 255.255.255.248
      network xxx.xxx.xxx.0
      broadcast xxx.xxx.xxx.xxx
      gateway xxx.xxx.xxx.1
iface eth0:0 inet static
      address xxx.xxx.xxx.45
      netmask 255.255.255.248
      network xxx.xxx.xxx.0

Estes dados ai em cima estão certos?
Por que se estiverem, como o seu gateway está fora da faixa?
Mascara 255.255.255.248 os ips começam em 40 e vao até 47, sendo o 40 que identifica a rede e o 47 o broadcast. Como o gateway é 1??

Olhe http://www.atelierlogico.net/content/view/12/27/.

Outra coisa o eth0:0 não sobrescreve o eth0? Pois no meu servidor sobrescreve, de um ifconfig e veja se tem os dois ips diponíveis?


Junior Bohn
100% movido a linux


2008/11/1 Allison Vollmann <allisonvoll@yahoo.com.br>
Boa Tarde,

O serviço é smtp, mas nem responde o ping se for de fora da rede, na verdade nem o router responde, apenas as maquinas locais (antes do router) conseguem resposta. Acabei concluindo que não é possível utilizar interfaces virtuais com a mesma faixa de ip.

Problema de firewall não é, a porta icmp eu não costumo deixar bloqueada, principalmente quando está em processos de debug.


A[]'s


--- Em sáb, 1/11/08, Júnior Bohn <movidoalinux@gmail.com> escreveu:

> De: Júnior Bohn <movidoalinux@gmail.com>
> Assunto: Re: Interfaces virtuais (Acesso Externo)
> Para: allisonvoll@yahoo.com.br
> Data: Sábado, 1 de Novembro de 2008, 12:28
> Boa tarde!
>
> Qual serviço você quer acessar, samba, http, pop, nat?
> Você não tem firewall?
>
> Veja se no firewall está liberando a faixa desejada.
>
>
> Junior Bohn
> 100% movido a linux
>
> 2008/10/30 Allison Vollmann
> <allisonvoll@yahoo.com.br>
>
> > Entao, ja tentei assim mesmo e tambem nao da certo.
> >
> > Entao eu adicionei pelo ifconfig para ver qual seria a
> ordem certa, ele
> > colocou como (eth0:0) entao prefiro que fique assim
> mesmo, acredito que isso
> > nao interfira em nada pois se usar (eth0:x) da na
> mesma funciona
> > internamente mas externamente nao da para acessar.
> >
> > A[]'s
> >
> >
> > --- Em qui, 30/10/08, Júnior Bohn
> <movidoalinux@gmail.com> escreveu:
> >
> > > De: Júnior Bohn <movidoalinux@gmail.com>
> > > Assunto: Re: Interfaces virtuais (Acesso Externo)
> > > Para: "Allison Vollmann"
> <allisonvoll@yahoo.com.br>
> > > Cc: "d-u-p"
> <debian-user-portuguese@lists.debian.org>
> > > Data: Quinta-feira, 30 de Outubro de 2008, 13:41
> > > Tente criar a eth0:1 em vez de eth0:0.
> > >
> > > Veja de funciona.
> > >
> > >
> > > Junior
> > > 100% movido a linux
> > >
> > > 2008/10/30 Allison Vollmann
> > > <allisonvoll@yahoo.com.br>
> > >
> > > > Olá,
> > > >
> > > > Criei uma interface virtual (eth0:0) com a
> mesma
> > > mascara e rede da
> > > > interface física, dentro da rede interna é
> possível
> > > acessá-la normalmente,
> > > > porém quanto ao acesso externo não é
> possível,
> > > essa interface esta
> > > > utilizando um endereço de ip roteável e o
> mesmo esta
> > > livre para uso.
> > > >
> > > > Tentei adicionar as rotas para essa
> interface e nada,
> > > mas pelo que vi nos
> > > > man pages, se utiliza a mesma rede não é
> necessário
> > > criar rotas para ela.
> > > >
> > > > /etc/network/interfaces:
> > > >
> > > > allow-hotplug eth0
> > > > auto eth0 eth0:0
> > > > iface eth0 inet static
> > > >       address xxx.xxx.xxx.44
> > > >       netmask 255.255.255.248
> > > >       network xxx.xxx.xxx.0
> > > >       broadcast xxx.xxx.xxx.xxx
> > > >       gateway xxx.xxx.xxx.1
> > > > iface eth0:0 inet static
> > > >       address xxx.xxx.xxx.45
> > > >       netmask 255.255.255.248
> > > >       network xxx.xxx.xxx.0
> > > >
> > > >
> > > > # route -n:
> > > >
> > > > xxx.xxx.xxx.0   0.0.0.0
> 255.255.255.248
> > > U     0      0
> > > >  0 eth0
> > > > 0.0.0.0             xxx.xxx.xxx.1   0.0.0.0
> > >       UG    0
> > > >  0        0 eth0
> > > >
> > > > A[]'s
> > > >
> > > >
> > > > --
> > > > To UNSUBSCRIBE, email to
> > > debian-user-portuguese-REQUEST@lists.debian.org
> > > > with a subject of "unsubscribe".
> Trouble?
> > > Contact
> > > > listmaster@lists.debian.org
> > > >
> > > >
> >
> >
> >       Novos endereços, o Yahoo! que você conhece.
> Crie um email novo com a
> > sua cara @ymail.com ou @rocketmail.com.
> > http://br.new.mail.yahoo.com/addresses
> >
> >
> > --
> > To UNSUBSCRIBE, email to
> debian-user-portuguese-REQUEST@lists.debian.org
> > with a subject of "unsubscribe". Trouble?
> Contact
> > listmaster@lists.debian.org
> >
> >


     Novos endereços, o Yahoo! que você conhece. Crie um email novo com a sua cara @ymail.com ou @rocketmail.com.
http://br.new.mail.yahoo.com/addresses


--
To UNSUBSCRIBE, email to debian-user-portuguese-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: