RA(config)#interface Loopback0
RA(config-if)#ip address 1.1.1.1 255.255.255.0
RA(config-if)#ip ospf network point-to-point
RA(config-if)#exit
RA(config)#interface Serial1/0
RA(config-if)#ip address 200.200.10.1 255.255.255.0
RA(config-if)#no shutdown
RA(config-if)#exit
RA(config)#router ospf 1
RA(config-router)#network 1.1.1.0 0.0.0.255 area 1
RA(config-router)#network 200.200.10.0 0.0.0.255 area 1
RA(config-router)#exit
RB(config)#interface Loopback0
RB(config-if)#ip address 2.2.2.2 255.255.255.0
RB(config-if)#ip ospf network point-to-point
RB(config-if)#exit
RB(config)#interface Serial1/0
RB(config-if)#ip address 200.200.10.2 255.255.255.0
RB(config-if)#no shutdown
RB(config-if)#exit
RB(config)#interface Serial1/1
RB(config-if)#ip address 200.200.20.1 255.255.255.0
RB(config-if)#no shutdown
RB(config-if)#exit
RB(config)#router ospf 1
RB(config-router)#network 200.200.10.0 0.0.0.255 area 1
RB(config-router)#network 200.200.20.0 0.0.0.255 area 0
RB(config-router)#network 2.2.2.0 0.0.0.255 area 0
RB(config-router)#exit
RC(config)#interface Loopback0
RC(config-if)#ip address 3.3.3.3 255.255.255.0
RC(config-if)#ip ospf network point-to-point
RC(config-if)#exit
RC(config)#interface Serial1/1
RC(config-if)#ip address 200.200.20.2 255.255.255.0
RC(config-if)#no shutdown
RC(config-if)#exit
RC(config)#interface Serial1/0
RC(config-if)#ip address 200.200.30.1 255.255.255.0
RC(config-if)#no shutdown
RC(config-if)#exit
RC(config)#router ospf 1
RC(config-router)#network 3.3.3.0 0.0.0.255 area 0
RC(config-router)#network 200.200.20.0 0.0.0.255 area 0
RC(config-router)#network 200.200.30.0 0.0.0.255 area 2
RC(config-router)#exit
RD(config)#interface Loopback0
RD(config-if)#ip address 4.4.4.4 255.255.255.0
RD(config-if)#ip ospf network point-to-point
RD(config-if)#exit
RD(config)#interface Serial1/0
RD(config-if)#ip address 200.200.30.2 255.255.255.0
RD(config-if)#no shutdown
RD(config-if)#exit
RD(config)#router ospf 1
RD(config-router)#network 4.4.4.0 0.0.0.255 area 2
RD(config-router)#network 200.200.30.0 0.0.0.255 area 2
RD(config-router)#exit
O IA 200.200.20.0/24 [110/128] via 200.200.10.2, 00:10:10, Serial1/0
2.0.0.0/24 is subnetted, 1 subnets
O IA 2.2.2.0 [110/65] via 200.200.10.2, 00:15:33, Serial1/0
3.0.0.0/24 is subnetted, 1 subnets
O IA 3.3.3.0 [110/129] via 200.200.10.2, 00:07:49, Serial1/0
4.0.0.0/24 is subnetted, 1 subnets
O IA 4.4.4.0 [110/193] via 200.200.10.2, 00:01:53, Serial1/0
O IA 200.200.30.0/24 [110/192] via 200.200.10.2, 00:02:43, Serial1/0
1.0.0.0/24 is subnetted, 1 subnets
O 1.1.1.0 [110/65] via 200.200.10.1, 00:16:05, Serial1/0
3.0.0.0/24 is subnetted, 1 subnets
O 3.3.3.0 [110/65] via 200.200.20.2, 00:03:25, Serial1/1
4.0.0.0/24 is subnetted, 1 subnets
O IA 4.4.4.0 [110/129] via 200.200.20.2, 00:02:34, Serial1/1
O IA 200.200.30.0/24 [110/128] via 200.200.20.2, 00:03:25, Serial1/1
1.0.0.0/24 is subnetted, 1 subnets
O IA 1.1.1.0 [110/129] via 200.200.20.1, 00:03:19, Serial1/1
2.0.0.0/24 is subnetted, 1 subnets
O 2.2.2.0 [110/65] via 200.200.20.1, 00:04:10, Serial1/1
4.0.0.0/24 is subnetted, 1 subnets
O 4.4.4.0 [110/65] via 200.200.30.2, 00:03:19, Serial1/0
O IA 200.200.10.0/24 [110/128] via 200.200.20.1, 00:03:19, Serial1/1
O IA 200.200.20.0/24 [110/128] via 200.200.30.1, 00:04:01, Serial1/0
1.0.0.0/24 is subnetted, 1 subnets
O IA 1.1.1.0 [110/193] via 200.200.30.1, 00:04:01, Serial1/0
2.0.0.0/24 is subnetted, 1 subnets
O IA 2.2.2.0 [110/129] via 200.200.30.1, 00:04:01, Serial1/0
3.0.0.0/24 is subnetted, 1 subnets
O IA 3.3.3.0 [110/65] via 200.200.30.1, 00:04:01, Serial1/0
O IA 200.200.10.0/24 [110/192] via 200.200.30.1, 00:04:01, Serial1/0
Neighbor 2.2.2.2, interface address 200.200.10.2
In the area 1 via interface Serial1/0
Neighbor priority is 0, State is FULL, 6 state changes
DR is 0.0.0.0 BDR is 0.0.0.0
Options is 0x52
LLS Options is 0x1 (LR)
Dead timer due in 00:00:35
Neighbor is up for 00:21:53
Index 1/1, retransmission queue length 0, number of retransmission 1
First 0x0(0)/0x0(0) Next 0x0(0)/0x0(0)
Last retransmission scan length is 1, maximum is 1
Last retransmission scan time is 0 msec, maximum is 0 msec
Neighbor 3.3.3.3, interface address 200.200.20.2
In the area 0 via interface Serial1/1
Neighbor priority is 0, State is FULL, 6 state changes
DR is 0.0.0.0 BDR is 0.0.0.0
Options is 0x52
LLS Options is 0x1 (LR)
Dead timer due in 00:00:33
Neighbor is up for 00:14:43
Index 1/2, retransmission queue length 0, number of retransmission 1
First 0x0(0)/0x0(0) Next 0x0(0)/0x0(0)
Last retransmission scan length is 1, maximum is 1
Last retransmission scan time is 0 msec, maximum is 0 msec
Neighbor 1.1.1.1, interface address 200.200.10.1
In the area 1 via interface Serial1/0
Neighbor priority is 0, State is FULL, 6 state changes
DR is 0.0.0.0 BDR is 0.0.0.0
Options is 0x52
LLS Options is 0x1 (LR)
Dead timer due in 00:00:36
Neighbor is up for 00:23:24
Index 1/1, retransmission queue length 0, number of retransmission 0
First 0x0(0)/0x0(0) Next 0x0(0)/0x0(0)
Last retransmission scan length is 0, maximum is 0
Last retransmission scan time is 0 msec, maximum is 0 msec
Neighbor 2.2.2.2, interface address 200.200.20.1
In the area 0 via interface Serial1/1
Neighbor priority is 0, State is FULL, 6 state changes
DR is 0.0.0.0 BDR is 0.0.0.0
Options is 0x52
LLS Options is 0x1 (LR)
Dead timer due in 00:00:39
Neighbor is up for 00:16:10
Index 1/1, retransmission queue length 0, number of retransmission 0
First 0x0(0)/0x0(0) Next 0x0(0)/0x0(0)
Last retransmission scan length is 0, maximum is 0
Last retransmission scan time is 0 msec, maximum is 0 msec
Neighbor 4.4.4.4, interface address 200.200.30.2
In the area 2 via interface Serial1/0
Neighbor priority is 0, State is FULL, 6 state changes
DR is 0.0.0.0 BDR is 0.0.0.0
Options is 0x52
LLS Options is 0x1 (LR)
Dead timer due in 00:00:32
Neighbor is up for 00:10:14
Index 1/2, retransmission queue length 0, number of retransmission 1
First 0x0(0)/0x0(0) Next 0x0(0)/0x0(0)
Last retransmission scan length is 1, maximum is 1
Last retransmission scan time is 0 msec, maximum is 0 msec
Neighbor 3.3.3.3, interface address 200.200.30.1
In the area 2 via interface Serial1/0
Neighbor priority is 0, State is FULL, 6 state changes
DR is 0.0.0.0 BDR is 0.0.0.0
Options is 0x52
LLS Options is 0x1 (LR)
Dead timer due in 00:00:34
Neighbor is up for 00:11:05
Index 1/1, retransmission queue length 0, number of retransmission 0
First 0x0(0)/0x0(0) Next 0x0(0)/0x0(0)
Last retransmission scan length is 0, maximum is 0
Last retransmission scan time is 0 msec, maximum is 0 msec
1.1.1.1 1.1.1.1 1600 0x80000003 0x005CE9 3
2.2.2.2 2.2.2.2 1545 0x80000003 0x00E073 2
2.2.2.0 2.2.2.2 1540 0x80000001 0x000F1F
3.3.3.0 2.2.2.2 1076 0x80000001 0x006D7D
4.4.4.0 2.2.2.2 720 0x80000001 0x00CBDB
200.200.20.0 2.2.2.2 1217 0x80000001 0x0057F7
200.200.30.0 2.2.2.2 770 0x80000001 0x006B99
2.2.2.2 2.2.2.2 1096 0x80000004 0x0052CE 3
3.3.3.3 3.3.3.3 801 0x80000004 0x00E830 3
1.1.1.0 2.2.2.2 1560 0x80000001 0x00B53B
4.4.4.0 3.3.3.3 746 0x80000001 0x002BB8
200.200.10.0 2.2.2.2 1560 0x80000001 0x00C593
200.200.30.0 3.3.3.3 796 0x80000001 0x00CA76
1.1.1.1 1.1.1.1 1616 0x80000003 0x005CE9 3
2.2.2.2 2.2.2.2 1559 0x80000003 0x00E073 2
2.2.2.0 2.2.2.2 1555 0x80000001 0x000F1F
3.3.3.0 2.2.2.2 1093 0x80000001 0x006D7D
4.4.4.0 2.2.2.2 747 0x80000001 0x00CBDB
200.200.20.0 2.2.2.2 1234 0x80000001 0x0057F7
200.200.30.0 2.2.2.2 798 0x80000001 0x006B99
2.2.2.2 2.2.2.2 1132 0x80000004 0x0052CE 3
3.3.3.3 3.3.3.3 826 0x80000004 0x00E830 3
1.1.1.0 2.2.2.2 1596 0x80000001 0x00B53B
4.4.4.0 3.3.3.3 771 0x80000001 0x002BB8
200.200.10.0 2.2.2.2 1596 0x80000001 0x00C593
200.200.30.0 3.3.3.3 822 0x80000001 0x00CA76
3.3.3.3 3.3.3.3 776 0x80000003 0x009781 2
4.4.4.4 4.4.4.4 776 0x80000003 0x007384 3
1.1.1.0 3.3.3.3 827 0x80000001 0x001A92
2.2.2.0 3.3.3.3 850 0x80000001 0x007376
3.3.3.0 3.3.3.3 850 0x80000001 0x00CC5A
200.200.10.0 3.3.3.3 850 0x80000001 0x002AEA
200.200.20.0 3.3.3.3 851 0x80000001 0x003912
3.3.3.3 3.3.3.3 826 0x80000003 0x009781 2
4.4.4.4 4.4.4.4 826 0x80000003 0x007384 3
1.1.1.0 3.3.3.3 878 0x80000001 0x001A92
2.2.2.0 3.3.3.3 878 0x80000001 0x007376
3.3.3.0 3.3.3.3 878 0x80000001 0x00CC5A
200.200.10.0 3.3.3.3 878 0x80000001 0x002AEA
200.200.20.0 3.3.3.3 878 0x80000001 0x003912
本文出自 “Uione” 博客,请务必保留此出处http://weiqijun.blog.51cto.com/338163/74326