标签:oop loop 不同 process 定义 splay 作用 shutdown 带来
实验名称:OSPF多区域配置;操作步骤如下:
首先,R1配置ip地址、子网掩码:
[R1]interface GigabitEthernet 0/0/0
[R1-GigabitEthernet0/0/0]ip address 192.168.12.1 255.255.255.0
[R1-GigabitEthernet0/0/0]undo shutdown
R1配置loopback地址以及子网掩码
[R1]interface LoopBack 0
[R1-LoopBack0]ip address 10.10.1.1 255.255.255.0
R2配置Gig0/0/0口IP地址、子网掩码:
[R2]interface GigabitEthernet 0/0/0
[R2-GigabitEthernet0/0/0]ip address 192.168.12.2 255.255.255.0
[R2-GigabitEthernet0/0/0]undo shutdown
R2配置Gig0/0/1口IP地址、子网掩码:
[R2]interface GigabitEthernet 0/0/1
[R2-GigabitEthernet0/0/1]ip address 192.168.23.1 255.255.255.0
[R2-GigabitEthernet0/0/1]undo shutdown
R2配置loopback地址以及子网掩码:
[R2]interface LoopBack 0
[R2-LoopBack0]ip address 10.10.2.2 255.255.255.0
R3配置Gig0/0/1口配置IP地址、子网掩码:
[R3]interface GigabitEthernet 0/0/1
[R3-GigabitEthernet0/0/1]ip address 192.168.23.2 255.255.255.0
[R3-GigabitEthernet0/0/1]undo shutdown
R3配置Gig0/0/0口配置IP地址、子网掩码:
[R3]interface GigabitEthernet 0/0/0
[R3-GigabitEthernet0/0/0]ip address 192.168.34.1 255.255.255.0
[R3-GigabitEthernet0/0/0]undo shutdown
R3配置loopback地址以及子网掩码:
[R3]interface LoopBack 0
[R3-LoopBack0]ip address 10.10.3.3 255.255.255.0
R4配置Gig0/0/0口配置IP地址、子网掩码:
[R4]interface GigabitEthernet 0/0/0
[R4-GigabitEthernet0/0/0]ip address 192.168.34.2 255.255.255.0
[R4-GigabitEthernet0/0/0]undo shutdown
R4配置loopback地址以及子网掩码:
[R4]interface LoopBack 0
[R4-LoopBack0]ip address 10.10.4.4 255.255.255.0
验证命令:
display ip routing-table \ 查看路由表中所配置的路由条目
其次,在R1上配置ospf配置,并且进行宣告:
R1配置ospf及路由宣告,并且在创建ospf的同时配置router-id:
[R1]ospf router-id 1.1.1.1
[R1-ospf-1]area 0
[R1-ospf-1-area-0.0.0.0]network 192.168.12.1 0.0.0.0
[R1-ospf-1-area-0.0.0.0]network 10.10.1.1 0.0.0.0
R2配置ospf及路由宣告,并且在创建ospf的同时配置router-id:
[R2]ospf router-id 2.2.2.2
[R2-ospf-1]area 0
[R2-ospf-1-area-0.0.0.0]network 192.168.12.2 0.0.0.0
[R2-ospf-1-area-0.0.0.0]network 10.10.2.2 0.0.0.0
[R2-ospf-1-area-0.0.0.0]area 24
[R2-ospf-1-area-0.0.0.24]network 192.168.23.1 0.0.0.0
R3配置ospf及路由宣告,并且在创建ospf的同时配置router-id:
[R3]ospf router-id 3.3.3.3
[R3-ospf-1]area 24
[R3-ospf-1-area-0.0.0.24]network 192.168.23.2 0.0.0.0
[R3-ospf-1-area-0.0.0.24]network 192.168.34.1 0.0.0.0
[R3-ospf-1-area-0.0.0.24]network 10.10.3.3 0.0.0.0
R4配置ospf及路由宣告,并且在创建ospf的同时配置router-id:
[R4]ospf router-id 4.4.4.4
[R4-ospf-1]area 24
[R4-ospf-1-area-0.0.0.24]network 192.168.34.2 0.0.0.0
[R4-ospf-1-area-0.0.0.24]network 10.10.4.4 0.0.0.0
验证命令:
display ospf peer brief
通过R4 ping R1的loopback地址。
标签:oop loop 不同 process 定义 splay 作用 shutdown 带来
原文地址:http://blog.51cto.com/13557929/2062234