ensp三臺路由開不啓動,改用老h3c虛擬機
學會配置單區域的OSPF
一、實驗目的
理解Route-id的意義
掌握配置單區域OSPF網絡的方法
理解OSPF hello-interval和dead-interval的意義
二、實驗拓撲
R1(s0/2/0) ------ (s0/2/2) R2 (s0/2/0) ----- (s0/2/0)R3
10.0.12.1/24 10.0.12.2/24 10.0.23.2/24 10.0.23.3/24
三、實驗步驟
根據拓撲,在R1,R2和R3上分別配置IP地址,並在各路由器上使用OSPF進行宣告。
<H3C>
%Aug 22 10:03:54:594 2013 H3C SHELL/4/LOGIN: Console login from con0
<H3C>
<H3C>
<H3C>
<H3C>sys
System View: return to User View with Ctrl+Z.
[[r1\]sysname R1
[R1]int s0/2/0
[R1-Serial0/2/0]ip add 10.0.12.1 24
[R1-Serial0/2/0]interface loopback0
[R1-LoopBack0]ip add
[R1-LoopBack0]ip address 1.1.1.1 32
[R1-LoopBack0]ospf
[R1-ospf-1]area 0
[R1-ospf-1-area-0.0.0.0]network 10.0.12.0 0.0.0.255
[R1-ospf-1-area-0.0.0.0]network 1.1.1.1 0.0.0.0
[R1-ospf-1-area-0.0.0.0]q
[R1-ospf-1]q
[R1]dis ip rout
[R1]dis ip routing-table
Routing Tables: Public
Destinations : 3 Routes : 3
Destination/Mask Proto Pre Cost NextHop Interface
1.1.1.1/32 Direct 0 0 127.0.0.1 InLoop0
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
<H3C>
%Aug 22 10:08:06:812 2013 H3C SHELL/4/LOGIN: Console login from con0
<H3C>sys
System View: return to User View with Ctrl+Z.
[H3C]sysname R2
[R2]int s0/2/0
[R2-Serial0/2/0]ip add 10.0.23.2 24
[R2-Serial0/2/0]dis this
#
interface Serial0/2/0
link-protocol ppp
ip address 10.0.23.2 255.255.255.0
#
return
[R2-Serial0/2/0]q
[R2]int s0/2/2
[R2-Serial0/2/2]ip add 10.0.12.2 24
[R2-Serial0/2/2]
%Aug 22 10:11:42:516 2013 R2 IFNET/4/UPDOWN:
Protocol PPP IPCP on the interface Serial0/2/2 is UP
[R2-Serial0/2/2]dis this
#
interface Serial0/2/2
link-protocol ppp
ip address 10.0.12.2 255.255.255.0
#
return
[R2-Serial0/2/2]int
[R2-Serial0/2/2]q
[R2]int s
[R2]int
[R2]interface l
[R2]interface LoopBack 0
[R2-LoopBack0]ip a
[R2-LoopBack0]ip address 2.2.2.2 32
[R2-LoopBack0]q
[R2]ospf 1 router-id 2.2.2.2
[R2-ospf-1]area 0
[R2-ospf-1-area-0.0.0.0]net 10.0.12.0 0.0.0.255
[R2-ospf-1-area-0.0.0.0]net
%Aug 22 10:13:50:469 2013 R2 RM/3/RMLOG:OSPF-NBRCHANGE: Process 1, Neighbor 10.0.12.1(Serial0/2/2) from Loading to Full
[R2-ospf-1-area-0.0.0.0]network 10.0.23.0 0.0.0.255
[R2-ospf-1-area-0.0.0.0]net 2.2.2.2 0.0.0.0
[R2-ospf-1-area-0.0.0.0]q
[R2-ospf-1]q
[R2]dis ip r
[R2]dis ip routing-table
Routing Tables: Public
Destinations : 7 Routes : 7
Destination/Mask Proto Pre Cost NextHop Interface
1.1.1.1/32 OSPF 10 1562 10.0.12.1 S0/2/2
2.2.2.2/32 Direct 0 0 127.0.0.1 InLoop0
10.0.12.0/24 Direct 0 0 10.0.12.2 S0/2/2
10.0.12.1/32 Direct 0 0 10.0.12.1 S0/2/2
10.0.12.2/32 Direct 0 0 127.0.0.1 InLoop0
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
[Huawei]sysname R3
[R3]interface serial 0/0/1
[R3-Serial0/2/0]ip add 10.0.23.3 24
[R3-Serial0/2/0]interface loopback 0
[R3-LoopBack0]ip address 3.3.3.3 32
[R3]ospf router-id 3.3.3.3
[R3-ospf-1]area 0
[R3-ospf-1-area-0.0.0.0]network 10.0.23.0 0.0.0.255
[R3-ospf-1-area-0.0.0.0]network 3.3.3.3 0.0.0.0