實驗名稱:作ospf的ad值修改選擇路徑
實驗拓撲
實驗步驟:
配置ip位址
r1:enable
conf t
int f 0/0
no shu
ip add 192.168.12.1 255.255.255.0
exit
int l 0
ip add 10.10.1.1 255.255.255.0
exit
r2:enable
conf t
int f0/1
no shu
ip add 192.168.12.2 255.255.255.0
exit
int l 0
ip add 10.10.2.2 255.255.255.0
exit
int f0/0
no shu
ip add 192.168.23.2 255.255.255.0
exit
r3:enable
conf t
int f0/1
no shu
ip add 192.168.23.3 255.255.255.0
exit
int l 0
ip add 10.10.3.3 255.255.255.0
exit
int f0/0
no shu
ip add 192.168.34.3 255.255.0
exit
r4:enable
conf t
int f0/1
no shu
ip add 192.168.34.4 255.255.255.0
exit
int l 0
ip add 10.10.4.4 255.255.255.0
exit
配置ospf
r1:router os 1
router-id 1.1.1.1
net 192.168.12.0 0.0.0.255 ar 12
net 10.10.1.0 0.0.0.255 ar 12
exit
r2:router os 1
router-id 2.2.2.2
net 192.168.12.0 0.0.0.255 ar 12
net 192.168.23.0 0.0.0.255 ar 0
net 10.10.2.0 0.0.0.255 ar 0
exit
r3:router os 1
router-id 3.3.3.3
net 192.168.23.0 0.0.0.255 ar 0
net 10.10.3.0 0.0.0.255 ar 0
net 192.168.34.0 0.0.0.255 ar 0
exit
r4:router os 1
router-id 4.4.4.4
net 192.168.34.0 0.0.0.255 ar 0
net 10.10.4.0 0.0.0.255 ar 0
exit
配置路由ad值屬性,在r2與r4上建66.1.1.1 修改r4的ad為100,讓
路由往r4走
在r2與r4上新增66.1.1.1
r2:int l 66
ip add 66.1.1.1 255.255.255.0
exit
router os 1
router-id 2.2.2.2
net 66.1.1.1 0.0.0.0 ar 0
exit
r4:int l 66
ip add 66.1.1.1 255.255.255.0
exit
router os 1
router-id 4.4.4.4
net 66.1.1.1 0.0.0.0 ar 0
exit
思路:在r3上做acl允許 ,修改ad值
r3:ip access-list standard 66
10 permit 66.1.1.1
exit
router os 1
distance 100 4.4.4.4 0.0.0.0 66
exit
clear ip os process
yshow ip route os
show ip os database s
思科OSPF的LSA的3類5類彙總小實驗
實驗名稱 作ospf的3類5類彙總 實驗拓撲 實驗步驟 配置ip r1 enable conf t int f 0 0 no shu ip add 192.168.12.1 255.255.255.0 exit int l 0 ip add 10.10.1.1 255.255.255.0 exit ...
Vs2012修改包含路徑的繼承值方法
vs2012及vs2010裡的庫目錄及包含目錄不在像之前的版本那樣,修改一次目錄可以直接包含在所有的解決方案裡,比如用到有關opengl或者opecv函式的庫,就必須在每個解決方案裡包含一次庫目錄及包含目錄,這樣相當麻煩,在這種情況下,我們可以修改包含目錄及庫目錄的預設值,方法如下 此針對vs201...
修改RectTransform的值,修改UI位置
recttrans.setinsetandsizefromparentedge recttransform.edge.left,0,0 recttrans.setinsetandsizefromparentedge recttransform.edge.top,0,0 recttrans.ancho...