Switching & Routing Lab Q# 7 & 8

I need clarification on how to complete Q# 7 & 8
for #7 did try sudo ip addr add 172.16.239.10/24 dev eth0
Is there something I am missing? Is there another command that needs to follow?

#8 Entered:
sudo ip route add 172.16.239.0/24 via 172.16.238.10
sudo ip route add 172.16.238.0/24 via 172.16.239.10
Not working???

Also, in #6 how does it know to replace the new ip addresses with the old ones as we are not specifying which belongs to app01 - app04. How does it know which ones to replace?
How does it remove old ip addresses assigned? is it just over written???

It’s an initial problem in the lab and we are still investigating on it.

I have the same issue here. The hints are not working for me at questions 7 a 8. Any clarification of that will be great.

Thank you!

I also have the same problem and let us know are these questions are valid or not.
I feel the questions are valid but for these to work i think the settings should be changed in /etc/sysconfig - file

Hello, @SunilKirangi
Can you please explain a little bit more? In which question? So I can help you to troubleshoot.

I also faced the same issue with Q 7 & 8 of switching and routing.

Hi,
There are multiple queries on Switching and Routing Lab’s questions # 7 and # 8-can you please provide a response to it. Thanks.

@temptemp Before Q7 you can see that the ip address in the jump server in eth0 interface is with ip

thor@jump_host /$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
11: eth0@if12: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default
link/ether 02:42:ac:10:ee:0a brd ff:ff:ff:ff:ff:ff link-netnsid 0
inet 172.16.238.10/24 brd 172.16.238.255 scope global eth0
valid_lft forever preferred_lft forever

In Q6 we are changing the ipaddress of the app servers using ip addr commands. For eg, app01: sudo ip addr add 172.16.238.15/24 dev eth0

We are assigning different range on app03 and app04. . so we add the ip using ip addr command

sudo ip addr add 172.16.239.10/24 dev eth0

thor@jump_host /$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
7: eth0@if8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default
link/ether 02:42:ac:10:ee:0a brd ff:ff:ff:ff:ff:ff link-netnsid 0
inet 172.16.238.10/24 brd 172.16.238.255 scope global eth0
valid_lft forever preferred_lft forever
inet 172.16.239.10/24 scope global eth0
valid_lft forever preferred_lft forever

you can see route is added in the route table. .

thor@jump_host /$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default gateway 0.0.0.0 UG 0 0 0 eth0
172.16.238.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
172.16.239.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0

Now you can ssh to other app servers…

Thanks. I will go through the questions again.

Hey Team,

Question 7 and 8 have still the same issue, can you please fix it or provide the correct solution?

I have used the command as per the hint but it is not working.

@LVerma, please let me know the exact issue you are facing. Please check the solution provided above and let me know the issue.

Thanks for your response.

2nd last question:

I have executed the command as per the hint:

But still getting this error:

image

Can you please tell, what am I missing here?

Also, in the last question as well I have used the same command as per hint but it is also not working:

image

image

Please help me resolve and understand these 2 questions.

Thank you :slight_smile:

I am having same issues. And I am not sure we have a response yet. Anyone at kodeKloud Can please provide more details.?

Hi KodeKloud. I have same kind of problem mentioned in this thread. Kindly guide us here.

Have you found the answers of the questions you have posted?

I am still waiting for their reply.

Hi LVerma. This is the solution of this exercise of question 7 & 8. Follow it from question 6 then you will able to pass question 7.
AssignIps kodekloud

4 Likes

I really appreciate your efforts of explaining the steps using visuals. Thanks for your help :slight_smile: I was able to answer all the questions correctly now.

Thank you @multiverse … I was also stuck at the same place in question 6 of this lab

Hi Team, I would like to thanks KodeKloud team its very nice practice lab as well as individual topics

In Switching & Routing Lab Q# 9: I am able to ping App01 to other Apps but still error showing unable to ping app04