02-24-2023 07:08 PM - last edited on 02-28-2023 12:57 AM by Translator
im rather new to networking and just learned about static routing. Right now im trying to route the network address of a smoke detector to this router but it fails. All the other ips i used works but this.
The network addresses are such:
192.168.0.0 /25
192.168.0.128 /26
192.168.0.192 /27
192.168.0.224 (router) /30
192.168.0.228 (the one im trying to use) /28
Solved! Go to Solution.
02-24-2023 10:06 PM - last edited on 02-28-2023 01:03 AM by Translator
Hello,
From the output it looks like you need the network address in that statement. You can make the static route 2 ways.
With the whole network:
192.168.0.224 255.255.255.240 192.168.0.226
this is the network youre trying to reach with subnet mask and its next hop (you had 192.168.0.228 with is an exact IP address and needs a /32 mask)
or
With the exact IP:
192.168.0.228 255.255.255.255 192.168.0.226
which is this exact address and the subnet with next hop.
You kind of configured both. The exact IP of the smoke detector along with the "network" it belongs to.
Choose one to see if that works
-David
02-25-2023 12:28 AM - last edited on 02-28-2023 01:03 AM by Translator
Hello,
I opened your file and I think this is what you need:
Router(config)#ip route 192.168.0.224 255.255.255.240 192.168.0.226
Apologies to @David Ruess is you are suggesting the same thing...
02-24-2023 10:06 PM - last edited on 02-28-2023 01:03 AM by Translator
Hello,
From the output it looks like you need the network address in that statement. You can make the static route 2 ways.
With the whole network:
192.168.0.224 255.255.255.240 192.168.0.226
this is the network youre trying to reach with subnet mask and its next hop (you had 192.168.0.228 with is an exact IP address and needs a /32 mask)
or
With the exact IP:
192.168.0.228 255.255.255.255 192.168.0.226
which is this exact address and the subnet with next hop.
You kind of configured both. The exact IP of the smoke detector along with the "network" it belongs to.
Choose one to see if that works
-David
02-25-2023 12:28 AM - last edited on 02-28-2023 01:03 AM by Translator
Hello,
I opened your file and I think this is what you need:
Router(config)#ip route 192.168.0.224 255.255.255.240 192.168.0.226
Apologies to @David Ruess is you are suggesting the same thing...
02-25-2023 01:31 AM
How were you able to identify the ip needed? Because i'm kinda confused why the network address of the router is being used instead of the network address of the smoke detector
02-25-2023 06:29 PM - edited 02-25-2023 06:31 PM
In your case you can do either as I mentioned above.
If you have other devices on that same network then you would likely want the whole network address, because you're routing to the whole network and all devices in it.
If you only wanted to set a route to that IP specifically which is the /32 (usually a special case) then if a packet came in for any other IP for that network then it wouldn't know where to route it because it only has the route of the specific IP.
To your question the smoke detector is a host address...not a network address since its a single host. YOU were putting in the mask of the network address but the IP of the host itself
-David
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