Routing – Difference between router leg and static routes

layer3routing

I am looking a L2/L3 switch spec. which says it supports 256 Router Legs and maximum of 32 Static routes.

Can somebody explain with an example, what is the difference between router leg and static route?

Best Answer

By "router leg" they mean a (directly) connected route (and use a strange way of putting it).

What is a connected route compared to a static route?

Connected route (router leg)

A connected route is a route that points to an interface. For example if you configure 10.0.0.1/24 on (ethernet) interface Gi0/1 the directly connected route (the "router leg") is 10.0.0.0/24.

If the router wants to send a packet to a host in the 10.0.0.0/24 network it will do a L2 (Layer2) lookup (ARP for IPv4, ND for IPv6) on the Gi0/1 interface to find the MAC address of the host. It will then send the packet to the MAC address.

One-liner: Connected routes point to an interface, next-hop for packet will be resolved at L2 by ARP/ND on the respective interface.

Static route

A static route points to an IP address. For example you could have route 10.0.0.0/24 pointing to 10.0.2.1. The router will send packets for hosts in the 10.0.0.0/24 network to 10.0.2.1.

For this to work 10.0.2.1 itself must be part of a connected route so that the router can find the right L2 next-hop for the packets.

One-liner: Static routes point to an IP next-hop. The IP next-hop itself will be resolved by L2 lookup on the interface the connected route for the next-hop points to.

One thing you should ask your vendor: If the specs are for IPv4 and for IPv6, and if not how many IPv6 routes you can have for each of the different types.

Related Topic