Enterasys Networks XSR CLI Router User Manual


 
OSPF Commands
5-100 Configuring the Internet Protocol
Mode
Routerconfiguration:XSR(config-router)#
Defaults
Disabled
•Costs:LAN‐10,Serial‐64
Example
Inthisexample,threeroutersareconfiguredtorunOSPF.RouterR1andR3areinternalrouters.
R1isinternaltoarea1,andR3internaltoarea0.R2isanAreaBorderRouter(ABR).Enterthe
followingcommandsonR1:
XSR(config)#interface fastethernet 1
XSR(config-if<F1>)#ip address 131.108.1.1 255.255.255.0
XSR(config)#router ospf 1
XSR(config-router)#network 131.108.1.0 0.0.255.255 area 1
OnR2(ABR),enterthefollowingcommands:
XSR(config)#interface fastethernet 2
XSR(config-if<F2>)#ip address 131.108.1.2 255.255.255.0
XSR(config)#interface serial 1/0
XSR(config-if<S1/0>)#ip address 131.108.2.3 255.255.255.0
XSR(config)#router ospf 1
XSR(config-router)#network 131.108.1.0 0.0.0.255 area 1
XSR(config-router)#network 131.108.2.0 0.0.0.255 area 0
OnR3,enterthefollowingcommands:
XSR(config)#interface serial 1/0
XSR(config-if<S1/0>)#ip address 131.108.2.4 255.255.255.0
XSR(config)#interface fastethernet 1
XSR(config-if<F1>)#ip address 110.0.0.4 255.0.0.0
XSR(config)#router ospf 1
XSR(config-router)#network 131.108.2.0. 0.0.0.255 area 0
XSR(config-router)#network 110.0.0.0 0.255.255.255 area 0
redistribute
ThiscommandredistributesstaticorRIProutesintoOSPF.
Syntax
redistribute {rip | bgp | static | connected}[metric metric-value][metric-type 1
| 2][route-map-number][tag tag-value]
rip
ImportsRIProutes.
bgp
ImportsBGProutes.
static
Importsstaticroutes.
connected
Importsconnectedroutes.