2 links no no mesmo servidor

13. Re: 2 links no no mesmo servidor

Estefanio Brunhara
stefaniobrunhara

(usa CentOS)

Enviado em 10/07/2013 - 13:30h

Na verdade, aqui na empresa usando um instalador, feito em pascoal, que faz tudo automático, porém estou com este problema, então fiz um senário menor, para pesquisar o problema.

Mas o gwping você pode usar ele com nohup no init.d sem precisar usar o cron.



  


14. Re: 2 links no no mesmo servidor

Estefanio Brunhara
stefaniobrunhara

(usa CentOS)

Enviado em 11/07/2013 - 14:37h

Ainda estou com sem sabe porque o mandriva funciona sem rota!!!

Veja todas as saídas da maquina que esta funcionando "mandriva 2010.1"




[[email protected]]# ifconfig


eth0 Link encap:Ethernet Endereço de HW 00:1D:92:7A:4A:A1
inet end.: 192.168.0.200 Bcast:192.168.3.255 Masc:255.255.252.0
endereço inet6: fe80::21d:92ff:fe7a:4aa1/64 Escopo:Link
UP BROADCASTRUNNING MULTICAST MTU:1500 Métrica:1
RX packets:80933154 errors:0 dropped:0 overruns:0 frame:0
TX packets:53085483 errors:0 dropped:0 overruns:0 carrier:0
colisões:0 txqueuelen:1000
RX bytes:3383851637 (3.1 GiB) TX bytes:3581386985 (3.3 GiB)
IRQ:26 Endereço de E/S:0xa000

eth1 Link encap:Ethernet Endereço de HW 00:D0:09:06:2C:C8
inet end.: 201.16.17.130 Bcast:20.16.17.135 Masc:255.255.255.248
endereço inet6: fe80::2d0:9ff:fe06:2cc8/64 Escopo:Link
UP BROADCASTRUNNING MULTICAST MTU:1500 Métrica:1
RX packets:24459610 errors:0 dropped:0 overruns:0 frame:0
TX packets:58886215 errors:0 dropped:0 overruns:0 carrier:0
colisões:0 txqueuelen:1000
RX bytes:328764364 (313.5 MiB) TX bytes:823852359 (785.6 MiB)
IRQ:16 Endereço de E/S:0xec00

eth2 Link encap:Ethernet Endereço de HW 00:80:AD:C9:41:1F
inet end.: 201.15.15.73 Bcast:201.15.15.127 Masc:255.255.255.128
endereço inet6: fe80::280:adff:fec9:411f/64 Escopo:Link
UP BROADCASTRUNNING MULTICAST MTU:1500 Métrica:1
RX packets:122110805 errors:0 dropped:0 overruns:0 frame:0
TX packets:3369440 errors:0 dropped:0 overruns:0 carrier:0
colisões:0 txqueuelen:1000
RX bytes:1042451517 (994.1 MiB) TX bytes:3864349843 (3.5 GiB)
IRQ:17 Endereço de E/S:0x2800

lo Link encap:Loopback Local
inet end.: 127.0.0.1 Masc:255.0.0.0
endereço inet6: ::1/128 Escopo:Máquina
UP LOOPBACKRUNNING MTU:16436 Métrica:1
RX packets:2854169 errors:0 dropped:0 overruns:0 frame:0
TX packets:2854169 errors:0 dropped:0 overruns:0 carrier:0
colisões:0 txqueuelen:0
RX bytes:451300209 (430.3 MiB) TX bytes:451300209 (430.3 MiB)


[[email protected]]#ip route show table main

201.16.17.128/29 dev eth1 proto kernel scope link src 201.16.17.130 metric 10
201.15.15.0/25 dev eth2 proto kernel scope link src 201.15.15.73 metric 10
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.200 metric 10
192.168.0.0/22 dev eth0 proto kernel scope link src 192.168.0.200 metric 10
169.254.0.0/16 dev eth1 scope link metric 10
169.254.0.0/16 dev eth2 scope link metric 10
169.254.0.0/16 dev eth0 scope link metric 10
127.0.0.0/8 dev lo scope link
default via 201.16.17.129 dev eth1


[[email protected]]#iptables -nL
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

[[email protected]]#iptables -nL -t nat
Chain PREROUTING (policy ACCEPT)
target prot opt source destination

Chain POSTROUTING (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination




[[email protected]]#cat /etc/iproute2/rt_tables
# reserved values
#
255 local
254 main
253 default
0 unspec
#
# local
#
#1 inr.ruhep
200 ambos
201 link1
202 link2


[[email protected]]#ip rule
0: from all lookup local
32766: from all lookup main
32767: from all lookup default


[[email protected]]#cat /proc/sys/net/ipv4/conf/all/log_martians
0
[[email protected]]#cat /proc/sys/net/ipv4/ip_forward
1
[[email protected]]#cat /proc/sys/net/ipv4/tcp_syncookies
1
[[email protected]]#cat /proc/sys/net/ipv4/ip_dynaddr
0

[[email protected]]#TesteLink.sh

ping -W 2 -I eth1 -c2 200.154.56.80
PING 200.154.56.80 (200.154.56.80) from 201.167.17.130 eth1: 56(84) bytes of data.
64 bytes from 200.154.56.80: icmp_seq=1 ttl=55 time=39.4 ms
64 bytes from 200.154.56.80: icmp_seq=2 ttl=55 time=41.4 ms
64 bytes from 200.154.56.80: icmp_seq=3 ttl=55 time=41.8 ms

--- 200.154.56.80 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 39.490/40.949/41.864/1.042 ms

ping -W 2 -I eth2 -c2 200.154.56.80
PING 200.154.56.80 (200.154.56.80) from 201.15.15.73 eth2: 56(84) bytes of data.
64 bytes from 200.154.56.80: icmp_seq=1 ttl=54 time=33.3 ms
64 bytes from 200.154.56.80: icmp_seq=2 ttl=54 time=34.2 ms
64 bytes from 200.154.56.80: icmp_seq=3 ttl=54 time=33.9 ms

--- 200.154.56.80 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 33.338/33.873/34.297/0.452 ms


Link1 esta OK!!!!
Link2 esta OK!!!!


No centos isto não da certo!!!

Alguém sabe me dizer que esqueci algum comando para verificar algo sobre as rotas etc...







01 02