Since now app03 and app04 are on different network range than jump host so you are not able to SSH into those hosts from jump host. To make SSH work make required changes on jump host.
a. Assign a new IP address 172.16.239.10/24 to jump host with same network range which app03 and app04 are using.
b. Now you will be able to SSH into all apps from jump host.
NOTE After the change, you may experience a delay when trying to SSH from the jump server to the app servers.
Question:How to ssh into all apps
lab 9
Now jump host is able to access all four apps. But if you try to ping app03 or app04 from app01 or app02 or vice versa you will see ping is not working. So now we want to use jump host as a router so that app01 and app02 can access app03 and app04 and vice versa, lets add some routing table entries on these hosts to make it work.
a. Add a routing table entry in app01 and app02 hosts so that these hosts can reach app03 and app04 hosts via jump host.
b. Add a routing table entry in app03 and app04 hosts so that these hosts can reach app01 and app02 hosts via jump host.
c. Now try to ping app03 and app04 from app01 and app02 and vice versa, every app should be able to ping each other.
Verify app01 is able to ping app02, app03 and app04
Verify app02 is able to ping app01, app03 and app04
Verify app03 is able to ping app01, app02 and app04
Verify app04 is able to ping app01, app02 and app0
Hi everyone, I just started this course.
I’m confused about this cmd “sudo ip route add 172.16.238.0/24 via 172.16.239.10” in Q9.
I don’t understand where are these 172.16.238.0/24 and 172.16.239.10 from? Can I use other ip address such as 172.16.238.2/24 or 172.16.239.13 ?
Hi @spur You need to be on the main thor@jump_host ~$ and here you need to type:
thor@jump_host ~$ ip route
default via 172.16.238.1 dev eth0
172.16.238.0/24 dev eth0 proto kernel scope link src 172.16.238.10
172.16.239.0/24 dev eth0 proto kernel scope link src 172.16.239.10
as you can see you find the linking IP addresses 172.16.238.10 and 172.16.239.10
What step in the lab are you in at this point? Assuming you assigned each of the app* hosts to the right IP address previously, this would suggest that you cannot get to app03 and app04 but that you should be able to ssh to app01 and app02. This is true until you assign an additional IP to jumphost that’s on the same network as app03 and app04.
If you can’t ssh into app01 and app02, it’s probably because you made an error of some kind before that point.
What step in the lab are you at the point of your image, and how did you get there?