Hi *,
I need routing help. All my machines run ubuntu linux.
I have 2 local networks:
N1: 10.0.0.0/16 is the main network
N2: 10.2.0.0/16 is my infiniband ipoib network
There is an edge router that performs NAT/routing functions to the internet.
R1: 10.0.0.1
There are 3 hosts:
H1: 10.0.0.2(N1) and 10.2.0.2(N2)
H2: 10.0.0.3(N1) and 10.2.0.3(N2)
H3: 10.0.0.117(N1) <-- this is my laptop
All 3 hosts have R1 configured as default gateway.
I want to be able to ping addresses on N2 from H3. This seems to be much harder to do then I thought.
I tried this:
Setup ip forwarding on H1 with: sudo sysctl -w net.ipv4.ip_forward=1. and adding a route on H3 with: sudo ip route add 10.2.0.0/16 via 10.0.0.2 dev eth0 .
As far as I understand routing, that should be enough, so clearly I am missing something. Can anyone help me out?
I need routing help. All my machines run ubuntu linux.
I have 2 local networks:
N1: 10.0.0.0/16 is the main network
N2: 10.2.0.0/16 is my infiniband ipoib network
There is an edge router that performs NAT/routing functions to the internet.
R1: 10.0.0.1
There are 3 hosts:
H1: 10.0.0.2(N1) and 10.2.0.2(N2)
H2: 10.0.0.3(N1) and 10.2.0.3(N2)
H3: 10.0.0.117(N1) <-- this is my laptop
All 3 hosts have R1 configured as default gateway.
I want to be able to ping addresses on N2 from H3. This seems to be much harder to do then I thought.
I tried this:
Setup ip forwarding on H1 with: sudo sysctl -w net.ipv4.ip_forward=1. and adding a route on H3 with: sudo ip route add 10.2.0.0/16 via 10.0.0.2 dev eth0 .
As far as I understand routing, that should be enough, so clearly I am missing something. Can anyone help me out?