rendered paste body(3 machines: 192.168.0.10, 1 NIC, plugged into a hub.
10.0.1.10, 1 NIC, plugged into the same hub.
192.168.0.1/10.0.1.1, cisco router, gateway for both subnets, plugged into same hub)
(on 192.168.0.10)
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
# traceroute 10.0.1.10
traceroute to 10.0.1.10 (10.0.1.10), 30 hops max, 38 byte packets
1 192.168.0.1 (192.168.0.1) 1.061 ms 0.947 ms 0.902 ms
2 10.0.1.10 (10.0.1.10) 1.858 ms 1.672 ms 1.746 ms
# route add -net 10.0.1.0 netmask 255.255.255.0 eth0
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.1.0 * 255.255.255.0 U 0 0 0 eth0
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
# traceroute 10.0.1.10
traceroute to 10.0.1.10 (10.0.1.10), 30 hops max, 38 byte packets
1 10.0.1.10 (10.0.1.10) 1.699 ms 1.036 ms 0.974 ms
#
(on 10.0.1.10)
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.1.0 * 255.255.255.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 10.0.1.1 0.0.0.0 UG 0 0 0 eth0
# traceroute 192.168.0.10
traceroute to 192.168.0.10 (192.168.0.10), 30 hops max, 38 byte packets
1 10.0.1.1 (10.0.1.1) 0.970 ms 0.965 ms 0.909 ms
2 192.168.0.10 (192.168.0.10) 1.631 ms 1.787 ms 1.731 ms
# route add -net 192.168.0.0 netmask 255.255.255.0 eth0
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
10.0.1.0 * 255.255.255.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
# traceroute 192.168.0.10
traceroute to 192.168.0.10 (192.168.0.10), 30 hops max, 38 byte packets
1 192.168.0.10 (192.168.0.10) 1.618 ms 1.033 ms 1.010 ms
#