perfsonar-user - Re: [perfsonar-user] Dual Interface system
Subject: perfSONAR User Q&A and Other Discussion
List archive
- From: Casey Russell <>
- To:
- Subject: Re: [perfsonar-user] Dual Interface system
- Date: Mon, 26 Jan 2015 09:10:46 -0600
em1 Link encap:Ethernet HWaddr <stripped by me>
inet addr:164.113.32.66 Bcast:164.113.32.71 Mask:255.255.255.248
inet6 addr: 2001:49d0:23c0:8::26/64 Scope:Global
inet6 addr: fe80::7a2b:cbff:fe0d:b9c8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:30183 errors:0 dropped:0 overruns:0 frame:0
TX packets:5600 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2128384 (2.0 MiB) TX bytes:651400 (636.1 KiB)
p1p1 Link encap:Ethernet HWaddr <stripped by me>
inet addr:164.113.32.26 Bcast:164.113.32.31 Mask:255.255.255.248
inet6 addr: 2001:49d0:23c0:3::26/64 Scope:Global
inet6 addr: fe80::21b:21ff:fe8e:6304/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:18291117 errors:0 dropped:0 overruns:0 frame:0
TX packets:36827058 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1243119213 (1.1 GiB) TX bytes:55062744850 (51.2 GiB)
Memory:df3c0000-df3dffff
[root@ps-ksu-bw ~]# ip rule list
0: from all lookup local
200: from 164.113.32.26 lookup p1p1_source_route
200: from 164.113.32.66 lookup em1_source_route
32766: from all lookup main
32767: from all lookup default
[root@ps-ksu-bw ~]# ip -6 rule list
0: from all lookup local
32766: from all lookup main
[root@ps-ksu-bw ~]# ip route list table p1p1_source_route
default via 164.113.32.30 dev p1p1
[root@ps-ksu-bw ~]# ip route list table em1_source_route
default via 164.113.32.70 dev em1
2029 Becker Drive, Suite 282
Lawrence, KS 66047
Hi Casey,
The “magic” of /opt/perfsonar_ps/toolkit/scripts/mod_interface_route is not purposed to fix routing. The idea is to make server replies exit through the interface that has received inquiries. Meaning that your tests should not be performed on the host itself, but from a remote host. In order to make sure that the source routing works, you should make dump on specific interface on the host you are configuring.
The “problem” you see there is probably because you have both interfaces in the same subnet, which means the routing is unable to determine, which is your desired path. It only sees that the second gateway is in the subnet of primary interface, therefore tries it through the primary interface, when initiating icmp tests.
Please share IP settings’ details in order to clear off this possibility.
Best regards,
Ivan
From: [mailto:] On Behalf Of Casey Russell
Sent: Saturday, January 24, 2015 3:28 PM
To:
Subject: [perfsonar-user] Dual Interface system
Group,
I'm setting up a new dual-interface system (the first for us), and am using the instructions provided at http://docs.perfsonar.net/manage_dual_xface.html
For clarity, the host will have 2 different physical interfaces in two separate subnets. Each interface will have IPv4 and IPv4 connectivity. The Basic IP and IPv6 setup goes simply enough, I get the device base connectivity through the primary interface. And as you'd expect, the secondary interface can ping it's gateway, but can't talk to the outside world, because no policy (source routing) exists yet to give it a proper gateway.
Then I ran the /opt/perfsonar_ps/toolkit/scripts/mod_interface_route script as suggested in the installation instructions. I ran it once for each interface (modifying the examples to reflect the proper gateway info for my interfaces). Each command ran cleanly (at least appeared to). However, it appears to me that the script broke partway through executing each command and didn't properly build the routes for either interface.
After the commands are run. Here is the output of "ip rule list"
[root@ps-ksu-bw iproute2]# ip rule list
0: from all lookup local
200: from 164.113.32.26 lookup p1p1_source_route
200: from 164.113.32.66 lookup em1_source_route
32766: from all lookup main
32767: from all lookup defaultThat looks good. Looks like it installed the IPv4 gateway. However, I still can only ping the gateway for that network from the second Linux interface (em1). I have verified that other IPs in that subnet can talk to the world (to rule out routing issues or an ACL at the router).
Also, if you look at the IPv6 table after the mod_interface_route script has been run for either interface, you see that it didn't appear to modify the IPv6 tables at all. This is why I suspect it quietly broke mid-operation.
[root@ps-ksu-bw iproute2]# ip -6 rule list
0: from all lookup local
32766: from all lookup mainDoes anyone know if there is a debug or "verbose" switch for that mod_interface_route script? (I tried the obvious -v --v)
Thank you,
Casey Russell
Network Engineer
Kansas Research and Education Network
2029 Becker Drive, Suite 282
Lawrence, KS 66047
- [perfsonar-user] Dual Interface system, Casey Russell, 01/24/2015
- RE: [perfsonar-user] Dual Interface system, Garnizov, Ivan (RRZE), 01/26/2015
- Re: [perfsonar-user] Dual Interface system, Casey Russell, 01/26/2015
- Re: [perfsonar-user] Dual Interface system, Casey Russell, 01/26/2015
- Re: [perfsonar-user] Dual Interface system, Casey Russell, 01/26/2015
- RE: [perfsonar-user] Dual Interface system, Garnizov, Ivan (RRZE), 01/26/2015
Archive powered by MHonArc 2.6.16.