Juniper路由器配置OSPF

  • 格式:doc
  • 大小:17.50 KB
  • 文档页数:4

Juniper路由器配置OSPF

本文介绍了在Juniper路由器里配置OSPF动态路由协议的方法,包括:配置单区域OSPF、配置多区域OSPF、配置Stub Area、配置OSPF Virtual Link、配置OSPF Router Interfaces、配置OSPF验证等,详细的操作步骤请查看以下内容。

1、配置单区域OSPF

[edit]

user@host# set protocols ospf area 0 interface ge-0/0/0

INIT

2way

Exstart

Exchange

FULL

[edit]

user@host# show protocols ospf

ospf {

are.0 {

interface ge-0/0/0.0;

}

}

2、配置多区域OSPF

[edit]

user@host# show protocols ospf

ospf {

are.0 {

interface ge-0/0/0.0;

}

} [edit]

user@host# set protocols ospf area 1 interface at-0/1/1.100

[edit]

user@host# show protocols ospf

ospf {

are.0 {

interface ge-0/0/0.0;

}

are.1 {

interface at-0/1/1.100;

}

3、配置Stub Area

[edit protocols ospf area area-id ]

stub <(no-summaries | summaries)>;

配置a Not-So-Stubby Area

[edit protocols ospf area area-id ]

nssa {

area-range network/mask-length ;

default-lsa {

default-metric metric;

metric-type type;

type-7;

}

(no-summaries | summaries);

}

4、配置OSPF Virtual Link 使用virtual Link 连接防止环路。

[edit protocols ospf are.0]

virtual-link neighbor-id router-id transit-area area-id;

5、配置OSPF Router Interfaces

Configuring an Interface on a Broadcast or Point-to-Point Network

[edit protocols ospf area area-id ]

interface interface-name;

Configuring an Interface on a Point-to-Multipoint Network

[edit protocols ospf are.0]

interface interface-name {

neighbor address;

}

Configuring an Interface on a Nonbroadcast, Multiaccess Network

[edit protocols ospf area 0]

interface interface-name {

interface-type nbma;

neighbor address ;

poll-interval seconds;

}

6、配置OSPF验证

可以使simple和MD5

[edit protocols ospf area area-id ]

authentication-type authentication;

[edit protocols ospf area area-id interface interface-name]

authentication {

md5 key-id { key [ key-values ];

}

simple-password key-id;

}