Home » General » Support » Source based routing
Source based routing [message #28456] |
Tue, 18 March 2008 18:56  |
sspt
Messages: 100 Registered: August 2006 Location: Portugal
|
Senior Member |
|
|
I've two nics, two networks, two gateways:
Quote: |
ip route add default dev eth1 via 10.2.193.129 table 7
ip route add default dev eth0 via 10.3.220.129 table 8
ip rule add from 10.2.193.128/28 table 7
ip rule add from 10.3.220.128/28 table 8
ip route add default via 10.3.220.129 dev eth0
|
Incoming bandwidth is fine, but outgoing goes thru the default gateway. What am i missing?
Thanks in advance,
|
|
|
|
|
|
|
|
Re: Source based routing [message #28818 is a reply to message #28791] |
Sat, 29 March 2008 03:31   |
sspt
Messages: 100 Registered: August 2006 Location: Portugal
|
Senior Member |
|
|
It happens from any external box which tries to reach the VE
External BOX
ping to VE
21:50:09.342794 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto 1, length: 84) xxx.110.83.42 > 67.xxx.xxx.140: icmp 64: echo request seq 0
21:50:10.351723 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto 1, length: 84) xxx.110.83.42 > 67.xxx.xxx.140: icmp 64: echo request seq 1
21:50:11.360495 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto 1, length: 84) xxx.110.83.42 > 67.xxx.xxx.140: icmp 64: echo request seq 2
21:50:12.360282 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto 1, length: 84) xxx.110.83.42 > 67.xxx.xxx.140: icmp 64: echo request seq 3
21:50:13.360058 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto 1, length: 84) xxx.110.83.42 > 67.xxx.xxx.140: icmp 64: echo request seq 4
21:50:14.359834 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto 1, length: 84) xxx.110.83.42 > 67.xxx.xxx.140: icmp 64: echo request seq 5
21:50:15.359627 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto 1, length: 84) xxx.110.83.42 > 67.xxx.xxx.140: icmp 64: echo request seq 6
21:50:16.368357 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto 1, length: 84) xxx.110.83.42 > 67.xxx.xxx.140: icmp 64: echo request seq 7
21:50:17.368154 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto 1, length: 84) xxx.110.83.42 > 67.xxx.xxx.140: icmp 64: echo request seq 8
21:50:18.367927 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto 1, length: 84) xxx.110.83.42 > 67.xxx.xxx.140: icmp 64: echo request seq 9
21:50:19.367700 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto 1, length: 84) xxx.110.83.42 > 67.xxx.xxx.140: icmp 64: echo request seq 10
21:50:20.367476 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto 1, length: 84) xxx.110.83.42 > 67.xxx.xxx.140: icmp 64: echo request seq 11
21:50:21.376229 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto 1, length: 84) xxx.110.83.42 > 67.xxx.xxx.140: icmp 64: echo request seq 12
21:50:22.376023 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto 1, length: 84) xxx.110.83.42 > 67.xxx.xxx.140: icmp 64: echo request seq 13
21:50:23.379326 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto 1, length: 84) xxx.110.83.42 > 67.xxx.xxx.140: icmp 64: echo request seq 14
ping to node
21:59:08.040177 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto 1, length: 84) xxx.110.83.42 > 67.xxx.xxx.130: icmp 64: echo request seq 0
21:59:08.113576 IP (tos 0x0, ttl 40, id 56698, offset 0, flags [none], proto 1, length: 84) 67.xxx.xxx.130 > xxx.110.83.42: icmp 64: echo reply seq 0
21:59:09.040162 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto 1, length: 84) xxx.110.83.42 > 67.xxx.xxx.130: icmp 64: echo request seq 1
21:59:09.113478 IP (tos 0x0, ttl 40, id 56699, offset 0, flags [none], proto 1, length: 84) 67.xxx.xxx.130 > xxx.110.83.42: icmp 64: echo reply seq 1
21:59:10.039948 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto 1, length: 84) xxx.110.83.42 > 67.xxx.xxx.130: icmp 64: echo request seq 2
21:59:10.113954 IP (tos 0x0, ttl 40, id 56700, offset 0, flags [none], proto 1, length: 84) 67.xxx.xxx.130 > xxx.110.83.42: icmp 64: echo reply seq 2
21:59:11.039702 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto 1, length: 84) xxx.110.83.42 > 67.xxx.xxx.130: icmp 64: echo request seq 3
21:59:11.113510 IP (tos 0x0, ttl 40, id 56701, offset 0, flags [none], proto 1, length: 84) 67.xxx.xxx.130 > xxx.110.83.42: icmp 64: echo reply seq 3
21:59:12.048458 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto 1, length: 84) xxx.110.83.42 > 67.xxx.xxx.130: icmp 64: echo request seq 4
21:59:12.121922 IP (tos 0x0, ttl 40, id 56702, offset 0, flags [none], proto 1, length: 84) 67.xxx.xxx.130 > xxx.110.83.42: icmp 64: echo reply seq 4
21:59:13.057232 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto 1, length: 84) xxx.110.83.42 > 67.xxx.xxx.130: icmp 64: echo request seq 5
21:59:13.130931 IP (tos 0x0, ttl 40, id 56703, offset 0, flags [none], proto 1, length: 84) 67.xxx.xxx.130 > xxx.110.83.42: icmp 64: echo reply seq 5
21:59:14.057046 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto 1, length: 84) xxx.110.83.42 > 67.xxx.xxx.130: icmp 64: echo request seq 6
21:59:14.129665 IP (tos 0x0, ttl 40, id 56704, offset 0, flags [none], proto 1, length: 84) 67.xxx.xxx.130 > xxx.110.83.42: icmp 64: echo reply seq 6
21:59:15.056793 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto 1, length: 84) xxx.110.83.42 > 67.xxx.xxx.130: icmp 64: echo request seq 7
21:59:15.129523 IP (tos 0x0, ttl 40, id 56705, offset 0, flags [none], proto 1, length: 84) 67.xxx.xxx.130 > xxx.110.83.42: icmp 64: echo reply seq 7
21:59:16.056568 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto 1, length: 84) xxx.110.83.42 > 67.xxx.xxx.130: icmp 64: echo request seq 8
21:59:16.141422 IP (tos 0x0, ttl 40, id 56706, offset 0, flags [none], proto 1, length: 84) 67.xxx.xxx.130 > xxx.110.83.42: icmp 64: echo reply seq 8
21:59:17.056378 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto 1, length: 84) xxx.110.83.42 > 67.xxx.xxx.130: icmp 64: echo request seq 9
21:59:17.129063 IP (tos 0x0, ttl 40, id 56707, offset 0, flags [none], proto 1, length: 84) 67.xxx.xxx.130 > xxx.110.83.42: icmp 64: echo reply seq 9
21:59:18.056139 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto 1, length: 84) xxx.110.83.42 > 67.xxx.xxx.130: icmp 64: echo request seq 10
21:59:18.128998 IP (tos 0x0, ttl 40, id 56708, offset 0, flags [none], proto 1, length: 84) 67.xxx.xxx.130 > xxx.110.83.42: icmp 64: echo reply seq 10
Node
While we ping VE IP
Nothing, a traceroute won't reach the VE IP, it dies at the switch
So i've ran '/usr/sbin/arpsend -U -i 67.xxx.xxx.140 -c 1 eth1' and then:
20:20:07.121016 IP (tos 0x0, ttl 40, id 0, offset 0, flags [DF], proto: ICMP (1), length: 84) xxx.110.83.42 > 67.xxx.xxx.140: ICMP echo request, id 60987, seq 81, length 64
20:20:07.121108 IP (tos 0x0, ttl 64, id 56946, offset 0, flags [none], proto: ICMP (1), length: 84) 67.xxx.xxx.140 > xxx.110.83.42: ICMP echo reply, id 60987, seq 81, length 64
20:20:07.121116 IP (tos 0x0, ttl 40, id 0, offset 0, flags [DF], proto: ICMP (1), length: 84) xxx.110.83.42 > 67.xxx.xxx.140: ICMP echo request, id 60987, seq 82, length 64
20:20:07.121142 IP (tos 0x0, ttl 64, id 56947, offset 0, flags [none], proto: ICMP (1), length: 84) 67.xxx.xxx.140 > xxx.110.83.42: ICMP echo reply, id 60987, seq 82, length 64
20:20:07.121643 IP (tos 0xc0, ttl 64, id 6287, offset 0, flags [none], proto: ICMP (1), length: 576) 67.xxx.xxx.140 > 198.32.64.12: ICMP 67.xxx.xxx.140 udp port 32915 unreachable, length 556
20:20:07.121763 IP (tos 0xc0, ttl 64, id 2440, offset 0, flags [none], proto: ICMP (1), length: 163) 67.xxx.xxx.140 > 192.228.79.201: ICMP 67.xxx.xxx.140 udp port 32915 unreachable, length 143
20:20:07.122048 IP (tos 0xc0, ttl 64, id 641, offset 0, flags [none], proto: ICMP (1), length: 341) 67.xxx.xxx.140 > 192.203.230.10: ICMP 67.xxx.xxx.140 udp port 32915 unreachable, length 321
20:20:08.052997 IP (tos 0x0, ttl 40, id 0, offset 0, flags [DF], proto: ICMP (1), length: 84) xxx.110.83.42 > 67.xxx.xxx.140: ICMP echo request, id 63035, seq 8, length 64
20:20:08.053030 IP (tos 0x0, ttl 64, id 56948, offset 0, flags [none], proto: ICMP (1), length: 84) 67.xxx.xxx.140 > xxx.110.83.42: ICMP echo reply, id 63035, seq 8, length 64
20:20:09.048410 IP (tos 0x0, ttl 40, id 0, offset 0, flags [DF], proto: ICMP (1), length: 84) xxx.110.83.42 > 67.xxx.xxx.140: ICMP echo request, id 63035, seq 9, length 64
20:20:09.048439 IP (tos 0x0, ttl 64, id 56949, offset 0, flags [none], proto: ICMP (1), length: 84) 67.xxx.xxx.140 > xxx.110.83.42: ICMP echo reply, id 63035, seq 9, length 64
20:20:10.047784 IP (tos 0x0, ttl 40, id 0, offset 0, flags [DF], proto: ICMP (1), length: 84) xxx.110.83.42 > 67.xxx.xxx.140: ICMP echo request, id 63035, seq 10, length 64
20:20:10.047815 IP (tos 0x0, ttl 64, id 56950, offset 0, flags [none], proto: ICMP (1), length: 84) 67.xxx.xxx.140 > xxx.110.83.42: ICMP echo reply, id 63035, seq 10, length 64
20:20:11.047685 IP (tos 0x0, ttl 40, id 0, offset 0, flags [DF], proto: ICMP (1), length: 84) xxx.110.83.42 > 67.xxx.xxx.140: ICMP echo request, id 63035, seq 11, length 64
20:20:11.047713 IP (tos 0x0, ttl 64, id 56951, offset 0, flags [none], proto: ICMP (1), length: 84) 67.xxx.xxx.140 > xxx.110.83.42: ICMP echo reply, id 63035, seq 11, length 64
20:20:12.047350 IP (tos 0x0, ttl 40, id 0, offset 0, flags [DF], proto: ICMP (1), length: 84) xxx.110.83.42 > 67.xxx.xxx.140: ICMP echo request, id 63035, seq 12, length 64
20:20:12.047379 IP (tos 0x0, ttl 64, id 56952, offset 0, flags [none], proto: ICMP (1), length: 84) 67.xxx.xxx.140 > xxx.110.83.42: ICMP echo reply, id 63035, seq 12, length 64
20:20:13.047414 IP (tos 0x0, ttl 40, id 0, offset 0, flags [DF], proto: ICMP (1), length: 84) xxx.110.83.42 > 67.xxx.xxx.140: ICMP echo request, id 63035, seq 13, length 64
20:20:13.047442 IP (tos 0x0, ttl 64, id 56953, offset 0, flags [none], proto: ICMP (1), length: 84) 67.xxx.xxx.140 > xxx.110.83.42: ICMP echo reply, id 63035, seq 13, length 64
20:20:14.047377 IP (tos 0x0, ttl 40, id 0, offset 0, flags [DF], proto: ICMP (1), length: 84) xxx.110.83.42 > 67.xxx.xxx.140: ICMP echo request, id 63035, seq 14, length 64
20:20:14.047406 IP (tos 0x0, ttl 64, id 56954, offset 0, flags [none], proto: ICMP (1), length: 84) 67.xxx.xxx.140 > xxx.110.83.42: ICMP echo reply, id 63035, seq 14, length 64
20:20:15.048324 IP (tos 0x0, ttl 40, id 0, offset 0, flags [DF], proto: ICMP (1), length: 84) xxx.110.83.42 > 67.xxx.xxx.140: ICMP echo request, id 63035, seq 15, length 64
20:20:15.048352 IP (tos 0x0, ttl 64, id 56955, offset 0, flags [none], proto:
...
|
|
|
|
Re: Source based routing [message #29080 is a reply to message #28456] |
Fri, 04 April 2008 12:00   |
sspt
Messages: 100 Registered: August 2006 Location: Portugal
|
Senior Member |
|
|
External node
[root@node02 ~]# arp -n | grep 67.xxx.xxx.140
67.xxx.xxx.140 (incomplete) eth1
[root@node02 ~]# ip r get 67.xxx.xxx.140
67.xxx.xxx.140 dev eth1 src 67.xxx.xxx.131
cache mtu 1500 advmss 1460 hoplimit 64
[root@node02 ~]# tcpdump -i eth1 -v -e
tcpdump: listening on eth1, link-type EN10MB (Ethernet), capture size 96 bytes
04:52:37.660602 00:30:48:76:ec:8d (oui Unknown) > Broadcast, ethertype ARP (0x0806), length 42: arp who-has 67.xxx.xxx.140 tell 67.xxx.xxx.131
04:52:38.660574 00:30:48:76:ec:8d (oui Unknown) > Broadcast, ethertype ARP (0x0806), length 42: arp who-has 67.xxx.xxx.140 tell 67.xxx.xxx.131
04:52:39.659542 00:30:48:76:ec:8d (oui Unknown) > Broadcast, ethertype ARP (0x0806), length 42: arp who-has 67.xxx.xxx.140 tell 67.xxx.xxx.131
04:52:47.000300 00:30:48:76:ec:8d (oui Unknown) > Broadcast, ethertype ARP (0x0806), length 42: arp who-has 67.xxx.xxx.140 tell 67.xxx.xxx.131
04:52:47.999273 00:30:48:76:ec:8d (oui Unknown) > Broadcast, ethertype ARP (0x0806), length 42: arp who-has 67.xxx.xxx.140 tell 67.xxx.xxx.131
04:52:48.999239 00:30:48:76:ec:8d (oui Unknown) > Broadcast, ethertype ARP (0x0806), length 42: arp who-has 67.xxx.xxx.140 tell 67.xxx.xxx.131
04:52:50.999177 00:30:48:76:ec:8d (oui Unknown) > Broadcast, ethertype ARP (0x0806), length 42: arp who-has 67.xxx.xxx.140 tell 67.xxx.xxx.131
04:52:51.999142 00:30:48:76:ec:8d (oui Unknown) > Broadcast, ethertype ARP (0x0806), length 42: arp who-has 67.xxx.xxx.140 tell 67.xxx.xxx.131
04:52:52.999113 00:30:48:76:ec:8d (oui Unknown) > Broadcast, ethertype ARP (0x0806), length 42: arp who-has 67.xxx.xxx.140 tell 67.xxx.xxx.131
04:52:54.557053 00:30:48:76:ec:8d (oui Unknown) > Broadcast, ethertype ARP (0x0806), length 42: arp who-has 67.xxx.xxx.140 tell 67.xxx.xxx.131
04:52:55.557026 00:30:48:76:ec:8d (oui Unknown) > Broadcast, ethertype ARP (0x0806), length 42: arp who-has 67.xxx.xxx.140 tell 67.xxx.xxx.131
Eth0 is connected to a switch on network 1 and eth1 on network2 (different bandwidth providers)
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Tue Sep 26 01:29:17 GMT 2023
Total time taken to generate the page: 0.02348 seconds
|