4 configuring ospf, 5 configuring ospf interface parameters, 6 displaying neighbors – Black Box LR1102A-T1/E1 User Manual

Page 98: 7 displaying ospf routes, 8 displaying ip routes, Configuring ospf, Configuring ospf interface parameters, Displaying neighbors, Displaying ospf routes, Displaying ip routes

Advertising
background image

Black Box LR11xx Series Router Configurations Guide

100

17.1.4Configuring ospf

LR1114A/configure> router routerid 10.10.10.1

LR1114A/configure> router ospf

LR1114A/configure/router/ospf> area 760

LR1114A/configure/router/ospf/area 760> exit

17.1.5Configuring ospf interface parameters

LR1114A/configure/router/ospf> interface Dallas area_id 760

LR1114A/configure/router/ospf/interface Dallas> exit

LR1114A/configure/router/ospf> interface ethernet0 area_id 760

LR1114A/configure/router/ospf/interface ethernet0> exit 3

17.1.6Displaying neighbors

Note that “display” and “show” can be used interchangeably in the CLI tree hierarchy.

Execute show ip ospf neighbor list on the Black Box LR1114A to display the neighbor information. In this example, the
state is in FULL adjacency with the router.

Figure 34 show ip ospf neighbor list Command

17.1.7Displaying ospf routes

Execute show ip ospf routes on the Black Box LR1114A to display the OSPF routes learned from neighbors. The
following display shows the route 30.30.30.0/24, which was learned through OSPF from the router advertisements.

Figure 35 show ip ospf routes Command

The metric shows a value of 2. By default, Black Box assigns a cost value of 1 to all interfaces. The cost can be
changed by entering it under the appropriate interface in the OSPF command tree structure. For example:

LR1114A/configure> router ospf

LR1114A/configure/router/ospf> interface Dallas area_id 760

LR1114A/configure/router/ospf/interface/Dallas> cost 10

LR1114A/configure/router/ospf/interface/Dallas> exit 3

This would change the cost of bundle link Dallas from default (1) to 10. If the interface is already configured, then
entering area_id 760 is optional.

17.1.8Displaying IP routes

Execute show ip routes to display all the active routes in the routing table.

LR1114A> show ip ospf neighbor list

Neighbor ID PRI State Dead Time Address Interface

----------- --- ----- --------- ------- ---------

30.30.30.1 1 FULL/ - 00:00:30 20.20.20.2 TMan1

LR1114A> show ip ospf routes

OSFP ROUTE TABLE

Codes: A - OSPF intra area IA - OSPF inter area,

E1 - OSPF external type 1, E2 - OSPF external type 2

Destination Gateway Interface Protocol Type Metric

Preference

----------- ------- --------- -------- ---- ------

----------

Advertising
This manual is related to the following products: