All pastes #355581 Raw Edit

Something

public text v1 · immutable
·published 2007-02-14 16:16 UTC
rendered paste body
Abaixo segue as configurações das placas de rede da Matriz e tambem a tabela de rotas.

root@vpnponta:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:83:08:01:FC:3D
          inet addr:192.168.254.250  Bcast:192.168.254.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:124505 errors:0 dropped:0 overruns:0 frame:0
          TX packets:104573 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:78595297 (74.9 MiB)  TX bytes:17907829 (17.0 MiB)
          Interrupt:10 Base address:0xd000

eth1      Link encap:Ethernet  HWaddr 00:40:F4:63:8A:02
          inet addr:10.0.0.1  Bcast:10.255.255.255  Mask:255.0.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:102494 errors:0 dropped:0 overruns:0 frame:0
          TX packets:122155 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:17376840 (16.5 MiB)  TX bytes:78555337 (74.9 MiB)
          Interrupt:12 Base address:0xf000

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:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:672 (672.0 b)  TX bytes:672 (672.0 b)

tun0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:10.0.10.1  P-t-P:10.0.10.2  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:1377 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2468 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:147629 (144.1 KiB)  TX bytes:189440 (185.0 KiB)




root@vpnponta:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.0.10.2       *               255.255.255.255 UH    0      0        0 tun0
localnet        *               255.255.255.0   U     0      0        0 eth0
10.10.0.0       10.0.10.2       255.255.0.0     UG    0      0        0 tun0
10.0.0.0        *               255.0.0.0       U     0      0        0 eth1
loopback        *               255.0.0.0       U     0      0        0 lo
default         192.168.254.254 0.0.0.0         UG    1      0        0 eth0




###############################################################################

Abaixo as configurações da Filial (placas de rede e rotas)


root@vpnponta:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:00:1C:3A:F7:E3
          inet addr:192.168.254.250  Bcast:192.168.254.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:82944 errors:0 dropped:0 overruns:0 frame:0
          TX packets:82827 errors:0 dropped:0 overruns:0 carrier:0
          collisions:2 txqueuelen:1000
          RX bytes:22001700 (20.9 Mb)  TX bytes:19049623 (18.1 Mb)
          Interrupt:10 Base address:0xef40

eth1      Link encap:Ethernet  HWaddr 00:EE:B1:00:54:B9
          inet addr:10.10.0.1  Bcast:10.255.255.255  Mask:255.0.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:19104 errors:0 dropped:0 overruns:0 frame:0
          TX packets:18585 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4804348 (4.5 Mb)  TX bytes:11583754 (11.0 Mb)
          Interrupt:11 Base address:0x6f00

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:61 errors:0 dropped:0 overruns:0 frame:0
          TX packets:61 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:6440 (6.2 Kb)  TX bytes:6440 (6.2 Kb)

tun0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:10.0.10.2  P-t-P:10.0.10.1  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:61669 errors:0 dropped:0 overruns:0 frame:0
          TX packets:61421 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:5079112 (4.8 Mb)  TX bytes:8948894 (8.5 Mb)



root@vpnponta:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.0.10.1       *               255.255.255.255 UH    0      0        0 tun0
192.168.254.0   *               255.255.255.0   U     0      0        0 eth0
localnet        10.0.10.1       255.0.0.0       UG    0      0        0 tun0
localnet        *               255.0.0.0       U     0      0        0 eth1
loopback        *               255.0.0.0       U     0      0        0 lo
default         192.168.254.254 0.0.0.0         UG    1      0        0 eth0




OBS quando inserimos o comando: route add -net 10.0.0.0/8 gw 10.0.10.1
Na filial a rede interna cai... as maquinas nao comunicam com o linux
E na matriz isso nao ocorre!!!
Fica tudo okay!