Olá pessoal,
estou atualizando um servidor Conectiva 10 para Centos 4,
principalmente com o objetivo de aprender. A maneira como o anterior
funciona é a seguinte:
- O modem vai para o hub.
- As duas placas estão conectadas ao hub, a eth0 com ip 192.168.0.100
(o ip do modem é 192.168.0.1) e a eth1 com ip 192.168.1.254
- a tabela de roteamento está assim (route -n):
Destino             Roteador           MáscaraGen.    Opções   Métrica
 Ref.  Uso  Iface
192.168.1.0       192.168.1.254   255.255.255.0   UG         0        
  0      0      eth1
192.168.1.0       0.0.0.0             255.255.255.0    U           0  
        0      0      eth1
192.168.0.0       192.168.0.100   255.255.255.0    UG        0        
  0      0      eth0
192.168.0.0       0.0.0.0             255.255.255.0     U          0  
        0      0      eth0
127.0.0.0          0.0.0.0              255.0.0.0           U         
0           0       0      lo
0.0.0.0              192.168.0.1      0.0.0.0               UG       
0           0      0      eth0

Agora no CentOS, estou fazendo assim:
[EMAIL PROTECTED] suporte]# ifconfig eth1 192.168.0.100 up
[EMAIL PROTECTED] suporte]# route add default eth1
[EMAIL PROTECTED] suporte]# route add default gw 192.168.0.1
[EMAIL PROTECTED] suporte]# ping www.terra.com.br
PING www.terra.com.br (200.176.3.142) 56(84) bytes of data.
64 bytes from www.terra.com.br (200.176.3.142): icmp_seq=0 ttl=249 time=72.9 ms
64 bytes from www.terra.com.br (200.176.3.142): icmp_seq=1 ttl=249 time=149 ms

--- www.terra.com.br ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 72.948/110.986/149.025/38.039 ms, pipe 2
[EMAIL PROTECTED] suporte]# ifconfig eth2 192.168.1.254 netmask 255.255.255.0 up
[EMAIL PROTECTED] suporte]# route
Tabela de Roteamento IP do Kernel
Destino         Roteador        MáscaraGen.    Opções Métrica Ref   Uso Iface
192.168.1.0     *               255.255.255.0   U     0      0        0 eth2
192.168.0.0     *               255.255.255.0   U     0      0        0 eth1
169.254.0.0     *               255.255.0.0     U     0      0        0 lo
default         192.168.0.1     0.0.0.0         UG    0      0        0 eth1
default         *               0.0.0.0         U     0      0        0 eth1
[EMAIL PROTECTED] suporte]# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
>From 192.168.1.254 icmp_seq=1 Destination Host Unreachable
>From 192.168.1.254 icmp_seq=2 Destination Host Unreachable
>From 192.168.1.254 icmp_seq=3 Destination Host Unreachable

--- 192.168.1.1 ping statistics ---
4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2999ms
, pipe 4

Se eu for na máquina 192.168.1.29 e pingar a 192.168.1.1, e
vice-versa, funciona ok, mas pingar de qualquer máquina para
192.168.1.254 ou do servidor novo para qualquer máquina da rede
192.168.1.0, não funciona. Alguém tem alguma luz?

Valeu,
Luiz Carlos Geron
---------------------------------------------------------------------------
Esta lista é patrocinada pela Conectiva S.A. Visite http://www.conectiva.com.br

Arquivo: http://bazar2.conectiva.com.br/mailman/listinfo/linux-br
Regras de utilização da lista: http://linux-br.conectiva.com.br
FAQ: http://www.zago.eti.br/menu.html

Responder a