Adding Metric and Metric Type for Route Maps

Route maps are the only way to associate a redistribute metric and metric-type for OSPFv3 and the metrics are not configurable using the current OSPF commands. Route maps are another method to configure metric and metric-type on routers. Configuration of metrics and metric-type for OSPFv3 requires route maps.

CLI network-admin@Leaf1 > vrouter-route-map-add

metric none

Specify a metric for the route map.

metric-type none|1|2

Specify the metric type.

The new parameters also apply to the vrouter-route-map-modify and vrouter-route-map-show commands.

You can also specify metrics and route maps for vRouters configured as OSPF and BGP vRouters.

CLI network-admin@Leaf1 > vrouter-modify

bgp-redist-static-route-map vrouter route-map name

Specify the route map for BGP redistribution of static routes.

bgp-redist-connected-route-map vrouter route-map name

Specify the route map for BGP redistribution of connected routes.

bgp-redist-ospf-route-map vrouter route-map name

Specify the route map for BGP redistribution of OSPF routes.

ospf-redist-static-route-map vrouter route-map name

Specify the route map for OSPF redistribution of static routes.

ospf-redist-connected-route-map vrouter route-map name

Specify the route map for OSPF redistribution of connected routes.

ospf-redist-bgp-route-map vrouter route-map name

Specify the route map for OSPF redistribution of BGP routes.

Configuring Routing Information Protocol (RIP)

Routing Information Protocol (RIP) is the oldest routing protocol and provides networking information to routers. Routers need to know what networks are available and how the distance required to reach it.

RIP is a distance vector protocol, and uses hop counts to determine distance and destination. Every 30 seconds, RIP sends routing information to UDP port 50. If the router is default gateway, it advertises itself by sending 0.0.0.0 with a metric of 1.

Figure 3:I RIPTopology

RIP-example-topology.png

1. Create vRouter1 on VLAN33:

vrouter-create name vrouter1 fabricname-global router-type hardware

You can also specify how RIP routes are distributed using the parameter, rip-redistribute

static|connected|ospf|bgp.

Add network 10.16.33.0/24 to vrouter1:

vrouter-rip-add vrouter-name vrouter1 network 10.16.33.0/24 metric 2

Add network 10.16.35.0/24 to vrouter1:

vrouter-rip-add vrouter-name vrouter1 network 10.16.55.0/24 metric 2

To view the configuration, use the vrouter-rip-show command. This displays all RIP routes configured using the vrouter-rip-add command.

To view RIP routes not configured using the vrouter-rip-add command, use the
vrouter-rip-routes-show command.