07-04-2022 07:18 PM
i tried pinging from PC-0 to PC-2 but it says request time out. i tried doing stuff I know alr such as IP routing, setting IP addresses and I still cant get it to work. anyone could help me out?
Solved! Go to Solution.
07-04-2022 08:19 PM
Hello,
Your static addresses are not right. If you want to fix them and use static routing delete all of them and start over. Use this syntax:
ip route <network you want to get to> <subnet mask of that network> <exit interface>
So for instance you have R2. You need to get to networks on R1. They are:
22.11.100.48 255.255.255.248
22.11.100.64 255.255.255.248
The network address is the first IP that is not used in a block.
So to create static routes on R2 to get to R1 it would look like this:
ip route 22.11.100.32 255.255.255.224 S0/0/0
ip route 22.11.100.64 255.255.255.248 S0/0/0
Do the same on R1. Configure routes to get to R2. Configure both networks and masks and you can either configure the exit interface or the next hop IP. Once I got rid of all your static routes and put those 2 in R2 and the other 2 in R1 it worked. Also I changed PC2 IP to be 22.11.100.49 since its last octet was .33 for some reason.
P.S. You dont need static networks to point to networks on the local router since it already knows how to get there.
Hope that helps.
-David
07-04-2022 08:19 PM
Hello,
Your static addresses are not right. If you want to fix them and use static routing delete all of them and start over. Use this syntax:
ip route <network you want to get to> <subnet mask of that network> <exit interface>
So for instance you have R2. You need to get to networks on R1. They are:
22.11.100.48 255.255.255.248
22.11.100.64 255.255.255.248
The network address is the first IP that is not used in a block.
So to create static routes on R2 to get to R1 it would look like this:
ip route 22.11.100.32 255.255.255.224 S0/0/0
ip route 22.11.100.64 255.255.255.248 S0/0/0
Do the same on R1. Configure routes to get to R2. Configure both networks and masks and you can either configure the exit interface or the next hop IP. Once I got rid of all your static routes and put those 2 in R2 and the other 2 in R1 it worked. Also I changed PC2 IP to be 22.11.100.49 since its last octet was .33 for some reason.
P.S. You dont need static networks to point to networks on the local router since it already knows how to get there.
Hope that helps.
-David
07-05-2022 07:50 AM - edited 07-05-2022 07:51 AM
i put as 33 because it was part of my project which needed me to set up subnets and create IP addresses. the file below are the IP addresses I used and I created them using vlsm and calculated the length of the subnet mask and the IP addresses from scratch for pc2 it needed 27 subnets thus minimum needed is 31 subnets and mask would be 255.255.255.224 thus my first usable after the that would be 22.11.100.33 since my IP for that address is 22.11.100.32
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide