roteamento eth0+ppp0
>
>
>
> Prezados estou fazendo testes com o seguinte senario
>
>
>
>
> internet adsl
> modem/roteador
> ip 10.1.1.1 mask 25.0.0.0----------------------hub/lan
>
>
> serv1 LInux
> ip 10.1.1.3 eth0-----------------------------------hub/lan
> mask 255.0.0.0
> gw 10.1.1.1
> ip 200.246.114.51 ppp0
> gw 200.178.120.170
> mask 255.255.255.255
>
>
> serv2
> ip 10.1.1.4------------------------------------------hub/lan
> mask 255.0.0.0
> gw 10.1.1.1
>
> Preciso acessar (ssh) o serv2 atraves do serv1 via ppp0 ,gerada por conexao discada a internet.
>
> Consegui acesso adicionando uma rota (route add -net 'ip-remoto' ppp0) mas ai perco acesso pela rota padrao via eth0. Ativei o ip_forward e redirecionamento no iptables mas sem sucesso, .tive pesquisando sobre roteamento avançado mas creio que neste caso nao seria necessario.
>
> Gostaria de sugestao sobre como configurar as rotas.
>
>
>
>
>
> abaixo tem um exemplo de uma maquina que funciona da maneira que preciso, mas não consigui configurar as rotas pra funcionar da mensma forma na maquina que estou testando.
>
> eth0 Link encap:Ethernet HWaddr 00:13:D3:1C:0C:79
> inet addr:10.1.1.6 Bcast:10.255.255.255 Mask:255.0.0.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:4183 errors:0 dropped:0 overruns:0 frame:0
> TX packets:2054 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:369210 (360.5 Kb) TX bytes:246103 (240.3 Kb)
> Interrupt:11 Base address:0xe500
>
> eth0:1 Link encap:Ethernet HWaddr 00:13:D3:1C:0C:79
> inet addr:192.168.20.90 Bcast:192.168.20.91 Mask:255.255.255.252
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:32 errors:1 dropped:0 overruns:0 frame:0
> TX packets:29 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:2533 (2.4 Kb) TX bytes:2645 (2.5 Kb)
> Interrupt:11 Base address:0xe500
>
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> UP LOOPBACK RUNNING MTU:16436 Metric:1
> RX packets:34895 errors:0 dropped:0 overruns:0 frame:0
> TX packets:34895 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:1971409 (1.8 Mb) TX bytes:1971409 (1.8 Mb)
>
> ppp0 Link encap:Point-to-Point Protocol
> inet addr:200.246.114.51 P-t-P:200.178.120.170 Mask:255.255.255.255
> UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
> RX packets:32 errors:1 dropped:0 overruns:0 frame:0
> TX packets:29 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:3
> RX bytes:2533 (2.4 Kb) TX bytes:2645 (2.5 Kb)
>
>
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use Iface
> 200.178.120.170 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
> 201.40.201.136 200.178.120.170 255.255.255.0 UG 0 0 0 ppp0
> 10.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth0
> 0.0.0.0 10.1.1.1 0.0.0.0 UG 0 0 0 eth0
>
> na tabela acima o ip 201.40.201.136 e o ip da maquina remota.
>
>
>
>
>
>
>
>
>
_________________________________________________________________
Receba GRÁTIS as mensagens do Messenger no seu celular quando você estiver offline. Conheça o MSN Mobile!
http://mobile.live.com/signup/signup2.aspx?lc=pt-br
Reply to: