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

Re: /etc/network/interfaces e Virtua



On Wed, Mar 10, 2004 at 09:34:27AM -0300, Caio Ferreira wrote:
> All
[...]
> 
> iface eth0 inet static
>         address 200.174.49.203
>         netmask 255.255.255.224
>         network ???????
>         broadcast 255.255.255.255
>         gateway 200.174.49.193
> 
> - o valor do ip foi fornecido pela Virtua.
> 
> - valor de netmask e broadcast eu consegui via ifconfig
[...]
> 
> - o valor do gateway consegui via route -n
> 
> Kernel IP routing table
> Destination     Gateway Genmask         Flags Metric Ref    Use Iface
> 200.174.49.192  0.0.0.0 255.255.255.224 U     0      0      0 eth0
> 192.168.1.0     0.0.0.0 255.255.255.0   U     0      0      0 eth1
> 0.0.0.0         200.174.49.193  0.0.0.0 UG    0      0      0 eth0
> 
> Tenho duas duvidas.
> 
> 1 - como obter o valor de network
> 
> 2 - os valores de netmask e broadcast estao corretos ?!?!?

a netmask o virtua deve fornecer - não tem como saber se está correta ou
não.

admitindo que esteja correta, então ...

o endereço de broadcast, IIRC, deveria ser 200.174.49.255 (último
endereço do segmento, definido pela netmask)

e a rede 200.174.49.224 (netmask & IP)

acho que é isto


-- 
Mario O.de Menezes, Ph.D.  "Many are the plans in a man's heart, but
    IPEN-CNEN/SP           is the Lord's purpose that prevails" Pv 19.21
Pós Lato Senso: Gestão, Implantação e Desenvolvimento em Software Livre
      http://www.ipen.br/~mario       http://www.impacta.edu.br



Reply to: