cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
598
Views
10
Helpful
4
Replies

inconsistent ip and subnet

Jonas Ho
Level 1
Level 1

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.

JonasHo_1-1677294148939.png

JonasHo_4-1677294287399.png

 

JonasHo_2-1677294261216.png

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

 

2 Accepted Solutions

Accepted Solutions

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

View solution in original post

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...

View solution in original post

4 Replies 4

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

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...

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

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

Review Cisco Networking for a $25 gift card