OSPF 和stub 基本配置
R1:G0/0/0
IP:192.168.12.2 /24
R2:G0/0/1
Ip:192.168.12.1 /24
G0/0/0
192.168.24.1 /24
R3:G0/0/0
IP:192.168.24.2 /24
G0/0/1
Ip:192.168.34.1 /24
R4:G0/0/0
Ip:192.168.34.2 /24
G0/0/1
Ip:192.168.45.1 /24
R5:G0/0/0.
Ip:192.168.45.2 /24
創建OSPF並未路由器配置路由ID:
[Huawei]ospf 1 router-id 1.1.1.1 //創建OSPF模式並未路由配置ID
[Huawei-ospf-1]area 12 //為OSPF劃分區域
[Huawei-ospf-1-area-0.0.0.12]network 192.168.12.0 0.0.0.255
[Huawei]dis ospf brief //查看OSPF摘要信息
R2:
Huawei]ospf 1 router-id 2.2.2.2 //創建OSPF模式並未路由配置ID
Huawei-ospf-1]area 12 //為OSPF劃分區域
[Huawei-ospf-1-area-0.0.0.12]network 192.168.12.0 0.0.0.255
[Huawei-ospf-1-area-0.0.0.12]quit //退出12區域
[Huawei-ospf-1]area 0 //建立0區域
[Huawei-ospf-1-area-0.0.0.0]network 192.168.24.0 0.0.0.255
[Huawei]dis ospf brief //查看OSPF摘要信息
R3:
Huawei]ospf 1 router-id 3.3.3.3 //創建OSPF模式並未路由配置ID
[Huawei-ospf-1]area 0 //建立0區域
network 192.168.24.0 0.0.0.255
network 192.168.34.0 0.0.0.255 //在區域中宣告網絡
[Huawei]dis ospf brief //查看OSPF摘要信息
R4:
[Huawei]ospf 1 router-id 4.4.4.4 //創建OSPF模式並未路由配置ID
[Huawei-ospf-1]area 0 ////建立0區域
//在區域中宣告網絡
[Huawei]dis ospf brief //查看OSPF摘要信息
[Huawei-ospf-1-area-0.0.0.0]quit//退出
[Huawei-ospf-1]area 45 //建立45區域
[Huawei-ospf-1-area-0.0.0.45]network 192.168.45.0 0.0.0.255
//在區域中宣告網絡
[Huawei]dis ospf brief //查看OSPF摘要信息
[Huawei]ospf 1 router-id 5.5.5.5 ////創建OSPF模式並未路由配置ID
[Huawei-ospf-1]area 45 //建立45區域
[Huawei-ospf-1-area-0.0.0.45]network 192.168.45.0 0.0.0.255
//在區域中宣告網絡
[Huawei]dis ospf brief //查看OSPF摘要信息
[Huawei]ping 192.168.45.2 驗證
實驗二stub區域配置:
R1:[Huawei]ospf 1
Huawei-ospf-1]area 12
[Huawei-ospf-1-area-0.0.0.12]stub
R2:[Huawei]ospf 1
[Huawei-ospf-1]area 12
[Huawei-ospf-1-area-0.0.0.12]stub no-summary
OSPF 和stub 基本配置