For more details, please see ourCookie Policy.

Ethernet Switches & Routers

Not applicable
Posts: 1
Registered: ‎07-30-2013

Static Route Command

I am having a moment...where I am forgetting how they work.

ip route

Does this command make it so the ENTIRE subnet is pointed at .25 or that only .15 is pointed at .25????


Posts: 22
Registered: ‎11-12-2012

Re: Static Route Command

static routes are used to send traffic to a destination. in your case, you would need to input

ip route

What this says, it that and traffic looking for a destination of to will be sent towards

This can be multiple hops away if the next routers also have a route to

Hope this helps you out.


Joe Lentine BCNE
Occasional Contributor
Posts: 6
Registered: ‎07-24-2013

Re: Static Route Command

Hi Daine,

Make sure that you are able to reach to forward any traffic destined to

Thank you,

P Phani.

Occasional Contributor
Posts: 17
Registered: ‎08-09-2013

Re: Static Route Command

Hello DDemers,

  Though your post was a while ago, I thought I would still offer a reply.

When you are doing static routes, the netmask determines which octets (the IP address) the router looks for in order to forward to a specific "next-hop". In your example of "ip route" your netmask is technically incorrect. Should you be looking to route 1 specific IP address within a subnet you would want to route a /32

Thus you would state "ip route"

Regarding a /24 route, dlentine's response is partially correct. Rather the router will use the network address and broadcast address to determine traffic forwarding (*NOTE* this is an oversimplified and reduced explanation, but sufficient for a forum post) Therefore in the case of a /24 the network address is .0 and the broadcast is .255 and anything in between will get routed to the next-hop (in your case, the destination is

We could then summarize a static route statment as:
"ip route destination_network_address destination_netmask next_hop"

Further, I feel I must also highlight that static routing is not fault tolerant. Statically routing infers that the network is not aware of its neighbours. Consequently, should something occur your network would not be able to adapt. Once you have gained a greater understanding of IP addressing (ipv4) i would highly recommend investigating dynamic routing protocols such as OSPF and iBGP.

I hope I provided some useful information for you.



Join the Community

Get quick and easy access to valuable resource designed to help you manage your Brocade Network.