Router ospf – Enterasys Networks X-Pedition XSR CLI User Manual

Page 177

Advertising
background image

OSPF Commands

XSR CLI Reference Guide 5-101

Syntax of the “no” Form

The no form of this command cancels the redistribution of routes:

no redistribute from_protocol [metric metricvalue]

Mode

Router configuration: 

XSR(config-router)#

Default

Disabled

Examples

This example redistributes static routes from 5 hops away into RIP:

XSR(config-router)#router rip
XSR(config-router)#redistribute static 5

The following example redistributes intrainter and external OSPF routes into RIP:

XSR(config-router)#redistribute ospf match internal match external

The following example imports all OSPF routes into RIP with the default RIP metric of 1. It is 
equivalent to the command entered earlier.

XSR(config-router)#redistribute ospf

router ospf

This command enables the Open Shortest Path First (OSPF) protocol.

Syntax

router ospf process-id

Syntax of the “no” Form

The no form of this command disables OSPF:

no router ospf process-id

Mode

Global configuration: 

XSR(config)#

metric-value

Cost of a route being redistributed into OSPF, ranging from 0 to 16,777,214.

metric-type

OSPF exterior metric type.

1/2

OSPF external Type 1 or 2 metrics.

route-map-
number

Number of the associated route map.

process-id

Process ID number.

Advertising