末节区域,完全末节区域,ospf以及rip,实验配置

末节区域,完全末节区域,ospf以及rip,实验配置

1 首先配置各端口;

2 然后再配置ospf,接着rip

3最后配置末节区域,完全末节区域;

4 配置R5时,应为下面没有接口,要配置回环,下面就是详细步。

      R1ospf

[Huawei-ospf-1]area 1

      [Huawei-ospf-1-area-0.0.0.1]network192.168.1.0 0.0.0.255(反掩码)

末节区域:

[Huawei-ospf-1-area-0.0.0.1]stub

<Huawei>dis ip rou


[Huawei-ospf-1]area 0

[Huawei-ospf-1-area-0.0.0.0]network192.168.2.0 0.0.0.255

[Huawei-ospf-1]area 1

[Huawei-ospf-1-area-0.0.0.0]network192.168.1.0 0.0.0.255

(注释:删除ospf配置的宣告网段

[Huawei-ospf-1]area 2

[Huawei-ospf-1-area-0.0.0.2]undonetwork 192.168.2.0 0.0.0.255

[Huawei-ospf-1-area-0.0.0.2]undoarea 0.0.0.2

Rip:

[Huawei-rip-1]network192.168.4.0

[Huawei-rip-1]network192.168.5.0

末节区域:

[Huawei-ospf-1]import-routerip 宣告rip

[Huawei-rip-1]default-routeoriginate拉入区域

<Huawei>dis iprou

R2ospf

[Huawei-ospf-1]area 0

[Huawei-ospf-1-area-0.0.0.0]network192.168.2.0 0.0.0.255

[Huawei-ospf-1]area 1

[Huawei-ospf-1-area-0.0.0.0]network192.168.1.0 0.0.0.255

(注释:删除ospf配置的宣告网段

[Huawei-ospf-1]area 2

[Huawei-ospf-1-area-0.0.0.2]undonetwork 192.168.2.0 0.0.0.255

[Huawei-ospf-1-area-0.0.0.2]undoarea 0.0.0.2

Rip:

[Huawei-rip-1]network192.168.4.0

[Huawei-rip-1]network192.168.5.0

末节区域:

[Huawei-ospf-1]import-routerip 宣告rip

[Huawei-rip-1]default-routeoriginate拉入区域

<Huawei>dis ip rou


R3ospf

[Huawei-ospf-1]area 0

[Huawei-ospf-1-area-0.0.0.0]network192.168.2.0 0.0.0.255

[Huawei-ospf-1]area 2

[Huawei-ospf-1-area-0.0.0.0]network192.168.3.0 0.0.0.255

末节区域:

[Huawei-ospf-1-area-0.0.0.2]stub


<Huawei>dis iprou


R4   ospf

[Huawei-ospf-1]area 2

[Huawei-ospf-1-area-0.0.0.2]network192.168..0 0.0.0.255

完全末节区域

Stub no-summary


<Huawei>dis ip rou


R5配置端口,

回环; 进端口[Huawei]int eth 0/0/0

ip

[Huawei-Ethernet0/0/0]ipadd 192.168.5.1 255.255.255.0


loopbacklocal [Huawei-Ethernet0/0/0]loopbacklocal


Rip

<Huawei>dis ip rou


如有疑问可以详询qq:282098221,互相探讨。《附件》




你可能感兴趣的:(f,rip,完全末节区域)