roma33rus Posted April 16, 2012 Posted April 16, 2012 (edited) Здравствуйте. Проблема такая. На сервере стоит CentOS 6.2. Linux 3.3.2 #1 SMP Sat Apr 14 12:42:54 MSK 2012 x86_64 x86_64 x86_64 GNU/Linux Две сетевушки: eth0 Link encap:Ethernet HWaddr 00:15:17:95:10:CC inet addr:78.**.**.18 Bcast:78.**.**.19 Mask:255.255.255.252 inet6 addr: fe80::215:17ff:fe95:10cc/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:9000 Metric:1 RX packets:9980 errors:0 dropped:0 overruns:0 frame:0 TX packets:8271 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:10000 RX bytes:6888946 (6.5 MiB) TX bytes:3444662 (3.2 MiB) Interrupt:17 Memory:b8960000-b8980000 eth1 Link encap:Ethernet HWaddr 00:15:17:95:10:CD inet addr:91.**.**.11 Bcast:91.**.**.255 Mask:255.255.255.0 inet6 addr: fe80::215:17ff:fe95:10cd/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:9000 Metric:1 RX packets:690 errors:0 dropped:0 overruns:0 frame:0 TX packets:1066 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:10000 RX bytes:58164 (56.8 KiB) TX bytes:79107 (77.2 KiB) Interrupt:18 Memory:b8920000-b8940000 Настроен Quagga. маршруты принимаются на интерфейсе eth0. На eth1 висят ip адреса моей AS. Ситуация похожа на ту, которая описывалась в этой теме http://forum.nag.ru/forum/index.php?showtopic=73365&st=0&p=687556&hl=centos&fromsearch=1entry687556. Установил переменные, как писалось - не помогло. sysctl -w net.ipv4.conf.all.rp_filter=0 sysctl -w net.ipv4.conf.default.rp_filter=0 sysctl -w net.ipv4.conf.eth0.rp_filter=0 sysctl -w net.ipv4.conf.eth1.rp_filter=0 sysctl -w net.ipv4.conf.eth2.rp_filter=0 sysctl -w net.ipv4.conf.eth3.rp_filter=0 ping -I eth1 ya.ru PING ya.ru (87.250.251.3) from 91.**.**.11 eth1: 56(84) bytes of data. From 91.**.**.11 icmp_seq=1 Destination Host Unreachable From 91.**.**.11 icmp_seq=2 Destination Host Unreachable From 91.**.**.11 icmp_seq=3 Destination Host Unreachable From 91.**.**.11 icmp_seq=4 Destination Host Unreachable ^C --- ya.ru ping statistics --- 5 packets transmitted, 0 received, +4 errors, 100% packet loss, time 4077ms pipe 4 Сеть за интерфейсом eth1 пингуется исправно: ping -I eth1 91.**.**.12 PING 91.**.**.12 (91.**.**.12) from 91.**.**.11 eth1: 56(84) bytes of data. 64 bytes from 91.**.**.12: icmp_seq=1 ttl=128 time=0.726 ms 64 bytes from 91.**.**.12: icmp_seq=2 ttl=128 time=0.555 ms 64 bytes from 91.**.**.12: icmp_seq=3 ttl=128 time=0.685 ms ^C --- 91.**.**.12 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2778ms rtt min/avg/max/mdev = 0.555/0.655/0.726/0.075 ms С интерфейса eth0 все прекрасно видно: ping -I eth0 ya.ru PING ya.ru (87.250.250.203) from 78.**.**.18 eth0: 56(84) bytes of data. 64 bytes from www.yandex.ru (87.250.250.203): icmp_seq=1 ttl=252 time=7.03 ms 64 bytes from www.yandex.ru (87.250.250.203): icmp_seq=2 ttl=252 time=6.85 ms 64 bytes from www.yandex.ru (87.250.250.203): icmp_seq=3 ttl=252 time=6.71 ms 64 bytes from www.yandex.ru (87.250.250.203): icmp_seq=4 ttl=252 time=6.53 ms 64 bytes from www.yandex.ru (87.250.250.203): icmp_seq=5 ttl=252 time=6.67 ms ^C --- ya.ru ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4192ms rtt min/avg/max/mdev = 6.538/6.764/7.039/0.171 ms Если пробую вместо интерфейса прописать ip адрес eth0, то все пингуется: ping -I 91.**.**.11 ya.ru PING ya.ru (87.250.250.3) from 91.**.**.11 : 56(84) bytes of data. 64 bytes from www.yandex.ru (87.250.250.3): icmp_seq=1 ttl=252 time=60.5 ms 64 bytes from www.yandex.ru (87.250.250.3): icmp_seq=2 ttl=252 time=60.2 ms 64 bytes from www.yandex.ru (87.250.250.3): icmp_seq=3 ttl=252 time=60.6 ms ^C --- ya.ru ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2510ms rtt min/avg/max/mdev = 60.263/60.465/60.623/0.321 ms IPtables отключал. Тут всплывает еще одна проблема. пинг с eth0 до яндекса 6мс, а пинг с eth1 уже 60мс. Куда смотреть? что можно попробовать? Edited April 16, 2012 by roma33rus Вставить ник Quote
dsk Posted April 16, 2012 Posted April 16, 2012 В студию: sysctl net.ipv4.ip_forward traceroute ya.ru traceroute -s 91.**.**.11 ya.ru netstat -rn | grep 0.0.0.0 Вставить ник Quote
roma33rus Posted April 16, 2012 Author Posted April 16, 2012 форвардинг включен sysctl net.ipv4.ip_forward net.ipv4.ip_forward = 1 traceroute ya.ru traceroute to ya.ru (87.250.251.3), 30 hops max, 60 byte packets 1 78.25.79.17 (78.25.79.17) 2.165 ms 2.165 ms 2.223 ms 2 10.222.33.105 (10.222.33.105) 7.090 ms 7.219 ms 7.409 ms 3 10.222.77.2 (10.222.77.2) 10.436 ms 10.434 ms 10.506 ms 4 10.222.77.162 (10.222.77.162) 5.601 ms 5.608 ms 5.599 ms 5 83.149.16.202 (83.149.16.202) 6.153 ms 6.158 ms 6.149 ms 6 213.180.213.102 (213.180.213.102) 5.850 ms 5.949 ms 5.894 ms 7 l3-s3200-s1300.yandex.net (213.180.213.69) 7.387 ms 7.365 ms 7.354 ms 8 www.yandex.ru (87.250.251.3) 6.843 ms 6.869 ms 6.848 ms traceroute -s 91.**.**.11 ya.ru traceroute to ya.ru (87.250.250.203), 30 hops max, 60 byte packets 1 78.25.79.17 (78.25.79.17) 2.182 ms 2.259 ms 2.257 ms 2 10.222.33.101 (10.222.33.101) 12.710 ms 12.939 ms 13.067 ms 3 10.222.77.6 (10.222.77.6) 11.162 ms 11.161 ms 11.149 ms 4 10.222.77.166 (10.222.77.166) 5.561 ms 5.566 ms 5.631 ms 5 83.149.16.202 (83.149.16.202) 60.379 ms 60.382 ms 60.373 ms 6 l3-s2100-dante.yandex.net (87.250.239.13) 53.385 ms 53.372 ms 53.476 ms 7 l3-s3600-s2100.yandex.net (213.180.213.199) 53.711 ms 53.394 ms 53.859 ms 8 www.yandex.ru (87.250.250.203) 53.326 ms 53.265 ms 53.260 ms netstat -rn | grep 0.0.0.0 0.0.0.0 78.25.79.17 0.0.0.0 UG 0 0 0 eth0 10.10.11.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2.11 10.10.12.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2.12 10.10.13.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2.13 10.10.14.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2.14 10.10.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2.15 10.10.16.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2.16 10.10.17.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2.17 10.10.18.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2.18 10.10.19.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2.19 10.10.20.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2.20 50.0.0.0 78.25.79.17 255.255.0.0 UG 0 0 0 eth0 60.0.0.0 78.25.79.17 255.248.0.0 UG 0 0 0 eth0 70.0.0.0 78.25.79.17 255.255.0.0 UG 0 0 0 eth0 70.0.0.0 78.25.79.17 255.248.0.0 UG 0 0 0 eth0 78.25.79.16 0.0.0.0 255.255.255.252 U 0 0 0 eth0 80.0.0.0 78.25.79.17 255.254.0.0 UG 0 0 0 eth0 80.0.0.0 78.25.79.17 255.248.0.0 UG 0 0 0 eth0 90.0.0.0 78.25.79.17 255.255.0.0 UG 0 0 0 eth0 91.235.101.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 100.0.0.0 78.25.79.17 255.255.0.0 UG 0 0 0 eth0 110.0.0.0 78.25.79.17 255.252.0.0 UG 0 0 0 eth0 120.0.0.0 78.25.79.17 255.240.0.0 UG 0 0 0 eth0 130.0.0.0 78.25.79.17 255.255.248.0 UG 0 0 0 eth0 140.0.0.0 78.25.79.17 255.255.0.0 UG 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth2 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth2.11 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth2.12 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth2.13 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth2.14 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth2.15 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth2.16 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth2.17 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth2.18 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth2.19 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth2.20 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth2.999 180.0.0.0 78.25.79.17 255.192.0.0 UG 0 0 0 eth0 190.0.0.0 78.25.79.17 255.255.224.0 UG 0 0 0 eth0 192.168.200.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2.999 210.0.0.0 78.25.79.17 255.255.255.0 UG 0 0 0 eth0 220.0.0.0 78.25.79.17 255.255.0.0 UG 0 0 0 eth0 220.0.0.0 78.25.79.17 255.192.0.0 UG 0 0 0 eth0 Вот все данные Вставить ник Quote
dsk Posted April 16, 2012 Posted April 16, 2012 5 83.149.16.202 (83.149.16.202) 60.379 ms 60.382 ms 60.373 ms 6 l3-s2100-dante.yandex.net (87.250.239.13) 53.385 ms 53.372 ms 53.476 ms Внимание сюда. Судя по всему, трафик на ваши префиксы бежит более кривым путем, чем от вас. Вставить ник Quote
roma33rus Posted April 17, 2012 Author Posted April 17, 2012 О.... спасибо большое. Действительно разница есть. Буду общаться с провайдером. Не обращал внимания. Вставить ник Quote
g3fox Posted April 17, 2012 Posted April 17, 2012 На самом деле и dst разные: в первом случае: www.yandex.ru (87.250.251.3) во втором случае www.yandex.ru (87.250.250.203) Может по этому и трасса разная. Вставить ник Quote
roma33rus Posted April 17, 2012 Author Posted April 17, 2012 (edited) На самом деле и dst разные: в первом случае: www.yandex.ru (87.250.251.3) во втором случае www.yandex.ru (87.250.250.203) Может по этому и трасса разная. Верно, вы правы окзались. если по ip трассировку до серверов Яндекса делать, то оба маршрута одинаковые Edited April 17, 2012 by roma33rus Вставить ник Quote
roma33rus Posted April 18, 2012 Author Posted April 18, 2012 Такие проблемы были замечены только с Яндексом. Посему мы решили по этому поводу особо не беспокоиться. Так как, кроме как увеличение пингов, больше ничего плохого для сети не приходилось. Вставить ник Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.