ospf實驗筆記(三)

ospf實驗分步作(三)
內容:
OSPF實驗8OSPF Network Type Loopback
OSPF實驗9OSPF Virtual Links - Repairing Area 0
OSPF實驗8OSPF Network Type Loopback
Objective: Configure OSPF area 0 . the Ethernet and Loopback0 interfaces of
R1 andR2. The Loopback networks should appear in the routing table with a mask of /8
 
拓撲:(實驗拓撲來自IEWB)
clip_image001
配置參考
R1 e0/0  10.0.0.1/8
R2 e0/0 10.0.0.2/8
R1 Loopback0 1.1.1.1/8
R2 Loopback0 2.2.2.2/8
All interface to area 0
Examine the routing tables or R1 and R2 and note the mask of the OSPF
routes to the Loopback interfaces
Configure the OSPF network type point-to-point . R1 and R2's
Loopback0 interfaces
模擬器ospf8.net配置
# OSPF實驗8:OSPF Network Type Loopback
autostart = False
eghostios = true
sparsemem = True
[localhost]
port = 7200
udp = 11000
workingdir = ..\tmp\
`3640`
image = ..\IOS\unzip-c3640-ik9o3s-mz.124-10.bin
model = 3640
idlepc = 0x605c9218
exec_area = 64
confreg = 0x2142
# mmap = False
ram = 256
slot0 = NM-1E
`router R1`
model = 3640
console = 3001
exec_area = 64
e0/0 = SW 1
`router R2`
console = 3002
model = 3640
exec_area = 64
e0/0 = SW 2
`ethsw SW`
1 = access 1
2 = access 1
配置
R1上的配置
clip_image002[1]
R2上的配置
clip_image003
在R1和R2上的loopback接口缺省的網絡類型爲都LOOPBACK。接口被視爲“a stub host”
clip_image004[1]
檢查路由表,結果迴環地址被當作一臺主機地址,掩碼位32,無論迴環接口的掩碼是多少。
clip_image005
clip_image006[1]
下面把R1和R2接口的網絡類型都設置成point-to-point。如紅色方框內配置。(這裏列出R1的配置)。
clip_image007[1]
再檢查路由表如下: 
clip_image008[1]
R1中通過OSPF學習到的路由條目:2.0.0.0/8  ,這裏的掩碼是8位。這是R2路由器loopback0 接口上實際掩碼位。這是因爲你在loopback0接口上配置了OSPF類型爲point-to-point。不再視爲主機地址。
clip_image009[1]
R2中對2.0.0.0/8的解釋與上面類同。
OSPF實驗9OSPF Virtual Links - Repairing Area 0
Objective: Configure the OSPF domain between R1, R2, R3, R4, and R5 per
the diagram. Ensure that connectivity is maintained between R4 and
R5 if the link between R1 and R2 is down
clip_image010
配置參考
按上圖配置R1, R2, R3, R4, R5的IP地址 。
配置幀中繼封裝R1 s1/0,R2 s1/0,配置 R1 和R2 三層到二層的映射。
配置R1和R4之間 VLAN 4 網段,R2和R5之間的VLAN B,R1和R2之間的幀中繼網段都劃分到OSPF 區域0
R1 ,R2的S1/0 : OSPF network type: point-to-point
配置 R1 & R3 and R2 & R3  爲area 1
用R1  E0/0 ,R2 E0/0 上接口的IP地址分步作爲R1和R2的ospf router-id 
在R1與R2之間area 1內配置OSPF 虛擬鏈路 。
模擬器ospf9.net內容
autostart = False
eghostios = true
sparsemem = True
[localhost]
port = 7200
udp = 11000
workingdir = ..\tmp\
`3640`
image = ..\IOS\unzip-c3640-ik9o3s-mz.124-10.bin
model = 3640
idlepc = 0x605c9218
exec_area = 64
confreg = 0x2142
# mmap = False
ram = 256
slot0 = NM-1E
slot1 = NM-4T
`router R1`
model = 3640
console = 3001
exec_area = 64
e0/0 = SW 1
S1/0 = FR1 1
s1/1 = R3 S1/2
`router R2`
console = 3002
model = 3640
exec_area = 64
e0/0 = SW 3
s1/0 = FR1 2
S1/1 = R3 S1/3
`router R3`
console = 3003
model = 3640
exec_area = 64
`router R4`
console = 3004
model = 3640
exec_area = 64
E0/0 = SW 2
`router R5`
console = 3005
model = 3640
exec_area = 64
E0/0 = SW 4
`ethsw SW`
1 = access 2 #VLAN A
2 = access 2
3 = access 3 #VLAN B
4 = access 3
`FRSW FR1`
1:102 = 2:201
設備配置
R1上的最終配置
clip_image012[1]
clip_image014[1]
R2上的最終配置
clip_image016[1]
clip_image018[1]
R3上的最終配置
clip_image020[1]
R4上的最終配置
clip_image022[1]
clip_image024[1]
R5上的最終配置
clip_image026[1]
clip_image028[1]
檢查路由
沒有配置虛擬鏈路前
用Show ip ospf neighbor 來顯示OSPF 鄰居
clip_image030
clip_image032
clip_image034
clip_image036
clip_image038
檢查各個設備路由情況
clip_image040
clip_image042
clip_image044
clip_image046
clip_image048
這時如果幀中繼鏈路故障,則會出現兩個area 0,在R4上PING不通R5上E0/0的IP地址,在R5上PING不通R4上E0/0的IP。
clip_image050
R1上沒有25.0.0.0/8網絡的路由。
clip_image052
R2上沒有14.0.0.0/8網絡的路由.
clip_image054
clip_image056
clip_image058
R1和R2都屬於ABR,連接area 0 和area 1,虛擬鏈路總是建立在ABR路由器之間。在每一臺ABR路由器的OSPF配置通過area virtual-link命令來配置,指定虛擬鏈路要穿過的區域和這條鏈路遠端的ABR路由器router-id。
clip_image060
clip_image062
配置虛擬鏈路之後 R1和R2路由表中注意標記框類的路由,接口表示:R1 爲OSPV_VL1
R2爲 OSPF_VL2。
clip_image064
虛擬鏈路的類型爲POINT_TO_POINT。
clip_image066
clip_image068
clip_image070
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章