Labs: JUNOS OSPF多区域配置 – Part 3

junos_ospf_multiarea

实验演示: JNCIP Labs 1.1: JUNOS OSPF多区域配置 第三部分

点击上文↑链接至YouTube收看高清版本实验视频

4. JUNOS IGP被动通告(PASSIVE)特性

根据实验需求,我们还需要将T1与R3之间的链路以域内路由形式在区域0.0.0.0产生,同时,保证该链路上不会产生OSPF邻接关系。我们可以使用JUNOS对于IGP的被动通告特性,一方面将该接口的IP网段通告至路由协议当中,另一方面则在该接口上抑制Hello包发布,从而使得路由器不会在该链路上建立邻居/邻接关系。

R3 JUNOS 更新配置:

protocols {
    ospf {
        area 0.0.0.0 {
            interface fxp1.34;
            interface fxp1.35;
            interface fxp1.30 {
                passive;
            }
        }
    }
}

查看R5的路由表,确认172.16.0.12/30这个网段已经通过OSPF进入路由表;需要注意的是与IOS不同,在JUNOS中,对于OSPF的域外及域内路由具有不同的优先级(Preference),其中,域内的OSPF Preference为10,而域外的OSPF路由Preference则为150.

nigel@www.itaalab.com# run show route logical-router r5
protocol ospf 172.16/16 

inet.0: 17 destinations, 17 routes (17 active, 0 holddown,
0 hidden)
+ = Active Route, - = Last Active, * = Both

172.16.0.12/30     *[OSPF/10] 00:01:34, metric 20
                    > to 10.0.2.2 via fxp2.35

查看R3的OSPF邻居,确认R3只跟R2/R5建立两个OSPF邻接关系:

nigel@www.itaalab.com# run show ospf neighbor logical-router r3
Address      Interface    State    ID            Pri  Dead
10.0.2.6	fxp1.34         Full    10.0.3.4      128   34
10.0.2.1	fxp1.35         Full    10.0.3.5      128   39

One thought on “Labs: JUNOS OSPF多区域配置 – Part 3

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s